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.
void CurvesGraphs::addGraphCurveAtEnd | ( | const Curve & | curve | ) |
Append new graph Curve to end of Curve list.
Definition at line 24 of file CurvesGraphs.cpp.
void CurvesGraphs::addPoint | ( | const Point & | point | ) |
Append new Point to the specified Curve.
Definition at line 29 of file CurvesGraphs.cpp.
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.
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.
QStringList CurvesGraphs::curvesGraphsNames | ( | ) | const |
List of graph curve names.
Definition at line 67 of file CurvesGraphs.cpp.
int CurvesGraphs::curvesGraphsNumPoints | ( | const QString & | curveName | ) | const |
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 136 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 156 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 166 of file CurvesGraphs.cpp.
void CurvesGraphs::loadPreVersion6 | ( | QDataStream & | str | ) |
Load from serialized binary pre-version 6 file.
Definition at line 176 of file CurvesGraphs.cpp.
void CurvesGraphs::loadXml | ( | QXmlStreamReader & | reader | ) |
Load from serialized xml post-version 5 file.
Definition at line 201 of file CurvesGraphs.cpp.
int CurvesGraphs::numCurves | ( | ) | const |
Current number of graphs curves.
Definition at line 245 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 250 of file CurvesGraphs.cpp.
void CurvesGraphs::removePoint | ( | const QString & | pointIdentifier | ) |
Remove the Point from its Curve.
Definition at line 266 of file CurvesGraphs.cpp.
void CurvesGraphs::saveXml | ( | QXmlStreamWriter & | writer | ) | const |
Serialize curves.
Definition at line 274 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 290 of file CurvesGraphs.cpp.