Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
GraphicsPointPolygon.h
1 #ifndef GRAPHICS_POINT_POLYGON_H
2 #define GRAPHICS_POINT_POLYGON_H
3 
4 #include <QGraphicsPolygonItem>
5 #include <QPointF>
6 
7 class GraphicsPoint;
8 
10 class GraphicsPointPolygon : public QGraphicsPolygonItem
11 {
12 public:
14  GraphicsPointPolygon(GraphicsPoint &graphicsPoint,
15  const QPolygonF &polygon);
16 
18  QVariant itemChange(GraphicsItemChange change, const QVariant &value);
19 
21  void setRadius(int radius);
22 
23 private:
25 
26  // Reference to the GraphicsPoint that this class belongs to
27  GraphicsPoint &m_graphicsPoint;
28 };
29 
30 #endif // GRAPHICS_POINT_POLYGON_H
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests...
void setRadius(int radius)
Update the radius.
Graphics item for drawing a circular or polygonal Point.
Definition: GraphicsPoint.h:33
This class add event handling to QGraphicsPolygonItem.