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.
 
 ~RotateHandle ()
 Destructor.
 
virtual QRectF boundingRect () const
 Get the bounding box of the rotate handle.
 
double MouseDownX () const
 Get the X position of the mouse press.
 
double MouseDownY () const
 Get the Y position of the mouse press.
 
int MouseState () const
 Get the current mouse state.
 
void SetMouseDownX (const double _x)
 Set the X position of the mouse press.
 
void SetMouseDownY (const double _y)
 Set the Y position of the mouse press.
 
void SetMouseState (const int _state)
 Set the current mouse state.
 

Protected Member Functions

void hoverEnterEvent (QGraphicsSceneHoverEvent *_event)
 Qt mouse hover enter event.
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event)
 Qt mouse hover leave event.
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *_event)
 Qt mouse move event.
 
void mousePressEvent (QGraphicsSceneMouseEvent *_event)
 Qt mouse press event.
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *_event)
 Qt mouse release event.
 

Detailed Description

Handle for rotating an editor item.

Constructor & Destructor Documentation

◆ RotateHandle()

RotateHandle ( QGraphicsItem * _parent = 0)
explicit

Constructor param[in] _parent Parent graphics item.

◆ ~RotateHandle()

Destructor.

Member Function Documentation

◆ boundingRect()

virtual QRectF boundingRect ( ) const
virtual

Get the bounding box of the rotate handle.

Returns
The grabber handle bounding box.

◆ hoverEnterEvent()

void hoverEnterEvent ( QGraphicsSceneHoverEvent * _event)
protected

Qt mouse hover enter event.

Parameters
[in]_eventQt mouse hover event

◆ hoverLeaveEvent()

void hoverLeaveEvent ( QGraphicsSceneHoverEvent * _event)
protected

Qt mouse hover leave event.

Parameters
[in]_eventQt mouse hover event

◆ MouseDownX()

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)

◆ MouseDownY()

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)

◆ mouseMoveEvent()

void mouseMoveEvent ( QGraphicsSceneMouseEvent * _event)
protected

Qt mouse move event.

Parameters
[in]_eventQt mouse event

◆ mousePressEvent()

void mousePressEvent ( QGraphicsSceneMouseEvent * _event)
protected

Qt mouse press event.

Parameters
[in]_eventQt mouse event

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QGraphicsSceneMouseEvent * _event)
protected

Qt mouse release event.

Parameters
[in]_eventQt mouse event

◆ MouseState()

int MouseState ( ) const

Get the current mouse state.

Returns
The current mouse state.
See also
void SetMouseState(const int _state)

◆ SetMouseDownX()

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

◆ SetMouseDownY()

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

◆ SetMouseState()

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: