Engauge Digitizer  2
Public Member Functions | List of all members
GraphicsLinesForCurves Class Reference

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. More...
 
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. More...
 
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)
 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.
 

Detailed Description

This class stores the GraphicsLinesForCurves objects, one per Curve.

Definition at line 26 of file GraphicsLinesForCurves.h.

Member Function Documentation

◆ addPoint()

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.

◆ removeTemporaryPointIfExists()

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.


The documentation for this class was generated from the following files: