Engauge Digitizer 2
Loading...
Searching...
No Matches
CoordSystemContext Class Reference

This class plays the role of context class in a state machine, although the 'states' are actually different instantiations of the CoordSystem class. More...

#include <CoordSystemContext.h>

Inheritance diagram for CoordSystemContext:
Inheritance graph
Collaboration diagram for CoordSystemContext:
Collaboration graph

Public Member Functions

 CoordSystemContext ()
 Default constructor for constructing from opened file.
 ~CoordSystemContext ()
void addCoordSystems (unsigned int numberCoordSystemToAdd)
 Add specified number of coordinate systems to the original one created by the constructor.
virtual void addGraphCurveAtEnd (const QString &curveName)
 Add new graph curve to the list of existing graph curves.
virtual void addPointAxisWithGeneratedIdentifier (const QPointF &posScreen, const QPointF &posGraph, QString &identifier, double ordinal, bool isXOnly)
 Add a single axis point with a generated point identifier.
virtual void addPointAxisWithSpecifiedIdentifier (const QPointF &posScreen, const QPointF &posGraph, const QString &identifier, double ordinal, bool isXOnly)
 Add a single axis point with the specified point identifier.
virtual void addPointGraphWithGeneratedIdentifier (const QString &curveName, const QPointF &posScreen, QString &generatedIentifier, double ordinal)
 Add a single graph point with a generated point identifier.
virtual void addPointGraphWithSpecifiedIdentifier (const QString &curveName, const QPointF &posScreen, const QString &identifier, double ordinal)
 Add a single graph point with the specified point identifier. Note that PointStyle is not applied to the point within the Graph.
virtual void addPointsInCurvesGraphs (CurvesGraphs &curvesGraphs)
 Add all points identified in the specified CurvesGraphs. See also removePointsInCurvesGraphs.
virtual void checkAddPointAxis (const QPointF &posScreen, const QPointF &posGraph, bool &isError, QString &errorMessage, bool isXOnly, DocumentAxesPointsRequired documentAxesPointsRequired)
 Check before calling addPointAxis. Also returns the next available ordinal number (to prevent clashes)
virtual void checkEditPointAxis (const QString &pointIdentifier, const QPointF &posScreen, const QPointF &posGraph, bool &isError, QString &errorMessage, DocumentAxesPointsRequired documentAxesPointsRequired)
 Check before calling editPointAxis.
const CoordSystemcoordSystem () const
 Current CoordSystem.
unsigned int coordSystemCount () const
 Number of CoordSystem.
CoordSystemIndex coordSystemIndex () const
 Index of current CoordSystem.
virtual const CurvecurveAxes () const
 Get method for axis curve.
virtual CurvecurveForCurveName (const QString &curveName)
 See CurvesGraphs::curveForCurveName, although this also works for AXIS_CURVE_NAME.
virtual const CurvecurveForCurveName (const QString &curveName) const
 See CurvesGraphs::curveForCurveNames, although this also works for AXIS_CURVE_NAME.
virtual const CurvesGraphscurvesGraphs () const
 Make all Curves available, read only, for CmdAbstract classes only.
virtual QStringList curvesGraphsNames () const
 See CurvesGraphs::curvesGraphsNames.
virtual int curvesGraphsNumPoints (const QString &curveName) const
 See CurvesGraphs::curvesGraphsNumPoints.
virtual void editPointAxis (const QPointF &posGraph, const QString &identifier)
 Edit the graph coordinates of a single axis point. Call this after checkAddPointAxis to guarantee success in this call.
virtual void editPointGraph (bool isX, bool isY, double x, double y, const QStringList &identifiers, const Transformation &transformation)
 Edit the graph coordinates of one or more graph points.
bool isXOnly (const QString &pointIdentifier) const
 True/false if y/x value is empty.
