Engauge Digitizer  2
CallbackRemovePointsInCurvesGraphs.cpp
Go to the documentation of this file.
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
8 #include "CoordSystem.h"
9 
10 extern const QString AXIS_CURVE_NAME;
11 
13  m_coordSystem (coordSystem)
14 {
15 }
16 
18  const Point &point)
19 {
20  if (curveName == AXIS_CURVE_NAME) {
21  m_coordSystem.removePointAxis (point.identifier());
22  } else {
23  m_coordSystem.removePointGraph (point.identifier());
24  }
25 
27 }
CallbackRemovePointsInCurvesGraphs::callback
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Definition: CallbackRemovePointsInCurvesGraphs.cpp:17
CallbackRemovePointsInCurvesGraphs.h
CallbackSearchReturn
CallbackSearchReturn
Return values for search callback methods.
Definition: CallbackSearchReturn.h:17
CallbackRemovePointsInCurvesGraphs::CallbackRemovePointsInCurvesGraphs
CallbackRemovePointsInCurvesGraphs(CoordSystem &coordSystem)
Single constructor.
Definition: CallbackRemovePointsInCurvesGraphs.cpp:12
CoordSystem::removePointAxis
virtual void removePointAxis(const QString &identifier)
Perform the opposite of addPointAxis.
Definition: CoordSystem.cpp:835
Point::identifier
QString identifier() const
Unique identifier for a specific Point.
Definition: Point.cpp:268
CoordSystem::removePointGraph
virtual void removePointGraph(const QString &identifier)
Perform the opposite of addPointGraph.
Definition: CoordSystem.cpp:842
CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
Definition: CallbackSearchReturn.h:21
AXIS_CURVE_NAME
const QString AXIS_CURVE_NAME
Point
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition: Point.h:24
CoordSystem.h
CoordSystem
Storage of data belonging to one coordinate system.
Definition: CoordSystem.h:41