Public Member Functions | Protected Member Functions | List of all members
gazebo::gui::RotateHandle Class Reference

Handle for rotating an editor item. More...

#include <RotateHandle.hh>

Inheritance diagram for gazebo::gui::RotateHandle:
Inheritance graph
[legend]

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 GetMouseDownX () const
 Get the X position of the mouse press. More...
 
double GetMouseDownY () const
 Get the Y position of the mouse press. More...
 
int GetMouseState () const
 Get the current mouse state. More...
 
void SetMouseDownX (double _x)
 Set the X position of the mouse press. More...
 
void SetMouseDownY (double _y)
 Set the Y position of the mouse press. More...
 
void SetMouseState (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

gazebo::gui::RotateHandle::RotateHandle ( QGraphicsItem *  _parent = 0)

Constructor param[in] _parent Parent graphics item.

gazebo::gui::RotateHandle::~RotateHandle ( )

Destructor.

Member Function Documentation

virtual QRectF gazebo::gui::RotateHandle::boundingRect ( ) const
virtual

Get the bounding box of the rotate handle.

Returns
The grabber handle bounding box.
double gazebo::gui::RotateHandle::GetMouseDownX ( ) const

Get the X position of the mouse press.

Returns
Mouse press X position in pixel coordinates.
double gazebo::gui::RotateHandle::GetMouseDownY ( ) const

Get the Y position of the mouse press.

Returns
Mouse press Y position in pixel coordinates.
int gazebo::gui::RotateHandle::GetMouseState ( ) const

Get the current mouse state.

void gazebo::gui::RotateHandle::hoverEnterEvent ( QGraphicsSceneHoverEvent *  _event)
protected

Qt mouse hover enter event.

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

Qt mouse hover leave event.

Parameters
[in]_eventQt mouse hover event
void gazebo::gui::RotateHandle::mouseMoveEvent ( QGraphicsSceneMouseEvent *  _event)
protected

Qt mouse move event.

Parameters
[in]_eventQt mouse event
void gazebo::gui::RotateHandle::mousePressEvent ( QGraphicsSceneMouseEvent *  _event)
protected

Qt mouse press event.

Parameters
[in]_eventQt mouse event
void gazebo::gui::RotateHandle::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  _event)
protected

Qt mouse release event.

Parameters
[in]_eventQt mouse event
void gazebo::gui::RotateHandle::SetMouseDownX ( double  _x)

Set the X position of the mouse press.

Parameters
[in]_xMouse press X position in pixel coordinates.
void gazebo::gui::RotateHandle::SetMouseDownY ( double  _y)

Set the Y position of the mouse press.

Parameters
[in]_yMouse press Y position in pixel coordinates.
void gazebo::gui::RotateHandle::SetMouseState ( int  _state)

Set the current mouse state.


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