Engauge Digitizer 2
|
This class add event handling to QGraphicsPolygonItem. More...
#include <GraphicsPointPolygon.h>
Signals | |
void | signalPointHoverEnter (QString) |
Signal for geometry window to highlight the current point upon hover enter. | |
void | signalPointHoverLeave (QString) |
Signal for geometry window to unhighlight the current point upon hover leave. | |
Public Member Functions | |
GraphicsPointPolygon (GraphicsPoint &graphicsPoint, const QPolygonF &polygon) | |
Single constructor. | |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests. | |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
Accept hover so point can be highlighted when cursor is over it as a guide to user. | |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
Unhighlight this point. | |
void | setRadius (int radius) |
Update the radius. | |
void | setShadow (GraphicsPointPolygon *shadow) |
Bind this graphics item to its shadow. | |
This class add event handling to QGraphicsPolygonItem.
Definition at line 17 of file GraphicsPointPolygon.h.
GraphicsPointPolygon::GraphicsPointPolygon | ( | GraphicsPoint & | graphicsPoint, |
const QPolygonF & | polygon ) |
Single constructor.
Definition at line 14 of file GraphicsPointPolygon.cpp.
|
virtual |
Accept hover so point can be highlighted when cursor is over it as a guide to user.
Definition at line 23 of file GraphicsPointPolygon.cpp.
|
virtual |
Unhighlight this point.
Definition at line 33 of file GraphicsPointPolygon.cpp.
QVariant GraphicsPointPolygon::itemChange | ( | GraphicsItemChange | change, |
const QVariant & | value ) |
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests.
Definition at line 43 of file GraphicsPointPolygon.cpp.
Update the radius.
Definition at line 71 of file GraphicsPointPolygon.cpp.
void GraphicsPointPolygon::setShadow | ( | GraphicsPointPolygon * | shadow | ) |
Bind this graphics item to its shadow.
Definition at line 80 of file GraphicsPointPolygon.cpp.
Signal for geometry window to highlight the current point upon hover enter.
Signal for geometry window to unhighlight the current point upon hover leave.