Engauge Digitizer 2
|
Container for all graph curves. The axes point curve is external to this class. More...
#include <CurvesGraphs.h>
Public Member Functions | |
CurvesGraphs () | |
void | addGraphCurveAtEnd (const Curve &curve) |
Append new graph Curve to end of Curve list. | |
void | addPoint (const Point &point) |
Append new Point to the specified Curve. | |
Curve * | curveForCurveName (const QString &curveName) |
Return the axis or graph curve for the specified curve name. | |
const Curve * | curveForCurveName (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 | editPointGraph (bool isX, bool isY, double x, double y, const QStringList &identifiers, const Transformation &transformation) |
Set the x and/or y coordinate values of the specified points. | |
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. | |
Container for all graph curves. The axes point curve is external to this class.
Definition at line 24 of file CurvesGraphs.h.
CurvesGraphs::CurvesGraphs | ( | ) |
Definition at line 20 of file CurvesGraphs.cpp.
Append new graph Curve to end of Curve list.
Definition at line 24 of file CurvesGraphs.cpp.
Append new Point to the specified Curve.
Definition at line 29 of file CurvesGraphs.cpp.
Return the axis or graph curve for the specified curve name.
Definition at line 37 of file CurvesGraphs.cpp.
Return the axis or graph curve for the specified curve name.
Definition at line 52 of file CurvesGraphs.cpp.
QStringList CurvesGraphs::curvesGraphsNames | ( | ) | const |
List of graph curve names.
Definition at line 67 of file CurvesGraphs.cpp.
Point count.
Definition at line 81 of file CurvesGraphs.cpp.
void CurvesGraphs::editPointGraph | ( | bool | isX, |
bool | isY, | ||
double | x, | ||
double | y, | ||
const QStringList & | identifiers, | ||
const Transformation & | transformation ) |
Set the x and/or y coordinate values of the specified points.
Definition at line 96 of file CurvesGraphs.cpp.
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 116 of file CurvesGraphs.cpp.
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 134 of file CurvesGraphs.cpp.
void CurvesGraphs::iterateThroughCurvesPoints | ( | const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > & | ftorWithCallback | ) |
Apply functor to Points on all of the Curves.
Definition at line 152 of file CurvesGraphs.cpp.
void CurvesGraphs::iterateThroughCurvesPoints | ( | const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > & | ftorWithCallback | ) | const |
Apply functor to Points on all of the Curves.
Definition at line 162 of file CurvesGraphs.cpp.
void CurvesGraphs::loadPreVersion6 | ( | QDataStream & | str | ) |
Load from serialized binary pre-version 6 file.
Definition at line 172 of file CurvesGraphs.cpp.
void CurvesGraphs::loadXml | ( | QXmlStreamReader & | reader | ) |
Load from serialized xml post-version 5 file.
Definition at line 197 of file CurvesGraphs.cpp.
int CurvesGraphs::numCurves | ( | ) | const |
Current number of graphs curves.
Definition at line 241 of file CurvesGraphs.cpp.
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 246 of file CurvesGraphs.cpp.
void CurvesGraphs::saveXml | ( | QXmlStreamWriter & | writer | ) | const |
Serialize curves.
Definition at line 270 of file CurvesGraphs.cpp.
void CurvesGraphs::updatePointOrdinals | ( | const Transformation & | transformation | ) |
Update point ordinals to be consistent with their CurveStyle and x/theta coordinate.
Definition at line 286 of file CurvesGraphs.cpp.