JointCreationDialogPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _GAZEBO_GUI_JOINT_CREATION_DIALOG_PRIVATE_HH_
18 #define _GAZEBO_GUI_JOINT_CREATION_DIALOG_PRIVATE_HH_
19 
20 #include <vector>
21 
23 
24 #include "gazebo/gui/qt.h"
25 
26 namespace gazebo
27 {
28  namespace gui
29  {
30  class ConfigChildWidget;
31  class ConfigWidget;
32  class JointMaker;
33 
36  {
39 
42 
45 
48 
50  public: QButtonGroup *typeButtons;
51 
53  public: QComboBox *axis1PresetsCombo;
54 
56  public: QComboBox *axis2PresetsCombo;
57 
59  public: std::vector<event::ConnectionPtr> connections;
60 
62  public: QPushButton *createButton;
63 
65  public: QToolButton *swapButton;
66 
68  public: std::vector<QButtonGroup *> alignGroups;
69 
71  public: QComboBox *alignCombo;
72 
74  public: QCheckBox *reverseXBox;
75 
77  public: QCheckBox *reverseYBox;
78 
80  public: QCheckBox *reverseZBox;
81 
83  public: QLabel *axis0Widget;
84 
87 
90 
92  public: QLabel *parentIcon;
93 
95  public: QLabel *selectionsText;
96 
99  public: bool validLinks;
100 
102  public: bool validAxis1;
103 
105  public: bool validAxis2;
106 
108  public: bool alignPending;
109  };
110  }
111 }
112 #endif
std::vector< event::ConnectionPtr > connections
A list of gui editor events connected to this palette.
Definition: JointCreationDialogPrivate.hh:59
QComboBox * axis1PresetsCombo
Axis presets combo box.
Definition: JointCreationDialogPrivate.hh:53
QComboBox * axis2PresetsCombo
Axis presets combo box.
Definition: JointCreationDialogPrivate.hh:56
bool validAxis1
Flag to indicate whether axis 1 is not zero.
Definition: JointCreationDialogPrivate.hh:102
QComboBox * alignCombo
Combo box to select the alignment target.
Definition: JointCreationDialogPrivate.hh:71
std::vector< QButtonGroup * > alignGroups
Vector containing the 3 button groups.
Definition: JointCreationDialogPrivate.hh:68
A widget generated from a google protobuf message.
Definition: ConfigWidget.hh:147
QLabel * axis0Widget
Label for joints without axes.
Definition: JointCreationDialogPrivate.hh:83
bool validLinks
Flag to indicate whether the current links are different from each other.
Definition: JointCreationDialogPrivate.hh:99
ConfigChildWidget * axis1Widget
Widget for axis 1.
Definition: JointCreationDialogPrivate.hh:86
ConfigChildWidget * parentLinkWidget
Widget for the parent link.
Definition: JointCreationDialogPrivate.hh:41
QLabel * selectionsText
Text with instructions on how to select links.
Definition: JointCreationDialogPrivate.hh:95
A convenience widget that also holds pointers to a list of its child widgets.
Definition: ConfigWidget.hh:56
Private data for the JointCreationDialog class.
Definition: JointCreationDialogPrivate.hh:35
QCheckBox * reverseYBox
Check box to toggle reverse Y alignment.
Definition: JointCreationDialogPrivate.hh:77
Handles the creation of joints in the model editor.
Definition: JointMaker.hh:77
QCheckBox * reverseXBox
Check box to toggle reverse X alignment.
Definition: JointCreationDialogPrivate.hh:74
JointMaker * jointMaker
Pointer to the joint maker.
Definition: JointCreationDialogPrivate.hh:47
bool validAxis2
Flag to indicate whether axis 2 is not zero.
Definition: JointCreationDialogPrivate.hh:105
QToolButton * swapButton
Button to swap parent and child links.
Definition: JointCreationDialogPrivate.hh:65
QLabel * parentIcon
Icon displayed at the parent link widget.
Definition: JointCreationDialogPrivate.hh:92
QButtonGroup * typeButtons
Group of buttons for joint types.
Definition: JointCreationDialogPrivate.hh:50
ConfigChildWidget * axis2Widget
Widget for axis 2.
Definition: JointCreationDialogPrivate.hh:89
ConfigWidget * configWidget
Config widget for configuring joint properties.
Definition: JointCreationDialogPrivate.hh:38
bool alignPending
Flag to indicate whether there's alignment pending.
Definition: JointCreationDialogPrivate.hh:108
ConfigChildWidget * childLinkWidget
Widget for the child link.
Definition: JointCreationDialogPrivate.hh:44
QPushButton * createButton
Button to create joint.
Definition: JointCreationDialogPrivate.hh:62
QCheckBox * reverseZBox
Check box to toggle reverse Z alignment.
Definition: JointCreationDialogPrivate.hh:80