Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
CallbackAddPointsInCurvesGraphs.cpp
1 #include "CallbackAddPointsInCurvesGraphs.h"
2 #include "Document.h"
3 
4 extern const QString AXIS_CURVE_NAME;
5 
7  m_document (document)
8 {
9 }
10 
12  const Point &point)
13 {
14  const QString identifier = point.identifier ();
15 
16  if (curveName == AXIS_CURVE_NAME) {
18  point.posGraph (),
19  identifier,
20  point.ordinal ());
21  } else {
22  m_document.addPointGraphWithSpecifiedIdentifier (curveName,
23  point.posScreen (),
24  identifier,
25  point.ordinal ());
26  }
27 
29 }
void addPointAxisWithSpecifiedIdentifier(const QPointF &posScreen, const QPointF &posGraph, const QString &identifier, double ordinal)
Add a single axis point with the specified point identifier.
Definition: Document.cpp:142
QPointF posGraph(ApplyHasCheck applyHasCheck=KEEP_HAS_CHECK) const
Accessor for graph position. Skip check if copying one instance to another.
Definition: Point.cpp:335
void addPointGraphWithSpecifiedIdentifier(const QString &curveName, const QPointF &posScreen, const QString &identifier, double ordinal)
Add a single graph point with the specified point identifer. Note that PointStyle is not applied to t...
Definition: Document.cpp:179
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition: Point.h:17
QPointF posScreen() const
Accessor for screen position.
Definition: Point.cpp:344
CallbackAddPointsInCurvesGraphs(Document &document)
Single constructor.
CallbackSearchReturn
Return values for search callback methods.
QString identifier() const
Unique identifier for a specific Point.
Definition: Point.cpp:220
Continue normal execution of the search.
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Storage of one imported image and the data attached to that image.
Definition: Document.h:29
double ordinal(ApplyHasCheck applyHasCheck=KEEP_HAS_CHECK) const
Get method for ordinal. Skip check if copying one instance to another.
Definition: Point.cpp:326