17 #ifndef GAZEBO_GUI_MODEL_LINKINSPECTOR_HH_
18 #define GAZEBO_GUI_MODEL_LINKINSPECTOR_HH_
23 #include <ignition/math/Vector3.hh>
32 class CollisionConfig;
37 class LinkInspectorPrivate;
52 public:
void SetName(
const std::string &_name);
56 public: std::string Name()
const;
72 public:
void SetLinkId(
const std::string &_id);
79 public:
void SetShowCollisions(
const bool _show);
83 public:
void SetShowVisuals(
const bool _show);
87 public:
void SetShowLinkFrame(
const bool _show);
91 protected:
virtual void enterEvent(QEvent *_event);
95 private:
double ComputeVolume()
const;
100 private: ignition::math::Vector3d ComputeInertia(
101 const double _mass)
const;
108 Q_SIGNALS:
void Opened();
111 Q_SIGNALS:
void Applied();
115 Q_SIGNALS:
void Accepted();
120 Q_SIGNALS:
void ShowCollisions(
const bool _show);
125 Q_SIGNALS:
void ShowVisuals(
const bool _show);
130 Q_SIGNALS:
void ShowLinkFrame(
const bool _show);
133 private slots:
void OnRemove();
137 private slots:
void OnShowCollisions(
const bool _show);
141 private slots:
void OnShowVisuals(
const bool _show);
145 private slots:
void OnShowLinkFrame(
const bool _show);
148 private slots:
void OnCancel();
151 private slots:
void OnOK();
154 private slots:
void OnConfigApplied();
158 private slots:
void OnDensityValueChanged(
const double _value);
162 private slots:
void OnMassValueChanged(
const double _value);
167 private slots:
void OnCollisionChanged(
const std::string &_name,
168 const std::string &_type);
171 private slots:
void RestoreOriginalData();
175 private:
void keyPressEvent(QKeyEvent *_event);
179 private:
void closeEvent(QCloseEvent *_event);
183 private: std::unique_ptr<LinkInspectorPrivate> dataPtr;
Definition: LinkInspector.hh:39
A tab for configuring visual properties of a link.
Definition: VisualConfig.hh:71
A tab for configuring properties of a link.
Definition: LinkConfig.hh:39
A tab for configuring collision properties of a link.
Definition: CollisionConfig.hh:77