All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
gazebo::gui::GrabberHandle Class Reference

#include <GrabberHandle.hh>

Inheritance diagram for gazebo::gui::GrabberHandle:
Inheritance graph
[legend]
Collaboration diagram for gazebo::gui::GrabberHandle:
Collaboration graph
[legend]

Public Member Functions

 GrabberHandle (QGraphicsItem *_parent=0, int index=0)
 Constructor. More...
 
virtual QRectF boundingRect () const
 Get the bounding box of the grabber handle. More...
 
QPointF GetCenterPoint () const
 Get the center point of the grabber handle. More...
 
QColor GetColor () const
 Get the fill color of the grabber handle. More...
 
double GetHeight () const
 Get the height of the grabber handle. More...
 
int GetIndex () const
 Get the index of the grabber 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...
 
double GetWidth () const
 Get the width of the grabber handle. More...
 
void SetBorderColor (const QColor &_borderColor)
 Set the border color of the grabber handle. More...
 
void SetColor (const QColor &_color)
 Set the fill color of the grabber handle. More...
 
void SetHeight (double _height)
 Set the height of the grabber handle. 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...
 
void SetWidth (double _width)
 Set the width of the grabber handle. 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 mouseMoveEvent (QGraphicsSceneDragDropEvent *_event)
 Qt mouse move event during drag and drop. More...
 
void mousePressEvent (QGraphicsSceneMouseEvent *_event)
 Qt mouse press event. More...
 
void mousePressEvent (QGraphicsSceneDragDropEvent *_event)
 Qt mouse press event during drag and drop. More...
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *_event)
 Qt mouse release event. More...
 

Constructor & Destructor Documentation

gazebo::gui::GrabberHandle::GrabberHandle ( QGraphicsItem *  _parent = 0,
int  index = 0 
)

Constructor.

Parameters
[in]_parentParent graphics item
[in]_indexIndex of the grabber handle

Member Function Documentation

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

Get the bounding box of the grabber handle.

Returns
The grabber handle bounding box.
QPointF gazebo::gui::GrabberHandle::GetCenterPoint ( ) const

Get the center point of the grabber handle.

Returns
Center point in pixel coordinates.
QColor gazebo::gui::GrabberHandle::GetColor ( ) const

Get the fill color of the grabber handle.

Returns
_color Fill color.
double gazebo::gui::GrabberHandle::GetHeight ( ) const

Get the height of the grabber handle.

Returns
The height of the grabber handle in pixels.
int gazebo::gui::GrabberHandle::GetIndex ( ) const

Get the index of the grabber handle.

Returns
Index of the grabber handle.
double gazebo::gui::GrabberHandle::GetMouseDownX ( ) const

Get the X position of the mouse press.

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

Get the Y position of the mouse press.

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

Get the current mouse state.

Returns
The current mouse state.
double gazebo::gui::GrabberHandle::GetWidth ( ) const

Get the width of the grabber handle.

Returns
The width of the grabber handle in pixel coordinates.
void gazebo::gui::GrabberHandle::hoverEnterEvent ( QGraphicsSceneHoverEvent *  _event)
protected

Qt mouse hover enter event.

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

Qt mouse hover leave event.

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

Qt mouse move event.

Parameters
[in]_eventQt mouse event.
void gazebo::gui::GrabberHandle::mouseMoveEvent ( QGraphicsSceneDragDropEvent *  _event)
protected

Qt mouse move event during drag and drop.

Parameters
[in]_eventQt mouse drag and drop event.
void gazebo::gui::GrabberHandle::mousePressEvent ( QGraphicsSceneMouseEvent *  _event)
protected

Qt mouse press event.

Parameters
[in]_eventQt mouse event.
void gazebo::gui::GrabberHandle::mousePressEvent ( QGraphicsSceneDragDropEvent *  _event)
protected

Qt mouse press event during drag and drop.

Parameters
[in]_eventQt mouse drag and drop event.
void gazebo::gui::GrabberHandle::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  _event)
protected

Qt mouse release event.

Parameters
[in]_eventQt mouse event.
void gazebo::gui::GrabberHandle::SetBorderColor ( const QColor &  _borderColor)

Set the border color of the grabber handle.

Parameters
[in]_borderColorBorder Color.
void gazebo::gui::GrabberHandle::SetColor ( const QColor &  _color)

Set the fill color of the grabber handle.

Parameters
[in]_colorFill Color.
void gazebo::gui::GrabberHandle::SetHeight ( double  _height)

Set the height of the grabber handle.

Parameters
[in]_heightHeight in pixels.
void gazebo::gui::GrabberHandle::SetMouseDownX ( double  _x)

Set the X position of the mouse press.

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

Set the Y position of the mouse press.

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

Set the current mouse state.

Parameters
[in]_stateCurrent mouse state.
void gazebo::gui::GrabberHandle::SetWidth ( double  _width)

Set the width of the grabber handle.

Parameters
[in]_widthWidth in pixels.

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