Engauge Digitizer
2
|
This class stores the GraphicsLine objects for one Curve. More...
#include <GraphicsLinesForCurve.h>
Public Member Functions | |
GraphicsLinesForCurve (const QString &curveName) | |
Single constructor. | |
void | addPoint (const QString &pointIdentifier, double ordinal, GraphicsPoint &point) |
Add new line. More... | |
double | identifierToOrdinal (const QString &identifier) const |
Get ordinal for specified identifier. | |
void | lineMembershipPurge (const LineStyle &lineStyle) |
Mark the end of addPoint calls. Remove stale lines, insert missing lines, and draw the graphics lines. | |
void | lineMembershipReset () |
Mark points as unwanted. Afterwards, lineMembershipPurge gets called. | |
void | printStream (QString indentation, QTextStream &str) const |
Debugging method that supports print method of this class and printStream method of some other class(es) | |
void | removePoint (double ordinal) |
Remove the specified point. The act of deleting it will automatically remove it from the GraphicsScene. | |
void | removeTemporaryPointIfExists () |
Remove temporary point if it exists. More... | |
void | updateAfterCommand (GraphicsScene &scene, const PointStyle &pointStyle, const Point &point, GeometryWindow *geometryWindow) |
Update the GraphicsScene with the specified Point from the Document. If it does not exist yet in the scene, we add it. | |
void | updateCurveStyle (const CurveStyle &curveStyle) |
Update the curve style for this curve. | |
void | updateGraphicsLinesToMatchGraphicsPoints (const LineStyle &lineStyle) |
Calls to moveLinesWithDraggedPoint have finished so update the lines correspondingly. | |
void | updateHighlightOpacity (double highlightOpacity) |
Update the highlight opacity value. This may or may not affect the current display immediately depending on the state. | |
void | updatePointOrdinalsAfterDrag (const LineStyle &lineStyle, const Transformation &transformation) |
See GraphicsScene::updateOrdinalsAfterDrag. Pretty much the same steps as Curve::updatePointOrdinals. | |
This class stores the GraphicsLine objects for one Curve.
The container is a QMap since that container maintains order by key
Definition at line 25 of file GraphicsLinesForCurve.h.
void GraphicsLinesForCurve::addPoint | ( | const QString & | pointIdentifier, |
double | ordinal, | ||
GraphicsPoint & | point | ||
) |
Add new line.
The GraphicsPoint arguments are not const since this line binds to the points, so dragging points also drags the lines. The ordinal is already in the GraphicsPoint as DATA_KEY_ORDINAL
Definition at line 53 of file GraphicsLinesForCurve.cpp.
void GraphicsLinesForCurve::removeTemporaryPointIfExists | ( | ) |
Remove temporary point if it exists.
Temporary point handling is so complicated that this method quietly allows redundant calls to this method, without complaining that the point has already been removed when called again
Definition at line 281 of file GraphicsLinesForCurve.cpp.