Engauge Digitizer 2
|
This class stores the GraphicsLinesForCurves objects, one per Curve. More...
#include <GraphicsLinesForCurves.h>
Public Member Functions | |
GraphicsLinesForCurves () | |
Single constructor. | |
void | addPoint (const QString &curveName, const QString &pointIdentifier, double ordinal, GraphicsPoint &point) |
Add new point. | |
void | addRemoveCurves (GraphicsScene &scene, const QStringList &curveNames) |
Add new curves and remove expired curves to match the specified list. | |
void | lineMembershipPurge (const CurveStyles &curveStyles, SplineDrawer &splineDrawer, QPainterPath &pathMultiValued, LineStyle &lineMultiValued) |
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 | print () const |
Debugging method for printing directly from symbolic debugger. | |
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 (const QString &identifier) |
Remove the specified point. The act of deleting it will automatically remove it from the GraphicsScene. | |
void | removeTemporaryPointIfExists () |
Remove temporary point if it exists. | |
void | resetOnLoad () |
Reset, when loading a document after the first, to same state that first document was at when loaded. | |
void | updateAfterCommand (GraphicsScene &scene, const CurveStyles &curveStyles, const QString &curveName, 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 | updateCurveStyles (const CurveStyles &modelCurveStyles) |
Update the curve style for every curve. | |
void | updateGraphicsLinesToMatchGraphicsPoints (const CurveStyles &curveStyles, SplineDrawer &splineDrawer, QPainterPath &pathMultiValued, LineStyle &lineMultiValued) |
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 CurveStyles &curveStyles, const Transformation &transformation) |
See GraphicsScene::updateOrdinalsAfterDrag. | |
This class stores the GraphicsLinesForCurves objects, one per Curve.
Definition at line 29 of file GraphicsLinesForCurves.h.
GraphicsLinesForCurves::GraphicsLinesForCurves | ( | ) |
void GraphicsLinesForCurves::addPoint | ( | const QString & | curveName, |
const QString & | pointIdentifier, | ||
double | ordinal, | ||
GraphicsPoint & | point ) |
Add new point.
The ordinal is already in the GraphicsPoint as DATA_KEY_ORDINAL
Definition at line 30 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::addRemoveCurves | ( | GraphicsScene & | scene, |
const QStringList & | curveNames ) |
Add new curves and remove expired curves to match the specified list.
Definition at line 46 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::lineMembershipPurge | ( | const CurveStyles & | curveStyles, |
SplineDrawer & | splineDrawer, | ||
QPainterPath & | pathMultiValued, | ||
LineStyle & | lineMultiValued ) |
Mark the end of addPoint calls. Remove stale lines, insert missing lines, and draw the graphics lines.
Definition at line 85 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::lineMembershipReset | ( | ) |
Mark points as unwanted. Afterwards, lineMembershipPurge gets called.
Definition at line 105 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::print | ( | ) | const |
Debugging method for printing directly from symbolic debugger.
Definition at line 118 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::printStream | ( | QString | indentation, |
QTextStream & | str ) const |
Debugging method that supports print method of this class and printStream method of some other class(es)
Definition at line 127 of file GraphicsLinesForCurves.cpp.
Remove the specified point. The act of deleting it will automatically remove it from the GraphicsScene.
Definition at line 144 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::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 157 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::resetOnLoad | ( | ) |
Reset, when loading a document after the first, to same state that first document was at when loaded.
Definition at line 167 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::updateAfterCommand | ( | GraphicsScene & | scene, |
const CurveStyles & | curveStyles, | ||
const QString & | curveName, | ||
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.
Definition at line 180 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::updateCurveStyles | ( | const CurveStyles & | modelCurveStyles | ) |
Update the curve style for every curve.
Definition at line 197 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::updateGraphicsLinesToMatchGraphicsPoints | ( | const CurveStyles & | curveStyles, |
SplineDrawer & | splineDrawer, | ||
QPainterPath & | pathMultiValued, | ||
LineStyle & | lineMultiValued ) |
Calls to moveLinesWithDraggedPoint have finished so update the lines correspondingly.
Definition at line 210 of file GraphicsLinesForCurves.cpp.
Update the highlight opacity value. This may or may not affect the current display immediately depending on the state.
Definition at line 233 of file GraphicsLinesForCurves.cpp.
void GraphicsLinesForCurves::updatePointOrdinalsAfterDrag | ( | const CurveStyles & | curveStyles, |
const Transformation & | transformation ) |
See GraphicsScene::updateOrdinalsAfterDrag.
Definition at line 247 of file GraphicsLinesForCurves.cpp.