17 #ifndef GAZEBO_GUI_BUILDING_ROTATEHANDLE_HH_ 18 #define GAZEBO_GUI_BUILDING_ROTATEHANDLE_HH_ 30 class RotateHandlePrivate;
41 public:
explicit RotateHandle(QGraphicsItem *_parent = 0);
50 public:
void SetMouseState(
const int _state);
55 public:
int MouseState()
const;
60 public:
double MouseDownX()
const;
65 public:
double MouseDownY()
const;
70 public:
void SetMouseDownX(
const double _x);
75 public:
void SetMouseDownY(
const double _y);
79 protected:
void hoverEnterEvent(QGraphicsSceneHoverEvent *_event);
83 protected:
void hoverLeaveEvent(QGraphicsSceneHoverEvent *_event);
87 protected:
void mouseMoveEvent(QGraphicsSceneMouseEvent *_event);
91 protected:
void mousePressEvent(QGraphicsSceneMouseEvent *_event);
95 protected:
void mouseReleaseEvent(QGraphicsSceneMouseEvent *_event);
99 public:
virtual QRectF boundingRect()
const;
105 private:
void paint(QPainter *_painter,
106 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
110 private: std::unique_ptr<RotateHandlePrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:26
Handle for rotating an editor item.
Definition: RotateHandle.hh:37
gui
Definition: KeyEventHandler.hh:29