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