18#ifndef GAZEBO_GUI_BUILDING_GRABBERHANDLE_HH_
19#define GAZEBO_GUI_BUILDING_GRABBERHANDLE_HH_
24#include <ignition/math/Color.hh>
25#include <ignition/math/Vector2.hh>
36 class GrabberHandlePrivate;
77 public: ignition::math::Color
Color()
const;
101 public:
void SetColor(
const ignition::math::Color &_color);
127 private:
virtual void paint(QPainter *_painter,
128 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
160 private: std::unique_ptr<GrabberHandlePrivate> dataPtr;
gui
Definition KeyEventHandler.hh:29
Definition GrabberHandle.hh:39
void SetBorderColor(const ignition::math::Color &_borderColor)
Set the border color of the grabber handle.
double Height() const
Get the height of the grabber handle.
ignition::math::Color Color() const
Get the fill color of the grabber handle.
GrabberHandle(QGraphicsItem *_parent=0, int index=0)
Constructor.
void SetHeight(double _height)
Set the height of the grabber handle.
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.
int MouseState() const
Get the current mouse state.
std::vector< GrabberHandle * > LinkedGrabbers() const
Get the vector of grabbers linked to this.
void mouseMoveEvent(QGraphicsSceneDragDropEvent *_event)
Qt mouse move event during drag and drop.
virtual ~GrabberHandle()
Destructor.
void SetMouseDownX(double _x)
Set the X position of the mouse press.
int Index() const
Get the index of the grabber handle.
void SetColor(const ignition::math::Color &_color)
Set the fill color of the grabber handle.
void PushLinkedGrabber(GrabberHandle *_grabber)
Push a grabber to the list of grabbers linked to this.
void mousePressEvent(QGraphicsSceneDragDropEvent *_event)
Qt mouse press event during drag and drop.
void hoverEnterEvent(QGraphicsSceneHoverEvent *_event)
Qt mouse hover enter event.
double MouseDownY() const
Get the Y position of the mouse press.
void EraseLinkedGrabber(GrabberHandle *_grabber)
Erase a grabber from the list of grabbers linked to this.
void hoverLeaveEvent(QGraphicsSceneHoverEvent *_event)
Qt mouse hover leave event.
void mouseMoveEvent(QGraphicsSceneMouseEvent *_event)
Qt mouse move event.
void SetMouseDownY(double _y)
Set the Y position of the mouse press.
double Width() const
Get the width of the grabber handle.
void mouseReleaseEvent(QGraphicsSceneMouseEvent *_event)
Qt mouse release event.
void mousePressEvent(QGraphicsSceneMouseEvent *_event)
Qt mouse press event.
void SetWidth(double _width)
Set the width of the grabber handle.
void SetMouseState(int _state)
Set the current mouse state.
double MouseDownX() const
Get the X position of the mouse press.
Forward declarations for the common classes.
Definition Animation.hh:27