Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
CallbackRemovePointsInCurvesGraphs Class Reference

Callback that is used when iterating through a read-only CurvesGraphs to remove corresponding points in Document. More...

#include <CallbackRemovePointsInCurvesGraphs.h>

Collaboration diagram for CallbackRemovePointsInCurvesGraphs:
Collaboration graph

Public Member Functions

 CallbackRemovePointsInCurvesGraphs (CoordSystem &coordSystem)
 Single constructor. More...
 
CallbackSearchReturn callback (const QString &curveName, const Point &point)
 Callback method. More...
 

Detailed Description

Callback that is used when iterating through a read-only CurvesGraphs to remove corresponding points in Document.

Definition at line 17 of file CallbackRemovePointsInCurvesGraphs.h.

Constructor & Destructor Documentation

CallbackRemovePointsInCurvesGraphs::CallbackRemovePointsInCurvesGraphs ( CoordSystem coordSystem)

Single constructor.

Definition at line 12 of file CallbackRemovePointsInCurvesGraphs.cpp.

12  :
13  m_coordSystem (coordSystem)
14 {
15 }

Member Function Documentation

CallbackSearchReturn CallbackRemovePointsInCurvesGraphs::callback ( const QString &  curveName,
const Point point 
)

Callback method.

Definition at line 17 of file CallbackRemovePointsInCurvesGraphs.cpp.

19 {
20  if (curveName == AXIS_CURVE_NAME) {
21  m_coordSystem.removePointAxis (point.identifier());
22  } else {
23  m_coordSystem.removePointGraph (point.identifier());
24  }
25 
27 }
QString identifier() const
Unique identifier for a specific Point.
Definition: Point.cpp:268
Continue normal execution of the search.
virtual void removePointGraph(const QString &identifier)
Perform the opposite of addPointGraph.
virtual void removePointAxis(const QString &identifier)
Perform the opposite of addPointAxis.
const QString AXIS_CURVE_NAME

The documentation for this class was generated from the following files: