Go to the documentation of this file.
18 #ifndef _GAZEBO_GUI_JOINT_CREATION_DIALOG_HH_
19 #define _GAZEBO_GUI_JOINT_CREATION_DIALOG_HH_
24 #include <ignition/math/Pose3.hh>
25 #include <ignition/math/Vector3.hh>
37 class JointCreationDialogPrivate;
49 QWidget *_parent = 0);
60 public:
void UpdateRelativePose(
const ignition::math::Pose3d &_pose);
63 private slots:
void OnLinkFromDialog();
69 private slots:
void OnVector3dFromDialog(
const QString &_name,
70 const ignition::math::Vector3d &_pose);
76 private slots:
void OnPoseFromDialog(
const QString &_name,
77 const ignition::math::Pose3d &_pose);
83 private slots:
void OnEnumChanged(
const QString &_name,
84 const QString &_value);
87 private slots:
void OnResetAll();
91 private slots:
void OnAlign(
const int _int);
95 private slots:
void UncheckAllAlign(
const bool _blockSignals =
false);
99 private slots:
void OnType(
const int _typeInt);
102 private slots:
void OnSwap();
105 private slots:
void OnCancel();
108 private slots:
void OnCreate();
112 public:
void SetParent(
const std::string &_linkName);
116 public:
void SetChild(
const std::string &_linkName);
119 private:
void CheckLinksValid();
123 private:
bool CheckValid();
129 private:
void OnParentImpl(
const std::string &_linkName);
135 private:
void OnChildImpl(
const std::string &_linkName);
138 private:
void keyPressEvent(QKeyEvent *_event);
142 private: std::unique_ptr<JointCreationDialogPrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:26
Handles the creation of joints in the model editor.
Definition: JointMaker.hh:76
JointType
Definition: JointMaker.hh:82
~JointCreationDialog()
Destructor.
void UpdateRelativePose(const ignition::math::Pose3d &_pose)
Update the relative pose widget.
JointCreationDialog(JointMaker *_jointMaker, QWidget *_parent=0)
Constructor.
A class to inspect and modify joints.
Definition: JointCreationDialog.hh:41
void SetChild(const std::string &_linkName)
Event callback when the child link is chosen in the 3D scene.
void SetParent(const std::string &_linkName)
Event callback when the parent link is chosen in the 3D scene.
void Open(const JointMaker::JointType _type)
Open the dialog.