Engauge Digitizer 2
|
Enable postponed geometry changes for GraphicsArcItem, using a signal to trigger this class to update its associated GraphicsArcItem instance. More...
#include <GraphicsArcItemRelay.h>
Public Slots | |
void | slotUpdateAngles (QPointF posTangentialLow, QPointF posTangentialCenter, QPointF posTangentialHigh, double widthToHeight, double scaling) |
Slot inputs to QGraphicsEllipseItem::setStartAngle and QGraphicsEllipseItem::setSpanAngle. |
Public Member Functions | |
GraphicsArcItemRelay (QObject *caller, GraphicsArcItem *graphicsItem) | |
Single constructor with associated GraphicsArcItem. | |
virtual | ~GraphicsArcItemRelay () |
Enable postponed geometry changes for GraphicsArcItem, using a signal to trigger this class to update its associated GraphicsArcItem instance.
By postponing geometry updates locally, this class simplifies the calling code which can invoked while an event handler is on the stack. Updating QGraphicsEllipseItem geometry while an event handler is on the stack is not good software design
Definition at line 21 of file GraphicsArcItemRelay.h.
GraphicsArcItemRelay::GraphicsArcItemRelay | ( | QObject * | caller, |
GraphicsArcItem * | graphicsItem ) |
Single constructor with associated GraphicsArcItem.
Definition at line 19 of file GraphicsArcItemRelay.cpp.
|
virtual |
Definition at line 29 of file GraphicsArcItemRelay.cpp.
|
slot |
Slot inputs to QGraphicsEllipseItem::setStartAngle and QGraphicsEllipseItem::setSpanAngle.
Definition at line 34 of file GraphicsArcItemRelay.cpp.