28class QXmlStreamReader;
29class QXmlStreamWriter;
42 Curve (QDataStream &str);
45 Curve (QXmlStreamReader &reader);
67 const QString &identifier);
74 const QStringList &identifiers,
85 bool isXOnly (
const QString &pointIdentifier)
const;
88 void iterateThroughCurvePoints (
const Functor2wRet<const QString &, const Point &, CallbackSearchReturn> &ftorWithCallback)
const;
94 void movePoint (
const QString &pointIdentifier,
95 const QPointF &deltaScreen);
104 QPointF
positionGraph (
const QString &pointIdentifier)
const;
111 QTextStream &str)
const;
117 void saveXml(QXmlStreamWriter &writer)
const;
135 void loadCurvePoints(QXmlStreamReader &reader);
136 void loadXml(QXmlStreamReader &reader);
137 Point *pointForPointIdentifier (
const QString pointIdentifier);
138 void updatePointOrdinalsFunctions (
const Transformation &transformation);
139 void updatePointOrdinalsRelations ();
const QString AXIS_CURVE_NAME
const QString SCALE_CURVE_NAME
const QString DUMMY_CURVE_NAME
const QString DEFAULT_GRAPH_CURVE_NAME
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
Container for LineStyle and PointStyle for one Curve.
Container for one set of digitized Points.
bool isXOnly(const QString &pointIdentifier) const
Determine if specified point has just x coordinate. Otherwise has just y coordinate,...
void saveXml(QXmlStreamWriter &writer) const
Serialize curve.
void movePoint(const QString &pointIdentifier, const QPointF &deltaScreen)
Translate the position of a point by the specified distance vector.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
Curve & operator=(const Curve &curve)
Assignment constructor.
CurveStyle curveStyle() const
Return the curve style.
void exportToClipboard(const QHash< QString, bool > &selectedHash, const Transformation &transformation, QTextStream &strCsv, QTextStream &strHtml, CurvesGraphs &curvesGraphs) const
Export points in this Curve found in the specified point list.
void setCurveStyle(const CurveStyle &curveStyle)
Set curve style.
void updatePointOrdinals(const Transformation &transformation)
See CurveGraphs::updatePointOrdinals.
void editPointAxis(const QPointF &posGraph, const QString &identifier)
Edit the graph coordinates of an axis point. This method does not apply to a graph point.
ColorFilterSettings colorFilterSettings() const
Return the color filter.
void removePoint(const QString &identifier)
Perform the opposite of addPointAtEnd.
const Points points() const
Return a shallow copy of the Points.
void setColorFilterSettings(const ColorFilterSettings &colorFilterSettings)
Set color filter.
void addPoint(const Point &point)
Add Point to this Curve.
void setCurveName(const QString &curveName)
Change the curve name.
QString curveName() const
Name of this Curve.
QPointF positionScreen(const QString &pointIdentifier) const
Return the position, in screen coordinates, of the specified Point.
void iterateThroughCurvePoints(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const
Apply functor to Points on Curve.
QPointF positionGraph(const QString &pointIdentifier) const
Return the position, in graph coordinates, of the specified Point.
void iterateThroughCurveSegments(const Functor2wRet< const Point &, const Point &, CallbackSearchReturn > &ftorWithCallback) const
Apply functor to successive Points, as line segments, on Curve. This could be a bit slow.
void editPointGraph(bool isX, bool isY, double x, double y, const QStringList &identifiers, const Transformation &transformation)
Edit the graph coordinates of one or more graph points. This method does not apply to an axis point.
int numPoints() const
Number of points.
Container for all graph curves. The axes point curve is external to this class.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...