Engauge Digitizer 2
Loading...
Searching...
No Matches
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.
CallbackSearchReturn callback (const QString &curveName, const Point &point)
 Callback method.

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::CallbackRemovePointsInCurvesGraphs ( CoordSystem & coordSystem)

Single constructor.

Definition at line 12 of file CallbackRemovePointsInCurvesGraphs.cpp.

12 :
13 m_coordSystem (coordSystem)
14{
15}

Member Function Documentation

◆ callback()

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}
const QString AXIS_CURVE_NAME
@ CALLBACK_SEARCH_RETURN_CONTINUE
Continue normal execution of the search.
QString identifier() const
Unique identifier for a specific Point.
Definition Point.cpp:268

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