7 #ifndef CURVES_GRAPHS_H 8 #define CURVES_GRAPHS_H 10 #include "CallbackSearchReturn.h" 13 #include <QStringList> 17 class QXmlStreamReader;
18 class QXmlStreamWriter;
21 typedef QList<Curve> CurveList;
52 const QStringList &identifiers,
57 const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback);
61 const Functor2wRet<const Point &, const Point &, CallbackSearchReturn> &ftorWithCallback)
const;
67 void iterateThroughCurvesPoints (
const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback)
const;
73 void loadXml(QXmlStreamReader &reader);
80 QTextStream &str)
const;
86 void saveXml(QXmlStreamWriter &writer)
const;
93 CurveList m_curvesGraphs;
96 #endif // CURVES_GRAPHS_H int curvesGraphsNumPoints(const QString &curveName) const
Point count.
void loadXml(QXmlStreamReader &reader)
Load from serialized xml post-version 5 file.
Model for DlgSettingsCurveProperties and CmdSettingsCurveProperties.
Curve * curveForCurveName(const QString &curveName)
Return the axis or graph curve for the specified curve name.
void addGraphCurveAtEnd(Curve curve)
Append new graph Curve to end of Curve list.
void iterateThroughCurvesPoints(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
Apply functor to Points on all of the Curves.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
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 saveXml(QXmlStreamWriter &writer) const
Serialize curves.
void addPoint(const Point &point)
Append new Point to the specified Curve.
Container for all graph curves. The axes point curve is external to this class.
void iterateThroughCurvePoints(const QString &curveNameWanted, const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
Apply functor to Points in the specified axis or graph Curve.
int numCurves() const
Current number of graphs curves.
Container for one set of digitized Points.
void updatePointOrdinals(const Transformation &transformation)
Update point ordinals to be consistent with their CurveStyle and x/theta coordinate.
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.
QStringList curvesGraphsNames() const
List of graph curve names.
void loadPreVersion6(QDataStream &str)
Load from serialized binary pre-version 6 file.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void removePoint(const QString &pointIdentifier)
Remove the Point from its Curve.