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

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.
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
double gazebo::gui::RotateHandle::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 gazebo::gui::RotateHandle::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 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
int gazebo::gui::RotateHandle::MouseState ( ) const

Get the current mouse state.

Returns
The current mouse state.
See Also
void SetMouseState(const int _state)
void gazebo::gui::RotateHandle::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 gazebo::gui::RotateHandle::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 gazebo::gui::RotateHandle::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: