#include <GrabberHandle.hh>
gazebo::gui::GrabberHandle::GrabberHandle |
( |
QGraphicsItem * |
_parent = 0 , |
|
|
int |
index = 0 |
|
) |
| |
Constructor.
- Parameters
-
[in] | _parent | Parent graphics item |
[in] | _index | Index of the grabber handle |
virtual gazebo::gui::GrabberHandle::~GrabberHandle |
( |
| ) |
|
|
virtual |
virtual QRectF gazebo::gui::GrabberHandle::boundingRect |
( |
| ) |
const |
|
virtual |
Get the bounding box of the grabber handle.
- Returns
- The grabber handle bounding box.
ignition::math::Vector2d gazebo::gui::GrabberHandle::CenterPoint |
( |
| ) |
const |
Get the center point of the grabber handle.
- Returns
- Center point in pixel coordinates.
Get the fill color of the grabber handle.
- Returns
- _color Fill color.
void gazebo::gui::GrabberHandle::EraseLinkedGrabber |
( |
GrabberHandle * |
_grabber | ) |
|
Erase a grabber from the list of grabbers linked to this.
- Parameters
-
[in] | _grabber | Grabber which will be removed. |
double gazebo::gui::GrabberHandle::Height |
( |
| ) |
const |
Get the height of the grabber handle.
- Returns
- The height of the grabber handle in pixels.
void gazebo::gui::GrabberHandle::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
_event | ) |
|
|
protected |
Qt mouse hover enter event.
- Parameters
-
[in] | _event | Qt mouse hover event. |
void gazebo::gui::GrabberHandle::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
_event | ) |
|
|
protected |
Qt mouse hover leave event.
- Parameters
-
[in] | _event | Qt mouse hover event. |
int gazebo::gui::GrabberHandle::Index |
( |
| ) |
const |
Get the index of the grabber handle.
- Returns
- Index of the grabber handle.
std::vector<GrabberHandle *> gazebo::gui::GrabberHandle::LinkedGrabbers |
( |
| ) |
const |
Get the vector of grabbers linked to this.
- Returns
- Vector of linked grabbers.
double gazebo::gui::GrabberHandle::MouseDownX |
( |
| ) |
const |
Get the X position of the mouse press.
- Returns
- Mouse press X position in pixel coordinates.
double gazebo::gui::GrabberHandle::MouseDownY |
( |
| ) |
const |
Get the Y position of the mouse press.
- Returns
- Mouse press Y position in pixel coordinates.
void gazebo::gui::GrabberHandle::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * |
_event | ) |
|
|
protected |
Qt mouse move event.
- Parameters
-
[in] | _event | Qt mouse event. |
void gazebo::gui::GrabberHandle::mouseMoveEvent |
( |
QGraphicsSceneDragDropEvent * |
_event | ) |
|
|
protected |
Qt mouse move event during drag and drop.
- Parameters
-
[in] | _event | Qt mouse drag and drop event. |
void gazebo::gui::GrabberHandle::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
_event | ) |
|
|
protected |
Qt mouse press event.
- Parameters
-
[in] | _event | Qt mouse event. |
void gazebo::gui::GrabberHandle::mousePressEvent |
( |
QGraphicsSceneDragDropEvent * |
_event | ) |
|
|
protected |
Qt mouse press event during drag and drop.
- Parameters
-
[in] | _event | Qt mouse drag and drop event. |
void gazebo::gui::GrabberHandle::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
_event | ) |
|
|
protected |
Qt mouse release event.
- Parameters
-
[in] | _event | Qt mouse event. |
int gazebo::gui::GrabberHandle::MouseState |
( |
| ) |
const |
Get the current mouse state.
- Returns
- The current mouse state.
void gazebo::gui::GrabberHandle::PushLinkedGrabber |
( |
GrabberHandle * |
_grabber | ) |
|
Push a grabber to the list of grabbers linked to this.
- Parameters
-
void gazebo::gui::GrabberHandle::SetBorderColor |
( |
const common::Color & |
_borderColor | ) |
|
Set the border color of the grabber handle.
- Parameters
-
[in] | _borderColor | Border Color. |
void gazebo::gui::GrabberHandle::SetColor |
( |
const common::Color & |
_color | ) |
|
Set the fill color of the grabber handle.
- Parameters
-
void gazebo::gui::GrabberHandle::SetHeight |
( |
double |
_height | ) |
|
Set the height of the grabber handle.
- Parameters
-
[in] | _height | Height in pixels. |
void gazebo::gui::GrabberHandle::SetMouseDownX |
( |
double |
_x | ) |
|
Set the X position of the mouse press.
- Parameters
-
[in] | _x | Mouse press X position in pixel coordinates. |
void gazebo::gui::GrabberHandle::SetMouseDownY |
( |
double |
_y | ) |
|
Set the Y position of the mouse press.
- Parameters
-
[in] | _y | Mouse press Y position in pixel coordinates. |
void gazebo::gui::GrabberHandle::SetMouseState |
( |
int |
_state | ) |
|
Set the current mouse state.
- Parameters
-
[in] | _state | Current mouse state. |
void gazebo::gui::GrabberHandle::SetWidth |
( |
double |
_width | ) |
|
Set the width of the grabber handle.
- Parameters
-
[in] | _width | Width in pixels. |
double gazebo::gui::GrabberHandle::Width |
( |
| ) |
const |
Get the width of the grabber handle.
- Returns
- The width of the grabber handle in pixel coordinates.
The documentation for this class was generated from the following file: