18 #ifndef _GAZEBO_GUI_BUILDING_STAIRSITEM_HH_
19 #define _GAZEBO_GUI_BUILDING_STAIRSITEM_HH_
34 class StairsItemPrivate;
52 public:
virtual QVector3D GetSize()
const;
55 public:
virtual QVector3D GetScenePosition()
const;
58 public:
virtual double GetSceneRotation()
const;
62 public:
int GetSteps()
const;
65 private:
virtual void paint(QPainter *_painter,
66 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
69 private:
virtual bool RotateEventFilter(
RotateHandle *_rotateHandle,
73 private:
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *_event);
76 private slots:
void OnApply();
79 private slots:
void OnOpenInspector();
82 private slots:
void OnDeleteItem();
85 public:
void StairsChanged();
88 private:
void StepsChanged();
92 private: std::unique_ptr<StairsItemPrivate> dataPtr;
#define GZ_GUI_VISIBLE
Definition: system.hh:284
2D representation of a staircase.
Definition: StairsItem.hh:41
2D rectangle.
Definition: RectItem.hh:45
Handle for rotating an editor item.
Definition: RotateHandle.hh:40