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;
95 private:
double ComputeVolume()
const;
100 private: ignition::math::Vector3d ComputeInertia(
101 const double _mass)
const;
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;
gui
Definition KeyEventHandler.hh:29
A tab for configuring collision properties of a link.
Definition CollisionConfig.hh:78
A tab for configuring properties of a link.
Definition LinkConfig.hh:40
Definition LinkInspector.hh:40
void SetName(const std::string &_name)
Set the name of the link.
void SetShowVisuals(const bool _show)
Set the state of show visuals button.
void SetShowLinkFrame(const bool _show)
Set the state of show link frame button.
void Applied()
Qt signal emitted to indicate that changes should be applied.
std::string Name() const
Get the name of the link.
void Accepted()
Qt signal emitted to indicate that changes should be applied and the inspector closed.
void ShowLinkFrame(const bool _show)
Qt signal emitted to indicate that link frame should be shown/hidden.
void Open()
Open the inspector.
void ShowCollisions(const bool _show)
Qt signal emitted to indicate that all collisions should be shown/hidden.
CollisionConfig * GetCollisionConfig() const
Get collision configurations of the link.
LinkInspector(QWidget *_parent=0)
Constructor.
void ShowVisuals(const bool _show)
Qt signal emitted to indicate that all visuals should be shown/hidden.
void SetShowCollisions(const bool _show)
Set the state of show collisions button.
void Opened()
Set the item name.
virtual void enterEvent(QEvent *_event)
Qt event emiited when the mouse enters this widget.
VisualConfig * GetVisualConfig() const
Get visual configurations of the link.
LinkConfig * GetLinkConfig() const
Get configurations of the link.
void SetLinkId(const std::string &_id)
Set the id for this link.
~LinkInspector()
Destructor.
A tab for configuring visual properties of a link.
Definition VisualConfig.hh:72
Forward declarations for the common classes.
Definition Animation.hh:27