11 #include "ColorFilterSettings.h" 12 #include "CurveStyle.h" 20 extern const QString AXIS_CURVE_NAME;
21 extern const QString DEFAULT_GRAPH_CURVE_NAME;
22 extern const QString DUMMY_CURVE_NAME;
23 extern const QString SCALE_CURVE_NAME;
28 class QXmlStreamReader;
29 class 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);
101 const Points
points ()
const;
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 ();
void removePoint(const QString &identifier)
Perform the opposite of addPointAtEnd.
QPointF positionScreen(const QString &pointIdentifier) const
Return the position, in screen coordinates, of the specified Point.
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
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.
const Points points() const
Return a shallow copy of the Points.
void setCurveStyle(const CurveStyle &curveStyle)
Set curve style.
void addPoint(Point point)
Add Point to this Curve.
void setColorFilterSettings(const ColorFilterSettings &colorFilterSettings)
Set color filter.
int numPoints() const
Number of points.
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...
bool isXOnly(const QString &pointIdentifier) const
Determine if specified point has just x coordinate. Otherwise has just y coordinate, or both x and y coordinates.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
QPointF positionGraph(const QString &pointIdentifier) const
Return the position, in graph coordinates, of the specified Point.
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.
void movePoint(const QString &pointIdentifier, const QPointF &deltaScreen)
Translate the position of a point by the specified distance vector.
Container for all graph curves. The axes point curve is external to this class.
void iterateThroughCurvePoints(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const
Apply functor to Points on Curve.
void setCurveName(const QString &curveName)
Change the curve name.
Container for LineStyle and PointStyle for one Curve.
Container for one set of digitized Points.
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...
CurveStyle curveStyle() const
Return the curve style.
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 saveXml(QXmlStreamWriter &writer) const
Serialize curve.
ColorFilterSettings colorFilterSettings() const
Return the color filter.
QString curveName() const
Name of this Curve.