Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CurvesGraphs Class Reference

Container for all graph curves. The axes point curve is external to this class. More...

#include <CurvesGraphs.h>

Public Member Functions

void addGraphCurveAtEnd (Curve curve)
 Append new graph Curve to end of Curve list.
 
void addPoint (const Point &point)
 Append new Point to the specified Curve.
 
CurvecurveForCurveName (const QString &curveName)
 Return the axis or graph curve for the specified curve name.
 
const CurvecurveForCurveName (const QString &curveName) const
 Return the axis or graph curve for the specified curve name.
 
QStringList curvesGraphsNames () const
 List of graph curve names.
 
int curvesGraphsNumPoints (const QString &curveName) const
 Point count.
 
void iterateThroughCurvePoints (const QString &curveNameWanted, const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
 Apply functor to Points in the specified axis or graph Curve.
 
void iterateThroughCurveSegments (const QString &curveNameWanted, const Functor2wRet< const Point &, const Point &, CallbackSearchReturn > &ftorWithCallback) const
 Apply functor to segments on the specified axis or graph Curve.
 
void iterateThroughCurvesPoints (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
 Apply functor to Points on all of the Curves.
 
void iterateThroughCurvesPoints (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const
 Apply functor to Points on all of the Curves.
 
void loadPreVersion6 (QDataStream &str)
 Load from serialized binary pre-version 6 file.
 
void loadXml (QXmlStreamReader &reader)
 Load from serialized xml post-version 5 file.
 
int numCurves () const
 Current number of graphs curves.
 
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 &pointIdentifier)
 Remove the Point from its Curve.
 
void saveXml (QXmlStreamWriter &writer) const
 Serialize curves.
 
void updatePointOrdinals (const Transformation &transformation)
 Update point ordinals to be consistent with their CurveStyle and x/theta coordinate.
 

Detailed Description

Container for all graph curves. The axes point curve is external to this class.

Definition at line 24 of file CurvesGraphs.h.

Constructor & Destructor Documentation

◆ CurvesGraphs()

CurvesGraphs::CurvesGraphs ( )

Definition at line 20 of file CurvesGraphs.cpp.

Member Function Documentation

◆ addGraphCurveAtEnd()

void CurvesGraphs::addGraphCurveAtEnd ( Curve  curve)

Append new graph Curve to end of Curve list.

Definition at line 24 of file CurvesGraphs.cpp.

◆ addPoint()

void CurvesGraphs::addPoint ( const Point point)

Append new Point to the specified Curve.

Definition at line 29 of file CurvesGraphs.cpp.

◆ curveForCurveName() [1/2]

Curve * CurvesGraphs::curveForCurveName ( const QString &  curveName)

Return the axis or graph curve for the specified curve name.

Definition at line 37 of file CurvesGraphs.cpp.

◆ curveForCurveName() [2/2]

const Curve * CurvesGraphs::curveForCurveName ( const QString &  curveName) const

Return the axis or graph curve for the specified curve name.

Definition at line 52 of file CurvesGraphs.cpp.

◆ curvesGraphsNames()

QStringList CurvesGraphs::curvesGraphsNames ( ) const

List of graph curve names.

Definition at line 67 of file CurvesGraphs.cpp.

◆ curvesGraphsNumPoints()

int CurvesGraphs::curvesGraphsNumPoints ( const QString &  curveName) const

Point count.

Definition at line 81 of file CurvesGraphs.cpp.

◆ iterateThroughCurvePoints()

void CurvesGraphs::iterateThroughCurvePoints ( const QString &  curveNameWanted,
const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &  ftorWithCallback 
)

Apply functor to Points in the specified axis or graph Curve.

Definition at line 96 of file CurvesGraphs.cpp.

◆ iterateThroughCurveSegments()

void CurvesGraphs::iterateThroughCurveSegments ( const QString &  curveNameWanted,
const Functor2wRet< const Point &, const Point &, CallbackSearchReturn > &  ftorWithCallback 
) const

Apply functor to segments on the specified axis or graph Curve.

Definition at line 114 of file CurvesGraphs.cpp.

◆ iterateThroughCurvesPoints() [1/2]

void CurvesGraphs::iterateThroughCurvesPoints ( const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &  ftorWithCallback)

Apply functor to Points on all of the Curves.

Definition at line 132 of file CurvesGraphs.cpp.

◆ iterateThroughCurvesPoints() [2/2]

void CurvesGraphs::iterateThroughCurvesPoints ( const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &  ftorWithCallback) const

Apply functor to Points on all of the Curves.

Definition at line 142 of file CurvesGraphs.cpp.

◆ loadPreVersion6()

void CurvesGraphs::loadPreVersion6 ( QDataStream &  str)

Load from serialized binary pre-version 6 file.

Definition at line 152 of file CurvesGraphs.cpp.

◆ loadXml()

void CurvesGraphs::loadXml ( QXmlStreamReader &  reader)

Load from serialized xml post-version 5 file.

Definition at line 174 of file CurvesGraphs.cpp.

◆ numCurves()

int CurvesGraphs::numCurves ( ) const

Current number of graphs curves.

Definition at line 218 of file CurvesGraphs.cpp.

◆ printStream()

void CurvesGraphs::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 223 of file CurvesGraphs.cpp.

◆ removePoint()

void CurvesGraphs::removePoint ( const QString &  pointIdentifier)

Remove the Point from its Curve.

Definition at line 239 of file CurvesGraphs.cpp.

◆ saveXml()

void CurvesGraphs::saveXml ( QXmlStreamWriter &  writer) const

Serialize curves.

Definition at line 247 of file CurvesGraphs.cpp.

◆ updatePointOrdinals()

void CurvesGraphs::updatePointOrdinals ( const Transformation transformation)

Update point ordinals to be consistent with their CurveStyle and x/theta coordinate.

Definition at line 263 of file CurvesGraphs.cpp.


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