Go to the documentation of this file.
17 #ifndef GAZEBO_GUI_BUILDING_ROTATEHANDLE_HH_
18 #define GAZEBO_GUI_BUILDING_ROTATEHANDLE_HH_
30 class RotateHandlePrivate;
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:27
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:38
gui
Definition: KeyEventHandler.hh:29
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.