18 #ifndef _GAZEBO_GUI_ROTATEHANDLE_HH_
19 #define _GAZEBO_GUI_ROTATEHANDLE_HH_
33 class RotateHandlePrivate;
53 public:
void SetMouseState(
const int _state);
58 public:
int MouseState()
const;
63 public:
double MouseDownX()
const;
68 public:
double MouseDownY()
const;
73 public:
void SetMouseDownX(
const double _x);
78 public:
void SetMouseDownY(
const double _y);
82 protected:
void hoverEnterEvent(QGraphicsSceneHoverEvent *_event);
86 protected:
void hoverLeaveEvent(QGraphicsSceneHoverEvent *_event);
90 protected:
void mouseMoveEvent(QGraphicsSceneMouseEvent *_event);
94 protected:
void mousePressEvent(QGraphicsSceneMouseEvent *_event);
98 protected:
void mouseReleaseEvent(QGraphicsSceneMouseEvent *_event);
102 public:
virtual QRectF boundingRect()
const;
108 private:
void paint(QPainter *_painter,
109 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
113 private: std::unique_ptr<RotateHandlePrivate> dataPtr;
Handle for rotating an editor item.
Definition: RotateHandle.hh:40