|
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) |
| 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) |
| 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) |
| Calls to moveLinesWithDraggedPoint have finished so update the lines correspondingly. | |
| void | updatePointOrdinalsAfterDrag (const CurveStyles &curveStyles, const Transformation &transformation) |
| See GraphicsScene::updateOrdinalsAfterDrag. | |
This class stores the GraphicsLinesForCurves objects, one per Curve.
Definition at line 25 of file GraphicsLinesForCurves.h.
| GraphicsLinesForCurves::GraphicsLinesForCurves | ( | ) |
Single constructor.
Definition at line 24 of file GraphicsLinesForCurves.cpp.
| 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 28 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 44 of file GraphicsLinesForCurves.cpp.
| void GraphicsLinesForCurves::lineMembershipPurge | ( | const CurveStyles & | curveStyles | ) |
Mark the end of addPoint calls. Remove stale lines, insert missing lines, and draw the graphics lines.
Definition at line 83 of file GraphicsLinesForCurves.cpp.
| void GraphicsLinesForCurves::lineMembershipReset | ( | ) |
Mark points as unwanted. Afterwards, lineMembershipPurge gets called.
Definition at line 97 of file GraphicsLinesForCurves.cpp.
| void GraphicsLinesForCurves::print | ( | ) | const |
Debugging method for printing directly from symbolic debugger.
Definition at line 110 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 119 of file GraphicsLinesForCurves.cpp.
| void GraphicsLinesForCurves::removePoint | ( | const QString & | identifier | ) |
Remove the specified point. The act of deleting it will automatically remove it from the GraphicsScene.
Definition at line 136 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 149 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 159 of file GraphicsLinesForCurves.cpp.
| void GraphicsLinesForCurves::updateAfterCommand | ( | GraphicsScene & | scene, |
| const CurveStyles & | curveStyles, | ||
| const QString & | curveName, | ||
| const Point & | point | ||
| ) |
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 172 of file GraphicsLinesForCurves.cpp.
| void GraphicsLinesForCurves::updateCurveStyles | ( | const CurveStyles & | modelCurveStyles | ) |
Update the curve style for every curve.
Definition at line 187 of file GraphicsLinesForCurves.cpp.
| void GraphicsLinesForCurves::updateGraphicsLinesToMatchGraphicsPoints | ( | const CurveStyles & | curveStyles | ) |
Calls to moveLinesWithDraggedPoint have finished so update the lines correspondingly.
Definition at line 200 of file GraphicsLinesForCurves.cpp.
| void GraphicsLinesForCurves::updatePointOrdinalsAfterDrag | ( | const CurveStyles & | curveStyles, |
| const Transformation & | transformation | ||
| ) |
See GraphicsScene::updateOrdinalsAfterDrag.
Definition at line 217 of file GraphicsLinesForCurves.cpp.