Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Callback
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
7
#include "
CallbackRemovePointsInCurvesGraphs.h
"
8
#include "
CoordSystem.h
"
9
10
extern
const
QString
AXIS_CURVE_NAME
;
11
12
CallbackRemovePointsInCurvesGraphs::CallbackRemovePointsInCurvesGraphs
(
CoordSystem
&coordSystem) :
13
m_coordSystem (coordSystem)
14
{
15
}
16
17
CallbackSearchReturn
CallbackRemovePointsInCurvesGraphs::callback
(
const
QString &curveName,
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
26
return
CALLBACK_SEARCH_RETURN_CONTINUE
;
27
}
AXIS_CURVE_NAME
const QString AXIS_CURVE_NAME
CallbackRemovePointsInCurvesGraphs.h
CallbackSearchReturn
CallbackSearchReturn
Return values for search callback methods.
Definition
CallbackSearchReturn.h:18
CALLBACK_SEARCH_RETURN_CONTINUE
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
Definition
CallbackSearchReturn.h:19
CoordSystem.h
CallbackRemovePointsInCurvesGraphs::CallbackRemovePointsInCurvesGraphs
CallbackRemovePointsInCurvesGraphs(CoordSystem &coordSystem)
Single constructor.
Definition
CallbackRemovePointsInCurvesGraphs.cpp:12
CallbackRemovePointsInCurvesGraphs::callback
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Definition
CallbackRemovePointsInCurvesGraphs.cpp:17
CoordSystem
Storage of data belonging to one coordinate system.
Definition
CoordSystem.h:44
Point
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition
Point.h:26
Point::identifier
QString identifier() const
Unique identifier for a specific Point.
Definition
Point.cpp:268
Generated on
for Engauge Digitizer by
1.17.0