7 #ifndef GRAPHICS_POINT_POLYGON_H 8 #define GRAPHICS_POINT_POLYGON_H 10 #include <QGraphicsPolygonItem> 24 const QPolygonF &polygon);
27 QVariant
itemChange(GraphicsItemChange change,
const QVariant &value);
52 void setOpacityForSubtree (
double opacity);
60 #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.
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Unhighlight this point.
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Accept hover so point can be highlighted when cursor is over it as a guide to user.
Graphics item for drawing a circular or polygonal Point.
This class add event handling to QGraphicsPolygonItem.
void signalPointHoverLeave(QString)
Signal for geometry window to unhighlight the current point upon hover leave.
void signalPointHoverEnter(QString)
Signal for geometry window to highlight the current point upon hover enter.
void setShadow(GraphicsPointPolygon *shadow)
Bind this graphics item to its shadow.