18 #ifndef _GRABBER_HANDLE_HH_
19 #define _GRABBER_HANDLE_HH_
33 public:
GrabberHandle(QGraphicsItem *_parent = 0,
int index = 0);
37 public:
int GetIndex()
const;
41 public:
int GetMouseState()
const;
45 public: QPointF GetCenterPoint()
const;
49 public:
double GetMouseDownX()
const;
53 public:
double GetMouseDownY()
const;
57 public:
double GetWidth()
const;
61 public:
double GetHeight()
const;
65 public: QColor GetColor()
const;
69 public:
void SetMouseState(
int _state);
73 public:
void SetMouseDownX(
double _x);
77 public:
void SetMouseDownY(
double _y);
81 public:
void SetWidth(
double _width);
85 public:
void SetHeight(
double _height);
89 public:
void SetColor(
const QColor &_color);
93 public:
void SetBorderColor(
const QColor &_borderColor);
97 public:
virtual QRectF boundingRect()
const;
103 private:
virtual void paint(QPainter *_painter,
104 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
108 protected:
void hoverEnterEvent(QGraphicsSceneHoverEvent *_event);
112 protected:
void hoverLeaveEvent(QGraphicsSceneHoverEvent *_event);
116 protected:
void mouseMoveEvent(QGraphicsSceneMouseEvent *_event);
120 protected:
void mousePressEvent(QGraphicsSceneMouseEvent *_event);
124 protected:
void mouseReleaseEvent(QGraphicsSceneMouseEvent *_event);
128 protected:
void mousePressEvent(QGraphicsSceneDragDropEvent *_event);
132 protected:
void mouseMoveEvent(QGraphicsSceneDragDropEvent *_event);
138 private:
double mouseDownX;
141 private:
double mouseDownY;
144 private: QColor handleColor;
147 private: QColor borderColor;
150 private:
double width;
153 private:
double height;
156 private:
double widthGrabBuffer;
159 private:
double heightGrabBuffer;
162 private:
int mouseButtonState;
Definition: GrabberHandle.hh:28
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48