18 #ifndef _STAIRS_ITEM_HH_
19 #define _STAIRS_ITEM_HH_
32 class StairsInspectorDialog;
50 public:
virtual QVector3D GetSize()
const;
53 public:
virtual QVector3D GetScenePosition()
const;
56 public:
virtual double GetSceneRotation()
const;
60 public:
int GetSteps()
const;
63 private:
virtual void paint(QPainter *_painter,
64 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
67 private:
virtual bool RotateEventFilter(
RotateHandle *_rotateHandle,
71 private:
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *_event);
74 private slots:
void OnApply();
77 private slots:
void OnOpenInspector();
80 private slots:
void OnDeleteItem();
83 public:
void StairsChanged();
86 private:
void StepsChanged();
89 private:
double stairsDepth;
92 private:
double stairsHeight;
95 private:
double stairsWidth;
98 private: QPointF stairsPos;
101 private:
double stairsElevation;
104 private:
int stairsSteps;
2D representation of a staircase.
Definition: StairsItem.hh:39
2D rectangle.
Definition: RectItem.hh:40
Handle for rotating an editor item.
Definition: RotateHandle.hh:33
Dialog for configuring a staircase item.
Definition: StairsInspectorDialog.hh:35
Base class of a items that have building level properties such as the level number and level height...
Definition: BuildingItem.hh:33
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48