Go to the documentation of this file.
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
void mousePressEvent(QGraphicsSceneMouseEvent *_event)
Qt mouse press event.
void mouseReleaseEvent(QGraphicsSceneMouseEvent *_event)
Qt mouse release event.
void SetMouseDownY(const double _y)
Set the Y position of the mouse press.
void mouseMoveEvent(QGraphicsSceneMouseEvent *_event)
Qt mouse move event.
RotateHandle(QGraphicsItem *_parent=0)
Constructor param[in] _parent Parent graphics item.
void SetMouseDownX(const double _x)
Set the X position of the mouse press.
double MouseDownY() const
Get the Y position of the mouse press.
void SetMouseState(const int _state)
Set the current mouse state.
int MouseState() const
Get the current mouse state.
double MouseDownX() const
Get the X position of the mouse press.
Handle for rotating an editor item.
Definition: RotateHandle.hh:37
void hoverLeaveEvent(QGraphicsSceneHoverEvent *_event)
Qt mouse hover leave event.
void hoverEnterEvent(QGraphicsSceneHoverEvent *_event)
Qt mouse hover enter event.
virtual QRectF boundingRect() const
Get the bounding box of the rotate handle.
~RotateHandle()
Destructor.