1 #include "CallbackPointOrdinal.h"
3 #include "OrdinalGenerator.h"
4 #include "Transformation.h"
6 OrdinalGenerator::OrdinalGenerator ()
13 QPointF posScreen (0, 0);
20 Functor2wRet<const Point&, const Point&, CallbackSearchReturn> ftorWithCallback = functor_ret (ftor,
25 return ftor.ordinal () + 1.0;
30 const QPointF &posScreen,
31 const QString &curveName)
37 Functor2wRet<const Point&, const Point&, CallbackSearchReturn> ftorWithCallback = functor_ret (ftor,
42 return ftor.ordinal () + 1.0;
CallbackSearchReturn callback(const Point &pointStart, const Point &pointStop)
Callback method.
Callback for computing the ordinal for a specified point, as a function of the LineStyle and curve ge...
const LineStyle lineStyle(const QString &curveName) const
Get method for copying one line style in one step.
CurveStyles modelCurveStyles() const
Get method for CurveStyles.
Storage of one imported image and the data attached to that image.
void iterateThroughCurveSegments(const QString &curveName, const Functor2wRet< const Point &, const Point &, CallbackSearchReturn > &ftorWithCallback) const
See Curve::iterateThroughCurveSegments, for any axes or graph curve.
double generateAxisPointOrdinal(const Document &document)
Select ordinal just for uniqueness, since there is never a curve drawn through the axis points...
double generateCurvePointOrdinal(const Document &document, const Transformation &transformation, const QPointF &posScreen, const QString &curveName)
Select ordinal so new point curve passes smoothly through existing points.