Engauge Digitizer 2
|
Line segment along one of the two coordinate directions (X/T or Y/R). More...
#include <CentipedeSegmentAbstract.h>
Public Member Functions | |
CentipedeSegmentAbstract (const DocumentModelGuideline &modelGuideline, const Transformation &transformation, const QPointF &posClickScreen) | |
Constructor with individual coordinates. | |
virtual | ~CentipedeSegmentAbstract () |
virtual double | distanceToClosestEndpoint (const QPointF &posScreen) const =0 |
Return distance to closest endpoint. | |
virtual void | updateRadius (double radius)=0 |
Update geometry to reflect cursor movement. |
Protected Member Functions | |
double | closestAngleToCentralAngle (double angleCenter, double angleOld) const |
Loop to find closest angle to angleCenter. | |
const DocumentModelGuideline & | modelGuideline () const |
Settings. | |
QPointF | posClickScreen () const |
Center of circle in screen coordinates. | |
Transformation | transformation () const |
Transformation which is static through the entire lifetime of the Centipede class instances. |
Line segment along one of the two coordinate directions (X/T or Y/R).
Centipede instances are distinguished by coordinate direction, and implemented with either line or ellipse graphics item
This class inherits from QObject so its subclasses can send signals
Definition at line 28 of file CentipedeSegmentAbstract.h.
CentipedeSegmentAbstract::CentipedeSegmentAbstract | ( | const DocumentModelGuideline & | modelGuideline, |
const Transformation & | transformation, | ||
const QPointF & | posClickScreen ) |
Constructor with individual coordinates.
Definition at line 14 of file CentipedeSegmentAbstract.cpp.
|
virtual |
Definition at line 23 of file CentipedeSegmentAbstract.cpp.
|
protected |
Loop to find closest angle to angleCenter.
Definition at line 27 of file CentipedeSegmentAbstract.cpp.
|
pure virtual |
Return distance to closest endpoint.
Implemented in CentipedeSegmentConstantREllipse, CentipedeSegmentConstantTRadial, CentipedeSegmentConstantXLine, and CentipedeSegmentConstantYLine.
|
protected |
Settings.
Definition at line 43 of file CentipedeSegmentAbstract.cpp.
|
protected |
Center of circle in screen coordinates.
Definition at line 48 of file CentipedeSegmentAbstract.cpp.
|
protected |
Transformation which is static through the entire lifetime of the Centipede class instances.
Definition at line 53 of file CentipedeSegmentAbstract.cpp.
|
pure virtual |
Update geometry to reflect cursor movement.
Implemented in CentipedeSegmentConstantREllipse, CentipedeSegmentConstantTRadial, CentipedeSegmentConstantXLine, and CentipedeSegmentConstantYLine.