18 #ifndef _GAZEBO_GUI_BUILDING_STAIRSITEM_HH_ 19 #define _GAZEBO_GUI_BUILDING_STAIRSITEM_HH_ 22 #include <ignition/math/Vector3.hh> 35 class StairsItemPrivate;
53 public:
virtual ignition::math::Vector3d Size()
const;
56 public:
virtual ignition::math::Vector3d ScenePosition()
const;
59 public:
virtual double SceneRotation()
const;
63 public:
int Steps()
const;
66 private:
virtual void paint(QPainter *_painter,
67 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
70 private:
virtual bool RotateEventFilter(
RotateHandle *_rotateHandle,
74 private:
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *_event);
77 private slots:
void OnApply();
80 private slots:
void OnOpenInspector();
83 private slots:
void OnDeleteItem();
86 public:
void StairsChanged();
89 private:
void StepsChanged();
93 private: std::unique_ptr<StairsItemPrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:33
2D representation of a staircase.
Definition: StairsItem.hh:42
2D rectangle.
Definition: RectItem.hh:49
Handle for rotating an editor item.
Definition: RotateHandle.hh:40