RotateHandle Class Reference

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...
 

Detailed Description

Handle for rotating an editor item.

Constructor & Destructor Documentation

RotateHandle ( QGraphicsItem *  _parent = 0)

Constructor param[in] _parent Parent graphics item.

Destructor.

Member Function Documentation

virtual QRectF boundingRect ( ) const
virtual

Get the bounding box of the rotate handle.

Returns
The grabber handle bounding box.
void hoverEnterEvent ( QGraphicsSceneHoverEvent *  _event)
protected

Qt mouse hover enter event.

Parameters
[in]_eventQt mouse hover event
void hoverLeaveEvent ( QGraphicsSceneHoverEvent *  _event)
protected

Qt mouse hover leave event.

Parameters
[in]_eventQt mouse hover event
double MouseDownX ( ) const

Get the X position of the mouse press.

Returns
Mouse press X position in pixel coordinates.
See Also
void SetMouseDownX(const double _x)
double MouseDownY ( ) const

Get the Y position of the mouse press.

Returns
Mouse press Y position in pixel coordinates.
See Also
void SetMouseDownY(const double _y)
void mouseMoveEvent ( QGraphicsSceneMouseEvent *  _event)
protected

Qt mouse move event.

Parameters
[in]_eventQt mouse event
void mousePressEvent ( QGraphicsSceneMouseEvent *  _event)
protected

Qt mouse press event.

Parameters
[in]_eventQt mouse event
void mouseReleaseEvent ( QGraphicsSceneMouseEvent *  _event)
protected

Qt mouse release event.

Parameters
[in]_eventQt mouse event
int MouseState ( ) const

Get the current mouse state.

Returns
The current mouse state.
See Also
void SetMouseState(const int _state)
void SetMouseDownX ( const double  _x)

Set the X position of the mouse press.

Parameters
[in]_xMouse press X position in pixel coordinates.
See Also
double MouseDownX() const
void SetMouseDownY ( const double  _y)

Set the Y position of the mouse press.

Parameters
[in]_yMouse press Y position in pixel coordinates.
See Also
double MouseDownY() const
void SetMouseState ( const int  _state)

Set the current mouse state.

Parameters
[in]_stateInteger corresponding to Qt QEvent type. http://doc.qt.io/qt-4.8/qevent.html#Type-enum
See Also
int MouseState() const

The documentation for this class was generated from the following file: