Engauge Digitizer  2
CallbackRemovePointsInCurvesGraphs.cpp
1 #include "CallbackRemovePointsInCurvesGraphs.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  if (curveName == AXIS_CURVE_NAME) {
15  m_document.removePointAxis (point.identifier());
16  } else {
17  m_document.removePointGraph (point.identifier());
18  }
19 
21 }
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
void removePointAxis(const QString &identifier)
Perform the opposite of addPointAxis.
Definition: Document.cpp:792
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition: Point.h:17
CallbackSearchReturn
Return values for search callback methods.
QString identifier() const
Unique identifier for a specific Point.
Definition: Point.cpp:220
void removePointGraph(const QString &identifier)
Perform the opposite of addPointGraph.
Definition: Document.cpp:799
Continue normal execution of the search.
Storage of one imported image and the data attached to that image.
Definition: Document.h:29
CallbackRemovePointsInCurvesGraphs(Document &document)
Single constructor.