Handle for rotating an editor item. More...
#include <RotateHandle.hh>
Inherits QGraphicsItem.
Public Member Functions | |
RotateHandle (QGraphicsItem *_parent=0) | |
Constructor param[in] _parent Parent graphics item. More... | |
~RotateHandle () | |
Destructor. More... | |
virtual QRectF | boundingRect () const |
Get the bounding box of the rotate handle. More... | |
double | MouseDownX () const |
Get the X position of the mouse press. More... | |
double | MouseDownY () const |
Get the Y position of the mouse press. More... | |
int | MouseState () const |
Get the current mouse state. More... | |
void | SetMouseDownX (const double _x) |
Set the X position of the mouse press. More... | |
void | SetMouseDownY (const double _y) |
Set the Y position of the mouse press. More... | |
void | SetMouseState (const int _state) |
Set the current mouse state. More... | |
Protected Member Functions | |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *_event) |
Qt mouse hover enter event. More... | |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *_event) |
Qt mouse hover leave event. More... | |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *_event) |
Qt mouse move event. More... | |
void | mousePressEvent (QGraphicsSceneMouseEvent *_event) |
Qt mouse press event. More... | |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *_event) |
Qt mouse release event. More... | |
Handle for rotating an editor item.
|
explicit |
Constructor param[in] _parent Parent graphics item.
~RotateHandle | ( | ) |
Destructor.
|
virtual |
Get the bounding box of the rotate handle.
|
protected |
Qt mouse hover enter event.
[in] | _event | Qt mouse hover event |
|
protected |
Qt mouse hover leave event.
[in] | _event | Qt mouse hover event |
double MouseDownX | ( | ) | const |
Get the X position of the mouse press.
double MouseDownY | ( | ) | const |
Get the Y position of the mouse press.
|
protected |
Qt mouse move event.
[in] | _event | Qt mouse event |
|
protected |
Qt mouse press event.
[in] | _event | Qt mouse event |
|
protected |
Qt mouse release event.
[in] | _event | Qt mouse event |
int MouseState | ( | ) | const |
Get the current mouse state.
void SetMouseDownX | ( | const double | _x | ) |
Set the X position of the mouse press.
[in] | _x | Mouse press X position in pixel coordinates. |
void SetMouseDownY | ( | const double | _y | ) |
Set the Y position of the mouse press.
[in] | _y | Mouse press Y position in pixel coordinates. |
void SetMouseState | ( | const int | _state | ) |
Set the current mouse state.
[in] | _state | Integer corresponding to Qt QEvent type. http://doc.qt.io/qt-4.8/qevent.html#Type-enum |