virtual void iterateThroughCurvePointsAxes (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
 See Curve::iterateThroughCurvePoints, for the axes curve.
virtual void iterateThroughCurvePointsAxes (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const
 See Curve::iterateThroughCurvePoints, for the axes curve.
virtual void iterateThroughCurveSegments (const QString &curveName, const Functor2wRet< const Point &, const Point &, CallbackSearchReturn > &ftorWithCallback) const
 See Curve::iterateThroughCurveSegments, for any axes or graph curve.
virtual void iterateThroughCurvesPointsGraphs (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
 See Curve::iterateThroughCurvePoints, for all the graphs curves.
virtual void iterateThroughCurvesPointsGraphs (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const
 See Curve::iterateThroughCurvePoints, for all the graphs curves.
virtual bool loadCurvesFile (const QString &curvesFile)
 Load the curve names in the specified Engauge file into the current graph. This is called near the end of the import process only.
void loadPreVersion6 (QDataStream &str, double version, DocumentAxesPointsRequired &documentAxesPointsRequired)
 Load from file in pre-version 6 format.
void loadVersion6 (QXmlStreamReader &reader, DocumentAxesPointsRequired &documentAxesPointsRequired)
 Load from file in version 6 format, into the single CoordSystem.
void loadVersions7AndUp (QXmlStreamReader &reader)
 Load one CoordSystem from file in version 7 format or newer, into the most recent CoordSystem which was just created before the call to this method.
virtual DocumentModelAxesChecker modelAxesChecker () const
 Get method for DocumentModelAxesChecker.
virtual DocumentModelColorFilter modelColorFilter () const
 Get method for DocumentModelColorFilter.
virtual DocumentModelCoords modelCoords () const
 Get method for DocumentModelCoords.
virtual CurveStyles modelCurveStyles () const
 Get method for CurveStyles.
virtual DocumentModelDigitizeCurve modelDigitizeCurve () const
 Get method for DocumentModelDigitizeCurve.
virtual DocumentModelExportFormat modelExport () const
 Get method for DocumentModelExportFormat.
virtual DocumentModelGeneral modelGeneral () const
 Get method for DocumentModelGeneral.
virtual DocumentModelGridDisplay modelGridDisplay () const
 Get method for DocumentModelGridDisplay.
virtual DocumentModelGridRemoval modelGridRemoval () const
 Get method for DocumentModelGridRemoval.
virtual DocumentModelGuideline modelGuideline () const
 Get method for DocumentModelGuideline.
virtual DocumentModelPointMatch modelPointMatch () const
 Get method for DocumentModelPointMatch.
virtual DocumentModelSegments modelSegments () const
 Get method for DocumentModelSegments.
virtual void movePoint (const QString &pointIdentifier, const QPointF &deltaScreen)
 See Curve::movePoint.
virtual int nextOrdinalForCurve (const QString &curveName) const
 Default next ordinal value for specified curve.
virtual QPointF positionGraph (const QString &pointIdentifier) const
 See Curve::positionGraph.
virtual QPointF positionScreen (const QString &pointIdentifier) const
 See Curve::positionScreen.
virtual void print () const
 Debugging method for printing directly from symbolic debugger.
virtual void printStream (QString indentation, QTextStream &str) const
 Debugging method that supports print method of this class and printStream method of some other class(es)
virtual QString reasonForUnsuccessfulRead () const
 Return an informative text message explaining why startup loading failed. Applies if successfulRead returns false.
virtual void removePointAxis (const QString &identifier)
 Perform the opposite of addPointAxis.
virtual void removePointGraph (const QString &identifier)
 Perform the opposite of addPointGraph.
virtual void removePointsInCurvesGraphs (CurvesGraphs &curvesGraphs)
 Remove all points identified in the specified CurvesGraphs. See also addPointsInCurvesGraphs.
virtual void saveXml (QXmlStreamWriter &writer) const
 Save graph to xml.
virtual QString selectedCurveName () const
 Currently selected curve name. This is used to set the selected curve combobox in MainWindow.
void setCoordSystemIndex (CoordSystemIndex coordSystemIndex)
 Index of current CoordSystem.
virtual void setCurveAxes (const Curve &curveAxes)
 Let CmdAbstract classes overwrite axes Curve. Applies to current coordinate system.
virtual void setCurvesGraphs (const CurvesGraphs &curvesGraphs)
 Let CmdAbstract classes overwrite CurvesGraphs. Applies to current coordinate system.
virtual void setModelAxesChecker (const DocumentModelAxesChecker &modelAxesChecker)
 Set method for DocumentModelAxesChecker.
virtual void setModelColorFilter (const DocumentModelColorFilter &modelColorFilter)
 Set method for DocumentModelColorFilter.
virtual void setModelCoords (const DocumentModelCoords &modelCoords)
 Set method for DocumentModelCoords.
virtual void setModelCurveStyles (const CurveStyles &modelCurveStyles)
 Set method for CurveStyles.
virtual void setModelDigitizeCurve (const DocumentModelDigitizeCurve &modelDigitizeCurve)
 Set method for DocumentModelDigitizeCurve.
virtual void setModelExport (const DocumentModelExportFormat &modelExport)
 Set method for DocumentModelExportFormat.
virtual void setModelGeneral (const DocumentModelGeneral &modelGeneral)
 Set method for DocumentModelGeneral.
virtual void setModelGridDisplay (const DocumentModelGridDisplay &modelGridDisplay)
 Set method for DocumentModelGridDisplay.
virtual void setModelGridRemoval (const DocumentModelGridRemoval &modelGridRemoval)
 Set method for DocumentModelGridRemoval.
virtual void setModelGuideline (const DocumentModelGuideline &modelGuideline)
 Set method for DocumentModelGuideline.
void setModelPointMatch (const DocumentModelPointMatch &modelPointMatch)
 Set method for DocumentModelPointMatch.
virtual void setModelSegments (const DocumentModelSegments &modelSegments)
 Set method for DocumentModelSegments.
virtual void setSelectedCurveName (const QString &selectedCurveName)
 Save curve name that is selected for the current coordinate system, for the next time the coordinate system reappears.
virtual bool successfulRead () const
 Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will explain why.
virtual void updatePointOrdinals (const Transformation &transformation)
 Update point ordinals after point addition/removal or dragging.
Public Member Functions inherited from CoordSystemInterface
 CoordSystemInterface ()
 Single constructor.
virtual ~CoordSystemInterface ()

Detailed Description

This class plays the role of context class in a state machine, although the 'states' are actually different instantiations of the CoordSystem class.

At any point in time, one CoordSystem is active (as selected by the user)

Definition at line 24 of file CoordSystemContext.h.

Constructor & Destructor Documentation

◆ CoordSystemContext()

CoordSystemContext::CoordSystemContext ( )

Default constructor for constructing from opened file.

Definition at line 13 of file CoordSystemContext.cpp.

13 :
14 m_coordSystemIndex (DEFAULT_COORD_SYSTEM_INDEX)
15{
16 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::CoordSystemContext";
17}
const CoordSystemIndex DEFAULT_COORD_SYSTEM_INDEX
log4cpp::Category * mainCat
Definition Logger.cpp:14
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

◆ ~CoordSystemContext()

CoordSystemContext::~CoordSystemContext ( )

Definition at line 19 of file CoordSystemContext.cpp.

20{
21 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::~CoordSystemContext";
22
23 qDeleteAll (m_coordSystems);
24}

Member Function Documentation

◆ addCoordSystems()

void CoordSystemContext::addCoordSystems ( unsigned int numberCoordSystemToAdd)

Add specified number of coordinate systems to the original one created by the constructor.

Definition at line 26 of file CoordSystemContext.cpp.

27{
28 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addCoordSystems"
29 << " numberToAdd=" << numberCoordSystemToAdd;
30
31 // The CoordSystem vector is populated with defaults here
32 for (unsigned int i = 0; i < numberCoordSystemToAdd; i++) {
33 m_coordSystems.push_back (new CoordSystem ());
34 }
35}

◆ addGraphCurveAtEnd()

void CoordSystemContext::addGraphCurveAtEnd ( const QString & curveName)
virtual

Add new graph curve to the list of existing graph curves.

Implements CoordSystemInterface.

Definition at line 37 of file CoordSystemContext.cpp.

38{
39 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addGraphCurveAtEnd";
40
41 m_coordSystems [signed (m_coordSystemIndex)]->addGraphCurveAtEnd(curveName);
42}

◆ addPointAxisWithGeneratedIdentifier()

void CoordSystemContext::addPointAxisWithGeneratedIdentifier ( const QPointF & posScreen,
const QPointF & posGraph,
QString & identifier,
double ordinal,
bool isXOnly )
virtual

Add a single axis point with a generated point identifier.

Call this after checkAddPointAxis to guarantee success in this call.

Parameters
posScreenScreen coordinates from QGraphicsView
posGraphGraph coordiantes from user
identifierIdentifier for new axis point
ordinalUnique, for curve, ordinal number
isXOnlyTrue if graph coordinates have only x coordinate

Implements CoordSystemInterface.

Definition at line 44 of file CoordSystemContext.cpp.

49{
50 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addPointAxisWithGeneratedIdentifier";
51
52 m_coordSystems [signed (m_coordSystemIndex)]->addPointAxisWithGeneratedIdentifier(posScreen,
53 posGraph,
54 identifier,
55 ordinal,
56 isXOnly);
57}
bool isXOnly(const QString &pointIdentifier) const
True/false if y/x value is empty.

◆ addPointAxisWithSpecifiedIdentifier()

void CoordSystemContext::addPointAxisWithSpecifiedIdentifier ( const QPointF & posScreen,
const QPointF & posGraph,
const QString & identifier,
double ordinal,
bool isXOnly )
virtual

Add a single axis point with the specified point identifier.

Call this after checkAddPointAxis to guarantee success in this call.

Parameters
posScreenScreen coordinates from QGraphicsView
posGraphGraph coordiantes from user
identifierIdentifier for new axis point
ordinalUnique, for curve, ordinal number
isXOnlyTrue if graph coordinates have only x coordinate

Implements CoordSystemInterface.

Definition at line 59 of file CoordSystemContext.cpp.

64{
65 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addPointAxisWithSpecifiedIdentifier";
66
67 m_coordSystems [signed (m_coordSystemIndex)]->addPointAxisWithSpecifiedIdentifier(posScreen,
68 posGraph,
69 identifier,
70 ordinal,
71 isXOnly);
72}

◆ addPointGraphWithGeneratedIdentifier()

void CoordSystemContext::addPointGraphWithGeneratedIdentifier ( const QString & curveName,
const QPointF & posScreen,
QString & generatedIentifier,
double ordinal )
virtual

Add a single graph point with a generated point identifier.

Implements CoordSystemInterface.

Definition at line 74 of file CoordSystemContext.cpp.

78{
79 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addPointGraphWithGeneratedIdentifier";
80
81 m_coordSystems [signed (m_coordSystemIndex)]->addPointGraphWithGeneratedIdentifier(curveName,
82 posScreen,
83 generatedIdentifier,
84 ordinal);
85}

◆ addPointGraphWithSpecifiedIdentifier()

void CoordSystemContext::addPointGraphWithSpecifiedIdentifier ( const QString & curveName,
const QPointF & posScreen,
const QString & identifier,
double ordinal )
virtual

Add a single graph point with the specified point identifier. Note that PointStyle is not applied to the point within the Graph.

Implements CoordSystemInterface.

Definition at line 87 of file CoordSystemContext.cpp.

91{
92 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addPointGraphWithSpecifiedIdentifier";
93
94 m_coordSystems [signed (m_coordSystemIndex)]->addPointGraphWithSpecifiedIdentifier(curveName,
95 posScreen,
96 identifier,
97 ordinal);
98}

◆ addPointsInCurvesGraphs()

void CoordSystemContext::addPointsInCurvesGraphs ( CurvesGraphs & curvesGraphs)
virtual

Add all points identified in the specified CurvesGraphs. See also removePointsInCurvesGraphs.

Implements CoordSystemInterface.

Definition at line 100 of file CoordSystemContext.cpp.

101{
102 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addPointsInCurvesGraphs";
103
104 m_coordSystems [signed (m_coordSystemIndex)]->addPointsInCurvesGraphs(curvesGraphs);
105}
virtual const CurvesGraphs & curvesGraphs() const
Make all Curves available, read only, for CmdAbstract classes only.

◆ checkAddPointAxis()

void CoordSystemContext::checkAddPointAxis ( const QPointF & posScreen,
const QPointF & posGraph,
bool & isError,
QString & errorMessage,
bool isXOnly,
DocumentAxesPointsRequired documentAxesPointsRequired )
virtual

Check before calling addPointAxis. Also returns the next available ordinal number (to prevent clashes)

Implements CoordSystemInterface.

Definition at line 107 of file CoordSystemContext.cpp.

113{
114 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::checkAddPointAxis";
115
116 m_coordSystems [signed (m_coordSystemIndex)]->checkAddPointAxis(posScreen,
117 posGraph,
118 isError,
119 errorMessage,
120 isXOnly,
121 documentAxesPointsRequired);
122}

◆ checkEditPointAxis()

void CoordSystemContext::checkEditPointAxis ( const QString & pointIdentifier,
const QPointF & posScreen,
const QPointF & posGraph,
bool & isError,
QString & errorMessage,
DocumentAxesPointsRequired documentAxesPointsRequired )
virtual

Check before calling editPointAxis.

Implements CoordSystemInterface.

Definition at line 124 of file CoordSystemContext.cpp.

130{
131 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::checkEditPointAxis";
132
133 m_coordSystems [signed (m_coordSystemIndex)]->checkEditPointAxis(pointIdentifier,
134 posScreen,
135 posGraph,
136 isError,
137 errorMessage,
138 documentAxesPointsRequired);
139}

◆ coordSystem()

const CoordSystem & CoordSystemContext::coordSystem ( ) const

Current CoordSystem.

Definition at line 141 of file CoordSystemContext.cpp.

142{
143 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::coordSystem";
144
145 return *(m_coordSystems [signed (m_coordSystemIndex)]);
146}

◆ coordSystemCount()

unsigned int CoordSystemContext::coordSystemCount ( ) const

Number of CoordSystem.

Definition at line 148 of file CoordSystemContext.cpp.

149{
150 return unsigned (m_coordSystems.count());
151}

◆ coordSystemIndex()

CoordSystemIndex CoordSystemContext::coordSystemIndex ( ) const

Index of current CoordSystem.

Definition at line 153 of file CoordSystemContext.cpp.

154{
155 return m_coordSystemIndex;
156}

◆ curveAxes()

const Curve & CoordSystemContext::curveAxes ( ) const
virtual

Get method for axis curve.

Implements CoordSystemInterface.

Definition at line 158 of file CoordSystemContext.cpp.

159{
160 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curveAxes";
161
162 return m_coordSystems [signed (m_coordSystemIndex)]->curveAxes();
163}

◆ curveForCurveName() [1/2]

Curve * CoordSystemContext::curveForCurveName ( const QString & curveName)
virtual

See CurvesGraphs::curveForCurveName, although this also works for AXIS_CURVE_NAME.

Implements CoordSystemInterface.

Definition at line 165 of file CoordSystemContext.cpp.

166{
167 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curveForCurveName";
168
169 return m_coordSystems [signed (m_coordSystemIndex)]->curveForCurveName(curveName);
170}

◆ curveForCurveName() [2/2]

const Curve * CoordSystemContext::curveForCurveName ( const QString & curveName) const
virtual

See CurvesGraphs::curveForCurveNames, although this also works for AXIS_CURVE_NAME.

Implements CoordSystemInterface.

Definition at line 172 of file CoordSystemContext.cpp.

173{
174 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curveForCurveName";
175
176 return m_coordSystems [signed (m_coordSystemIndex)]->curveForCurveName(curveName);
177}

◆ curvesGraphs()

const CurvesGraphs & CoordSystemContext::curvesGraphs ( ) const
virtual

Make all Curves available, read only, for CmdAbstract classes only.

Implements CoordSystemInterface.

Definition at line 179 of file CoordSystemContext.cpp.

180{
181 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curvesGraphs";
182
183 return m_coordSystems [signed (m_coordSystemIndex)]->curvesGraphs();
184}

◆ curvesGraphsNames()

QStringList CoordSystemContext::curvesGraphsNames ( ) const
virtual

See CurvesGraphs::curvesGraphsNames.

Implements CoordSystemInterface.

Definition at line 186 of file CoordSystemContext.cpp.

187{
188 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curvesGraphsNames";
189
190 return m_coordSystems [signed (m_coordSystemIndex)]->curvesGraphsNames();
191}

◆ curvesGraphsNumPoints()

int CoordSystemContext::curvesGraphsNumPoints ( const QString & curveName) const
virtual

See CurvesGraphs::curvesGraphsNumPoints.

Implements CoordSystemInterface.

Definition at line 193 of file CoordSystemContext.cpp.

194{
195 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::curvesGraphsNumPoints";
196
197 return m_coordSystems [signed (m_coordSystemIndex)]->curvesGraphsNumPoints(curveName);
198}

◆ editPointAxis()

void CoordSystemContext::editPointAxis ( const QPointF & posGraph,
const QString & identifier )
virtual

Edit the graph coordinates of a single axis point. Call this after checkAddPointAxis to guarantee success in this call.

Implements CoordSystemInterface.

Definition at line 200 of file CoordSystemContext.cpp.

202{
203 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::editPointAxis";
204
205 m_coordSystems [signed (m_coordSystemIndex)]->editPointAxis(posGraph,
206 identifier);
207}

◆ editPointGraph()

void CoordSystemContext::editPointGraph ( bool isX,
bool isY,
double x,
double y,
const QStringList & identifiers,
const Transformation & transformation )
virtual

Edit the graph coordinates of one or more graph points.

Implements CoordSystemInterface.

Definition at line 209 of file CoordSystemContext.cpp.

215{
216 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::editPointGraph";
217
218 m_coordSystems [signed (m_coordSystemIndex)]->editPointGraph (isX,
219 isY,
220 x,
221 y,
222 identifiers,
223 transformation);
224}

◆ isXOnly()

bool CoordSystemContext::isXOnly ( const QString & pointIdentifier) const

True/false if y/x value is empty.

Definition at line 226 of file CoordSystemContext.cpp.

227{
228 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::isXOnly";
229
230 return m_coordSystems [signed (m_coordSystemIndex)]->isXOnly (pointIdentifier);
231}

◆ iterateThroughCurvePointsAxes() [1/2]

void CoordSystemContext::iterateThroughCurvePointsAxes ( const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > & ftorWithCallback)
virtual

See Curve::iterateThroughCurvePoints, for the axes curve.

Implements CoordSystemInterface.

Definition at line 233 of file CoordSystemContext.cpp.

234{
235 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvePointsAxes";
236
237 m_coordSystems [signed (m_coordSystemIndex)]->iterateThroughCurvePointsAxes(ftorWithCallback);
238}

◆ iterateThroughCurvePointsAxes() [2/2]

void CoordSystemContext::iterateThroughCurvePointsAxes ( const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > & ftorWithCallback) const
virtual

See Curve::iterateThroughCurvePoints, for the axes curve.

Implements CoordSystemInterface.

Definition at line 240 of file CoordSystemContext.cpp.

241{
242 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvePointsAxes";
243
244 m_coordSystems [signed (m_coordSystemIndex)]->iterateThroughCurvePointsAxes(ftorWithCallback);
245}

◆ iterateThroughCurveSegments()

void CoordSystemContext::iterateThroughCurveSegments ( const QString & curveName,
const Functor2wRet< const Point &, const Point &, CallbackSearchReturn > & ftorWithCallback ) const
virtual

See Curve::iterateThroughCurveSegments, for any axes or graph curve.

Implements CoordSystemInterface.

Definition at line 247 of file CoordSystemContext.cpp.

249{
250 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurveSegments";
251
252 m_coordSystems [signed (m_coordSystemIndex)]->iterateThroughCurveSegments(curveName,
253 ftorWithCallback);
254}

◆ iterateThroughCurvesPointsGraphs() [1/2]

void CoordSystemContext::iterateThroughCurvesPointsGraphs ( const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > & ftorWithCallback)
virtual

See Curve::iterateThroughCurvePoints, for all the graphs curves.

Implements CoordSystemInterface.

Definition at line 256 of file CoordSystemContext.cpp.

257{
258 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvesPointsGraphs";
259
260 m_coordSystems [signed (m_coordSystemIndex)]->iterateThroughCurvesPointsGraphs(ftorWithCallback);
261}

◆ iterateThroughCurvesPointsGraphs() [2/2]

void CoordSystemContext::iterateThroughCurvesPointsGraphs ( const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > & ftorWithCallback) const
virtual

See Curve::iterateThroughCurvePoints, for all the graphs curves.

Implements CoordSystemInterface.

Definition at line 263 of file CoordSystemContext.cpp.

264{
265 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::iterateThroughCurvesPointsGraphs";
266
267 m_coordSystems [signed (m_coordSystemIndex)]->iterateThroughCurvesPointsGraphs(ftorWithCallback);
268}

◆ loadCurvesFile()

bool CoordSystemContext::loadCurvesFile ( const QString & curvesFile)
virtual

Load the curve names in the specified Engauge file into the current graph. This is called near the end of the import process only.

Implements CoordSystemInterface.

Definition at line 270 of file CoordSystemContext.cpp.

271{
272 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadCurvesFile";
273
274 return m_coordSystems [signed (m_coordSystemIndex)]->loadCurvesFile (curvesFile);
275}

◆ loadPreVersion6()

void CoordSystemContext::loadPreVersion6 ( QDataStream & str,
double version,
DocumentAxesPointsRequired & documentAxesPointsRequired )

Load from file in pre-version 6 format.

Definition at line 277 of file CoordSystemContext.cpp.

280{
281 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadPreVersion6";
282
283 m_coordSystems [signed (m_coordSystemIndex)]->loadPreVersion6 (str,
284 version,
285 documentAxesPointsRequired);
286}

◆ loadVersion6()

void CoordSystemContext::loadVersion6 ( QXmlStreamReader & reader,
DocumentAxesPointsRequired & documentAxesPointsRequired )

Load from file in version 6 format, into the single CoordSystem.

Definition at line 288 of file CoordSystemContext.cpp.

290{
291 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadVersion6";
292
293 m_coordSystems [signed (m_coordSystemIndex)]->loadVersion6 (reader,
294 documentAxesPointsRequired);
295}

◆ loadVersions7AndUp()

void CoordSystemContext::loadVersions7AndUp ( QXmlStreamReader & reader)

Load one CoordSystem from file in version 7 format or newer, into the most recent CoordSystem which was just created before the call to this method.

Definition at line 297 of file CoordSystemContext.cpp.

298{
299 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::loadVersion7AndUp";
300
301 int indexLast = m_coordSystems.count() - 1;
302 m_coordSystems [indexLast]->loadVersions7AndUp (reader);
303}

◆ modelAxesChecker()

DocumentModelAxesChecker CoordSystemContext::modelAxesChecker ( ) const
virtual

Get method for DocumentModelAxesChecker.

Implements CoordSystemInterface.

Definition at line 305 of file CoordSystemContext.cpp.

306{
307 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelAxesChecker";
308
309 return m_coordSystems [signed (m_coordSystemIndex)]->modelAxesChecker();
310}
#define LOG4CPP_DEBUG_S(logger)
Definition convenience.h:20

◆ modelColorFilter()

DocumentModelColorFilter CoordSystemContext::modelColorFilter ( ) const
virtual

Get method for DocumentModelColorFilter.

Implements CoordSystemInterface.

Definition at line 312 of file CoordSystemContext.cpp.

313{
314 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelColorFilter";
315
316 return m_coordSystems [signed (m_coordSystemIndex)]->modelColorFilter();
317}

◆ modelCoords()

DocumentModelCoords CoordSystemContext::modelCoords ( ) const
virtual

Get method for DocumentModelCoords.

Implements CoordSystemInterface.

Definition at line 319 of file CoordSystemContext.cpp.

320{
321 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelCoords";
322
323 return m_coordSystems [signed (m_coordSystemIndex)]->modelCoords();
324}

◆ modelCurveStyles()

CurveStyles CoordSystemContext::modelCurveStyles ( ) const
virtual

Get method for CurveStyles.

Implements CoordSystemInterface.

Definition at line 326 of file CoordSystemContext.cpp.

327{
328 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelCurveStyles";
329
330 return m_coordSystems [signed (m_coordSystemIndex)]->modelCurveStyles();
331}

◆ modelDigitizeCurve()

DocumentModelDigitizeCurve CoordSystemContext::modelDigitizeCurve ( ) const
virtual

Get method for DocumentModelDigitizeCurve.

Implements CoordSystemInterface.

Definition at line 333 of file CoordSystemContext.cpp.

334{
335 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelDigitizeCurve";
336
337 return m_coordSystems [signed (m_coordSystemIndex)]->modelDigitizeCurve();
338}

◆ modelExport()

DocumentModelExportFormat CoordSystemContext::modelExport ( ) const
virtual

Get method for DocumentModelExportFormat.

Implements CoordSystemInterface.

Definition at line 340 of file CoordSystemContext.cpp.

341{
342 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelExport";
343
344 return m_coordSystems [signed (m_coordSystemIndex)]->modelExport();
345}

◆ modelGeneral()

DocumentModelGeneral CoordSystemContext::modelGeneral ( ) const
virtual

Get method for DocumentModelGeneral.

Implements CoordSystemInterface.

Definition at line 347 of file CoordSystemContext.cpp.

348{
349 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelGeneral";
350
351 return m_coordSystems [signed (m_coordSystemIndex)]->modelGeneral();
352}

◆ modelGridDisplay()

DocumentModelGridDisplay CoordSystemContext::modelGridDisplay ( ) const
virtual

Get method for DocumentModelGridDisplay.

Implements CoordSystemInterface.

Definition at line 354 of file CoordSystemContext.cpp.

355{
356 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelGridDisplay";
357
358 return m_coordSystems [signed (m_coordSystemIndex)]->modelGridDisplay();
359}

◆ modelGridRemoval()

DocumentModelGridRemoval CoordSystemContext::modelGridRemoval ( ) const
virtual

Get method for DocumentModelGridRemoval.

Implements CoordSystemInterface.

Definition at line 361 of file CoordSystemContext.cpp.

362{
363 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelGridRemoval";
364
365 return m_coordSystems [signed (m_coordSystemIndex)]->modelGridRemoval();
366}

◆ modelGuideline()

DocumentModelGuideline CoordSystemContext::modelGuideline ( ) const
virtual

Get method for DocumentModelGuideline.

Implements CoordSystemInterface.

Definition at line 368 of file CoordSystemContext.cpp.

369{
370 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelGuideline";
371
372 return m_coordSystems [signed (m_coordSystemIndex)]->modelGuideline();
373}

◆ modelPointMatch()

DocumentModelPointMatch CoordSystemContext::modelPointMatch ( ) const
virtual

Get method for DocumentModelPointMatch.

Implements CoordSystemInterface.

Definition at line 375 of file CoordSystemContext.cpp.

376{
377 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelPointMatch";
378
379 return m_coordSystems [signed (m_coordSystemIndex)]->modelPointMatch();
380}

◆ modelSegments()

DocumentModelSegments CoordSystemContext::modelSegments ( ) const
virtual

Get method for DocumentModelSegments.

Implements CoordSystemInterface.

Definition at line 382 of file CoordSystemContext.cpp.

383{
384 LOG4CPP_DEBUG_S ((*mainCat)) << "CoordSystemContext::modelSegments";
385
386 return m_coordSystems [signed (m_coordSystemIndex)]->modelSegments();
387}

◆ movePoint()

void CoordSystemContext::movePoint ( const QString & pointIdentifier,
const QPointF & deltaScreen )
virtual

See Curve::movePoint.

Implements CoordSystemInterface.

Definition at line 389 of file CoordSystemContext.cpp.

391{
392 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::movePoint";
393
394 return m_coordSystems [signed (m_coordSystemIndex)]->movePoint(pointIdentifier,
395 deltaScreen);
396}

◆ nextOrdinalForCurve()

int CoordSystemContext::nextOrdinalForCurve ( const QString & curveName) const
virtual

Default next ordinal value for specified curve.

Implements CoordSystemInterface.

Definition at line 398 of file CoordSystemContext.cpp.

399{
400 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::nextOrdinalForCurve";
401
402 return m_coordSystems [signed (m_coordSystemIndex)]->nextOrdinalForCurve(curveName);
403}

◆ positionGraph()

QPointF CoordSystemContext::positionGraph ( const QString & pointIdentifier) const
virtual

See Curve::positionGraph.

Implements CoordSystemInterface.

Definition at line 405 of file CoordSystemContext.cpp.

406{
407 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::positionGraph";
408
409 return m_coordSystems [signed (m_coordSystemIndex)]->positionGraph(pointIdentifier);
410}

◆ positionScreen()

QPointF CoordSystemContext::positionScreen ( const QString & pointIdentifier) const
virtual

See Curve::positionScreen.

Implements CoordSystemInterface.

Definition at line 412 of file CoordSystemContext.cpp.

413{
414 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::addGraphCurveAtEnd";
415
416 return m_coordSystems [signed (m_coordSystemIndex)]->positionScreen(pointIdentifier);
417}

◆ print()

void CoordSystemContext::print ( ) const
virtual

Debugging method for printing directly from symbolic debugger.

Implements CoordSystemInterface.

Definition at line 419 of file CoordSystemContext.cpp.

420{
421 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::print";
422
423 return m_coordSystems [signed (m_coordSystemIndex)]->print();
424}

◆ printStream()

void CoordSystemContext::printStream ( QString indentation,
QTextStream & str ) const
virtual

Debugging method that supports print method of this class and printStream method of some other class(es)

Implements CoordSystemInterface.

Definition at line 426 of file CoordSystemContext.cpp.

428{
429 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::printStream";
430
431 m_coordSystems [signed (m_coordSystemIndex)]->printStream(indentation,
432 str);
433}

◆ reasonForUnsuccessfulRead()

QString CoordSystemContext::reasonForUnsuccessfulRead ( ) const
virtual

Return an informative text message explaining why startup loading failed. Applies if successfulRead returns false.

Implements CoordSystemInterface.

Definition at line 435 of file CoordSystemContext.cpp.

436{
437 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::reasonForUnsuccessfulRead";
438
439 return m_coordSystems [signed (m_coordSystemIndex)]->reasonForUnsuccessfulRead();
440}

◆ removePointAxis()

void CoordSystemContext::removePointAxis ( const QString & identifier)
virtual

Perform the opposite of addPointAxis.

Implements CoordSystemInterface.

Definition at line 442 of file CoordSystemContext.cpp.

443{
444 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::removePointAxis";
445
446 m_coordSystems [signed (m_coordSystemIndex)]->removePointAxis(identifier);
447}

◆ removePointGraph()

void CoordSystemContext::removePointGraph ( const QString & identifier)
virtual

Perform the opposite of addPointGraph.

Implements CoordSystemInterface.

Definition at line 449 of file CoordSystemContext.cpp.

450{
451 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::removePointGraph";
452
453 m_coordSystems [signed (m_coordSystemIndex)]->removePointGraph(identifier);
454}

◆ removePointsInCurvesGraphs()

void CoordSystemContext::removePointsInCurvesGraphs ( CurvesGraphs & curvesGraphs)
virtual

Remove all points identified in the specified CurvesGraphs. See also addPointsInCurvesGraphs.

Implements CoordSystemInterface.

Definition at line 456 of file CoordSystemContext.cpp.

457{
458 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::removePointsInCurvesGraphs";
459
460 m_coordSystems [signed (m_coordSystemIndex)]->removePointsInCurvesGraphs(curvesGraphs);
461}

◆ saveXml()

void CoordSystemContext::saveXml ( QXmlStreamWriter & writer) const
virtual

Save graph to xml.

Implements CoordSystemInterface.

Definition at line 463 of file CoordSystemContext.cpp.

464{
465 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::saveXml";
466
467 for (int index = 0; index < m_coordSystems.count(); index++) {
468 m_coordSystems [index]->saveXml (writer);
469 }
470}

◆ selectedCurveName()

QString CoordSystemContext::selectedCurveName ( ) const
virtual

Currently selected curve name. This is used to set the selected curve combobox in MainWindow.

Implements CoordSystemInterface.

Definition at line 472 of file CoordSystemContext.cpp.

473{
474 return m_coordSystems [signed (m_coordSystemIndex)]->selectedCurveName();
475}

◆ setCoordSystemIndex()

void CoordSystemContext::setCoordSystemIndex ( CoordSystemIndex coordSystemIndex)

Index of current CoordSystem.

Definition at line 477 of file CoordSystemContext.cpp.

478{
479 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setCoordSystemIndex"
480 << " index=" << coordSystemIndex;
481
482 ENGAUGE_ASSERT(coordSystemIndex < unsigned (m_coordSystems.count()));
483
484 m_coordSystemIndex = coordSystemIndex;
485}
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT.
CoordSystemIndex coordSystemIndex() const
Index of current CoordSystem.

◆ setCurveAxes()

void CoordSystemContext::setCurveAxes ( const Curve & curveAxes)
virtual

Let CmdAbstract classes overwrite axes Curve. Applies to current coordinate system.

Implements CoordSystemInterface.

Definition at line 487 of file CoordSystemContext.cpp.

488{
489 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setCurveAxes";
490
491 m_coordSystems [signed (m_coordSystemIndex)]->setCurveAxes(curveAxes);
492}
virtual const Curve & curveAxes() const
Get method for axis curve.

◆ setCurvesGraphs()

void CoordSystemContext::setCurvesGraphs ( const CurvesGraphs & curvesGraphs)
virtual

Let CmdAbstract classes overwrite CurvesGraphs. Applies to current coordinate system.

Implements CoordSystemInterface.

Definition at line 494 of file CoordSystemContext.cpp.

495{
496 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setCurvesGraphs";
497
498 m_coordSystems [signed (m_coordSystemIndex)]->setCurvesGraphs(curvesGraphs);
499}

◆ setModelAxesChecker()

void CoordSystemContext::setModelAxesChecker ( const DocumentModelAxesChecker & modelAxesChecker)
virtual

Set method for DocumentModelAxesChecker.

Implements CoordSystemInterface.

Definition at line 501 of file CoordSystemContext.cpp.

502{
503 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelAxesChecker";
504
505 m_coordSystems [signed (m_coordSystemIndex)]->setModelAxesChecker(modelAxesChecker);
506}
virtual DocumentModelAxesChecker modelAxesChecker() const
Get method for DocumentModelAxesChecker.

◆ setModelColorFilter()

void CoordSystemContext::setModelColorFilter ( const DocumentModelColorFilter & modelColorFilter)
virtual

Set method for DocumentModelColorFilter.

Implements CoordSystemInterface.

Definition at line 508 of file CoordSystemContext.cpp.

509{
510 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelColorFilter";
511
512 m_coordSystems [signed (m_coordSystemIndex)]->setModelColorFilter(modelColorFilter);
513}
virtual DocumentModelColorFilter modelColorFilter() const
Get method for DocumentModelColorFilter.

◆ setModelCoords()

void CoordSystemContext::setModelCoords ( const DocumentModelCoords & modelCoords)
virtual

Set method for DocumentModelCoords.

Implements CoordSystemInterface.

Definition at line 515 of file CoordSystemContext.cpp.

516{
517 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelCoords";
518
519 m_coordSystems [signed (m_coordSystemIndex)]->setModelCoords(modelCoords);
520}
virtual DocumentModelCoords modelCoords() const
Get method for DocumentModelCoords.

◆ setModelCurveStyles()

void CoordSystemContext::setModelCurveStyles ( const CurveStyles & modelCurveStyles)
virtual

Set method for CurveStyles.

Implements CoordSystemInterface.

Definition at line 522 of file CoordSystemContext.cpp.

523{
524 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelCurveStyles";
525
526 m_coordSystems [signed (m_coordSystemIndex)]->setModelCurveStyles(modelCurveStyles);
527}
virtual CurveStyles modelCurveStyles() const
Get method for CurveStyles.

◆ setModelDigitizeCurve()

void CoordSystemContext::setModelDigitizeCurve ( const DocumentModelDigitizeCurve & modelDigitizeCurve)
virtual

Set method for DocumentModelDigitizeCurve.

Implements CoordSystemInterface.

Definition at line 529 of file CoordSystemContext.cpp.

530{
531 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelDigitizeCurve";
532
533 m_coordSystems [signed (m_coordSystemIndex)]->setModelDigitizeCurve(modelDigitizeCurve);
534}
virtual DocumentModelDigitizeCurve modelDigitizeCurve() const
Get method for DocumentModelDigitizeCurve.

◆ setModelExport()

void CoordSystemContext::setModelExport ( const DocumentModelExportFormat & modelExport)
virtual

Set method for DocumentModelExportFormat.

Implements CoordSystemInterface.

Definition at line 536 of file CoordSystemContext.cpp.

537{
538 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelExport";
539
540 m_coordSystems [signed (m_coordSystemIndex)]->setModelExport (modelExport);
541}
virtual DocumentModelExportFormat modelExport() const
Get method for DocumentModelExportFormat.

◆ setModelGeneral()

void CoordSystemContext::setModelGeneral ( const DocumentModelGeneral & modelGeneral)
virtual

Set method for DocumentModelGeneral.

Implements CoordSystemInterface.

Definition at line 543 of file CoordSystemContext.cpp.

544{
545 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelGeneral";
546
547 m_coordSystems [signed (m_coordSystemIndex)]->setModelGeneral(modelGeneral);
548}
virtual DocumentModelGeneral modelGeneral() const
Get method for DocumentModelGeneral.

◆ setModelGridDisplay()

void CoordSystemContext::setModelGridDisplay ( const DocumentModelGridDisplay & modelGridDisplay)
virtual

Set method for DocumentModelGridDisplay.

Implements CoordSystemInterface.

Definition at line 550 of file CoordSystemContext.cpp.

551{
552 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelGridDisplay";
553
554 m_coordSystems [signed (m_coordSystemIndex)]->setModelGridDisplay(modelGridDisplay);
555}
virtual DocumentModelGridDisplay modelGridDisplay() const
Get method for DocumentModelGridDisplay.

◆ setModelGridRemoval()

void CoordSystemContext::setModelGridRemoval ( const DocumentModelGridRemoval & modelGridRemoval)
virtual

Set method for DocumentModelGridRemoval.

Implements CoordSystemInterface.

Definition at line 557 of file CoordSystemContext.cpp.

558{
559 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelGridRemoval";
560
561 m_coordSystems [signed (m_coordSystemIndex)]->setModelGridRemoval(modelGridRemoval);
562}
virtual DocumentModelGridRemoval modelGridRemoval() const
Get method for DocumentModelGridRemoval.

◆ setModelGuideline()

void CoordSystemContext::setModelGuideline ( const DocumentModelGuideline & modelGuideline)
virtual

Set method for DocumentModelGuideline.

Implements CoordSystemInterface.

Definition at line 564 of file CoordSystemContext.cpp.

565{
566 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelGuideline";
567
568 m_coordSystems [signed (m_coordSystemIndex)]->setModelGuideline(modelGuideline);
569}
virtual DocumentModelGuideline modelGuideline() const
Get method for DocumentModelGuideline.

◆ setModelPointMatch()

void CoordSystemContext::setModelPointMatch ( const DocumentModelPointMatch & modelPointMatch)
virtual

Set method for DocumentModelPointMatch.

Implements CoordSystemInterface.

Definition at line 571 of file CoordSystemContext.cpp.

572{
573 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelPointMatch";
574
575 m_coordSystems [signed (m_coordSystemIndex)]->setModelPointMatch(modelPointMatch);
576}
virtual DocumentModelPointMatch modelPointMatch() const
Get method for DocumentModelPointMatch.

◆ setModelSegments()

void CoordSystemContext::setModelSegments ( const DocumentModelSegments & modelSegments)
virtual

Set method for DocumentModelSegments.

Implements CoordSystemInterface.

Definition at line 578 of file CoordSystemContext.cpp.

579{
580 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::setModelSegments";
581
582 m_coordSystems [signed (m_coordSystemIndex)]->setModelSegments(modelSegments);
583}
virtual DocumentModelSegments modelSegments() const
Get method for DocumentModelSegments.

◆ setSelectedCurveName()

void CoordSystemContext::setSelectedCurveName ( const QString & selectedCurveName)
virtual

Save curve name that is selected for the current coordinate system, for the next time the coordinate system reappears.

Implements CoordSystemInterface.

Definition at line 585 of file CoordSystemContext.cpp.

586{
587 m_coordSystems [signed (m_coordSystemIndex)]->setSelectedCurveName(selectedCurveName);
588}
virtual QString selectedCurveName() const
Currently selected curve name. This is used to set the selected curve combobox in MainWindow.

◆ successfulRead()

bool CoordSystemContext::successfulRead ( ) const
virtual

Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will explain why.

Implements CoordSystemInterface.

Definition at line 590 of file CoordSystemContext.cpp.

591{
592 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::successfulRead";
593
594 return m_coordSystems [signed (m_coordSystemIndex)]->successfulRead();
595}

◆ updatePointOrdinals()

void CoordSystemContext::updatePointOrdinals ( const Transformation & transformation)
virtual

Update point ordinals after point addition/removal or dragging.

See GraphicsScene::updatePointOrdinalsAfterDrag. Graph coordinates of point must be up to date

Implements CoordSystemInterface.

Definition at line 597 of file CoordSystemContext.cpp.

598{
599 LOG4CPP_INFO_S ((*mainCat)) << "CoordSystemContext::updatePointOrdinals";
600
601 m_coordSystems [signed (m_coordSystemIndex)]->updatePointOrdinals(transformation);
602}

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