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;
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();
89 private:
void StepsChanged();
93 private: std::unique_ptr<StairsItemPrivate> dataPtr;
gui
Definition KeyEventHandler.hh:29
2D rectangle.
Definition RectItem.hh:51
Handle for rotating an editor item.
Definition RotateHandle.hh:38
2D representation of a staircase.
Definition StairsItem.hh:43
virtual double SceneRotation() const
Get the scene rotation of the editor item.
virtual ignition::math::Vector3d ScenePosition() const
Get the scene position of editor item.
int Steps() const
Get the number of steps in the staircase.
virtual ignition::math::Vector3d Size() const
Get the size of the item in pixels.
void StairsChanged()
Emit stairs changed Qt signals.
Forward declarations for the common classes.
Definition Animation.hh:27