7 #include "CoordSystemContext.h" 8 #include "EngaugeAssert.h" 11 const CoordSystemIndex DEFAULT_COORD_SYSTEM_INDEX = 0;
14 m_coordSystemIndex (DEFAULT_COORD_SYSTEM_INDEX)
16 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::CoordSystemContext";
19 CoordSystemContext::~CoordSystemContext()
21 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::~CoordSystemContext";
23 for (
int i = 0; i < m_coordSystems.count(); i++) {
28 m_coordSystems.clear ();
29 m_coordSystemIndex = 0;
34 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::addCoordSystems" 35 <<
" numberToAdd=" << numberCoordSystemToAdd;
38 for (
unsigned int i = 0; i < numberCoordSystemToAdd; i++) {
45 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::addGraphCurveAtEnd";
47 m_coordSystems [m_coordSystemIndex]->addGraphCurveAtEnd(curveName);
51 const QPointF &posGraph,
56 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::addPointAxisWithGeneratedIdentifier";
58 m_coordSystems [m_coordSystemIndex]->addPointAxisWithGeneratedIdentifier(posScreen,
66 const QPointF &posGraph,
67 const QString &identifier,
71 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::addPointAxisWithSpecifiedIdentifier";
73 m_coordSystems [m_coordSystemIndex]->addPointAxisWithSpecifiedIdentifier(posScreen,
81 const QPointF &posScreen,
82 QString &generatedIdentifier,
85 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::addPointGraphWithGeneratedIdentifier";
87 m_coordSystems [m_coordSystemIndex]->addPointGraphWithGeneratedIdentifier(curveName,
94 const QPointF &posScreen,
95 const QString &identifier,
98 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::addPointGraphWithSpecifiedIdentifier";
100 m_coordSystems [m_coordSystemIndex]->addPointGraphWithSpecifiedIdentifier(curveName,
108 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::addPointsInCurvesGraphs";
110 m_coordSystems [m_coordSystemIndex]->addPointsInCurvesGraphs(curvesGraphs);
114 const QPointF &posGraph,
116 QString &errorMessage,
118 DocumentAxesPointsRequired documentAxesPointsRequired)
120 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::checkAddPointAxis";
122 m_coordSystems [m_coordSystemIndex]->checkAddPointAxis(posScreen,
127 documentAxesPointsRequired);
131 const QPointF &posScreen,
132 const QPointF &posGraph,
134 QString &errorMessage,
135 DocumentAxesPointsRequired documentAxesPointsRequired)
137 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::checkEditPointAxis";
139 m_coordSystems [m_coordSystemIndex]->checkEditPointAxis(pointIdentifier,
144 documentAxesPointsRequired);
149 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::coordSystem";
151 return *(m_coordSystems [m_coordSystemIndex]);
156 return m_coordSystems.count();
161 return m_coordSystemIndex;
166 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::curveAxes";
168 return m_coordSystems [m_coordSystemIndex]->curveAxes();
173 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::curveForCurveName";
175 return m_coordSystems [m_coordSystemIndex]->curveForCurveName(curveName);
180 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::curveForCurveName";
182 return m_coordSystems [m_coordSystemIndex]->curveForCurveName(curveName);
187 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::curvesGraphs";
189 return m_coordSystems [m_coordSystemIndex]->curvesGraphs();
194 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::curvesGraphsNames";
196 return m_coordSystems [m_coordSystemIndex]->curvesGraphsNames();
201 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::curvesGraphsNumPoints";
203 return m_coordSystems [m_coordSystemIndex]->curvesGraphsNumPoints(curveName);
207 const QString &identifier)
209 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::editPointAxis";
211 m_coordSystems [m_coordSystemIndex]->editPointAxis(posGraph,
219 const QStringList &identifiers,
222 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::editPointGraph";
224 m_coordSystems [m_coordSystemIndex]->editPointGraph (isX,
234 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::isXOnly";
236 return m_coordSystems [m_coordSystemIndex]->isXOnly (pointIdentifier);
241 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::iterateThroughCurvePointsAxes";
243 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvePointsAxes(ftorWithCallback);
248 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::iterateThroughCurvePointsAxes";
250 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvePointsAxes(ftorWithCallback);
254 const Functor2wRet<const Point &, const Point &, CallbackSearchReturn> &ftorWithCallback)
const 256 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::iterateThroughCurveSegments";
258 m_coordSystems [m_coordSystemIndex]->iterateThroughCurveSegments(curveName,
264 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::iterateThroughCurvesPointsGraphs";
266 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvesPointsGraphs(ftorWithCallback);
271 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::iterateThroughCurvesPointsGraphs";
273 m_coordSystems [m_coordSystemIndex]->iterateThroughCurvesPointsGraphs(ftorWithCallback);
278 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::loadCurvesFile";
280 return m_coordSystems [m_coordSystemIndex]->loadCurvesFile (curvesFile);
285 DocumentAxesPointsRequired &documentAxesPointsRequired)
287 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::loadPreVersion6";
289 m_coordSystems [m_coordSystemIndex]->loadPreVersion6 (str,
291 documentAxesPointsRequired);
295 DocumentAxesPointsRequired &documentAxesPointsRequired)
297 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::loadVersion6";
299 m_coordSystems [m_coordSystemIndex]->loadVersion6 (reader,
300 documentAxesPointsRequired);
305 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::loadVersion7AndUp";
307 int indexLast = m_coordSystems.count() - 1;
308 m_coordSystems [indexLast]->loadVersions7AndUp (reader);
313 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelAxesChecker";
315 return m_coordSystems [m_coordSystemIndex]->modelAxesChecker();
320 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelColorFilter";
322 return m_coordSystems [m_coordSystemIndex]->modelColorFilter();
327 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelCoords";
329 return m_coordSystems [m_coordSystemIndex]->modelCoords();
334 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelCurveStyles";
336 return m_coordSystems [m_coordSystemIndex]->modelCurveStyles();
341 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelDigitizeCurve";
343 return m_coordSystems [m_coordSystemIndex]->modelDigitizeCurve();
348 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelExport";
350 return m_coordSystems [m_coordSystemIndex]->modelExport();
355 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelGeneral";
357 return m_coordSystems [m_coordSystemIndex]->modelGeneral();
362 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelGridDisplay";
364 return m_coordSystems [m_coordSystemIndex]->modelGridDisplay();
369 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelGridRemoval";
371 return m_coordSystems [m_coordSystemIndex]->modelGridRemoval();
376 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelPointMatch";
378 return m_coordSystems [m_coordSystemIndex]->modelPointMatch();
383 LOG4CPP_DEBUG_S ((*mainCat)) <<
"CoordSystemContext::modelSegments";
385 return m_coordSystems [m_coordSystemIndex]->modelSegments();
389 const QPointF &deltaScreen)
391 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::movePoint";
393 return m_coordSystems [m_coordSystemIndex]->movePoint(pointIdentifier,
399 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::nextOrdinalForCurve";
401 return m_coordSystems [m_coordSystemIndex]->nextOrdinalForCurve(curveName);
406 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::positionGraph";
408 return m_coordSystems [m_coordSystemIndex]->positionGraph(pointIdentifier);
413 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::addGraphCurveAtEnd";
415 return m_coordSystems [m_coordSystemIndex]->positionScreen(pointIdentifier);
420 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::print";
422 return m_coordSystems [m_coordSystemIndex]->print();
426 QTextStream &str)
const 428 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::printStream";
430 m_coordSystems [m_coordSystemIndex]->printStream(indentation,
436 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::reasonForUnsuccessfulRead";
438 return m_coordSystems [m_coordSystemIndex]->reasonForUnsuccessfulRead();
443 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::removePointAxis";
445 m_coordSystems [m_coordSystemIndex]->removePointAxis(identifier);
450 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::removePointGraph";
452 m_coordSystems [m_coordSystemIndex]->removePointGraph(identifier);
457 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::removePointsInCurvesGraphs";
459 m_coordSystems [m_coordSystemIndex]->removePointsInCurvesGraphs(curvesGraphs);
464 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::saveXml";
466 for (
int index = 0; index < m_coordSystems.count(); index++) {
467 m_coordSystems [index]->saveXml (writer);
473 return m_coordSystems [m_coordSystemIndex]->selectedCurveName();
478 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setCoordSystemIndex" 481 ENGAUGE_ASSERT(coordSystemIndex < (
unsigned int) m_coordSystems.count());
488 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setCurveAxes";
490 m_coordSystems [m_coordSystemIndex]->setCurveAxes(curveAxes);
495 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setCurvesGraphs";
497 m_coordSystems [m_coordSystemIndex]->setCurvesGraphs(curvesGraphs);
502 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelAxesChecker";
504 m_coordSystems [m_coordSystemIndex]->setModelAxesChecker(modelAxesChecker);
509 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelColorFilter";
511 m_coordSystems [m_coordSystemIndex]->setModelColorFilter(modelColorFilter);
516 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelCoords";
518 m_coordSystems [m_coordSystemIndex]->setModelCoords(modelCoords);
523 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelCurveStyles";
525 m_coordSystems [m_coordSystemIndex]->setModelCurveStyles(modelCurveStyles);
530 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelDigitizeCurve";
532 m_coordSystems [m_coordSystemIndex]->setModelDigitizeCurve(modelDigitizeCurve);
537 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelExport";
539 m_coordSystems [m_coordSystemIndex]->setModelExport (modelExport);
544 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelGeneral";
546 m_coordSystems [m_coordSystemIndex]->setModelGeneral(modelGeneral);
551 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelGridDisplay";
553 m_coordSystems [m_coordSystemIndex]->setModelGridDisplay(modelGridDisplay);
558 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelGridRemoval";
560 m_coordSystems [m_coordSystemIndex]->setModelGridRemoval(modelGridRemoval);
565 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelPointMatch";
567 m_coordSystems [m_coordSystemIndex]->setModelPointMatch(modelPointMatch);
572 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::setModelSegments";
574 m_coordSystems [m_coordSystemIndex]->setModelSegments(modelSegments);
579 m_coordSystems [m_coordSystemIndex]->setSelectedCurveName(selectedCurveName);
584 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::successfulRead";
586 return m_coordSystems [m_coordSystemIndex]->successfulRead();
591 LOG4CPP_INFO_S ((*mainCat)) <<
"CoordSystemContext::updatePointOrdinals";
593 m_coordSystems [m_coordSystemIndex]->updatePointOrdinals(transformation);
Model for DlgSettingsGeneral and CmdSettingsGeneral.
void addCoordSystems(unsigned int numberCoordSystemToAdd)
Add specified number of coordinate systems to the original one created by the constructor.
virtual int curvesGraphsNumPoints(const QString &curveName) const
See CurvesGraphs::curvesGraphsNumPoints.
Model for DlgSettingsPointMatch and CmdSettingsPointMatch.
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
virtual void addPointGraphWithGeneratedIdentifier(const QString &curveName, const QPointF &posScreen, QString &generatedIentifier, double ordinal)
Add a single graph point with a generated point identifier.
virtual DocumentModelDigitizeCurve modelDigitizeCurve() const
Get method for DocumentModelDigitizeCurve.
virtual DocumentModelGridDisplay modelGridDisplay() const
Get method for DocumentModelGridDisplay.
Model for DlgSettingsCurveProperties and CmdSettingsCurveProperties.
virtual void editPointAxis(const QPointF &posGraph, const QString &identifier)
Edit the graph coordinates of a single axis point. Call this after checkAddPointAxis to guarantee suc...
virtual void saveXml(QXmlStreamWriter &writer) const
Save graph to xml.
virtual DocumentModelGeneral modelGeneral() const
Get method for DocumentModelGeneral.
virtual void addPointGraphWithSpecifiedIdentifier(const QString &curveName, const QPointF &posScreen, const QString &identifier, double ordinal)
Add a single graph point with the specified point identifer. Note that PointStyle is not applied to t...
virtual DocumentModelColorFilter modelColorFilter() const
Get method for DocumentModelColorFilter.
Storage of data belonging to one coordinate system.
virtual DocumentModelPointMatch modelPointMatch() const
Get method for DocumentModelPointMatch.
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 bool successfulRead() const
Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will ex...
virtual Curve * curveForCurveName(const QString &curveName)
See CurvesGraphs::curveForCurveName, although this also works for AXIS_CURVE_NAME.
virtual DocumentModelAxesChecker modelAxesChecker() const
Get method for DocumentModelAxesChecker.
unsigned int coordSystemCount() const
Number of CoordSystem.
virtual void removePointsInCurvesGraphs(CurvesGraphs &curvesGraphs)
Remove all points identified in the specified CurvesGraphs. See also addPointsInCurvesGraphs.
void loadVersions7AndUp(QXmlStreamReader &reader)
Load one CoordSystem from file in version 7 format or newer, into the most recent CoordSystem which w...
virtual void setModelCoords(const DocumentModelCoords &modelCoords)
Set method for DocumentModelCoords.
CoordSystemIndex coordSystemIndex() const
Index of current CoordSystem.
virtual CurveStyles modelCurveStyles() const
Get method for CurveStyles.
virtual void setModelColorFilter(const DocumentModelColorFilter &modelColorFilter)
Set method for DocumentModelColorFilter.
virtual void setSelectedCurveName(const QString &selectedCurveName)
Save curve name that is selected for the current coordinate system, for the next time the coordinate ...
virtual void setModelGridDisplay(const DocumentModelGridDisplay &modelGridDisplay)
Set method for DocumentModelGridDisplay.
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 int nextOrdinalForCurve(const QString &curveName) const
Default next ordinal value for specified curve.
virtual void setCurvesGraphs(const CurvesGraphs &curvesGraphs)
Let CmdAbstract classes overwrite CurvesGraphs. Applies to current coordinate system.
virtual void setModelCurveStyles(const CurveStyles &modelCurveStyles)
Set method for CurveStyles.
virtual void setCurveAxes(const Curve &curveAxes)
Let CmdAbstract classes overwrite axes Curve. Applies to current coordinate system.
virtual void setModelGridRemoval(const DocumentModelGridRemoval &modelGridRemoval)
Set method for DocumentModelGridRemoval.
Model for DlgSettingsDigitizeCurve and CmdSettingsDigitizeCurve.
bool isXOnly(const QString &pointIdentifier) const
True/false if y/x value is empty.
virtual void setModelAxesChecker(const DocumentModelAxesChecker &modelAxesChecker)
Set method for DocumentModelAxesChecker.
Container for all graph curves. The axes point curve is external to this class.
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
virtual void checkEditPointAxis(const QString &pointIdentifier, const QPointF &posScreen, const QPointF &posGraph, bool &isError, QString &errorMessage, DocumentAxesPointsRequired documentAxesPointsRequired)
Check before calling editPointAxis.
virtual void setModelExport(const DocumentModelExportFormat &modelExport)
Set method for DocumentModelExportFormat.
void setModelPointMatch(const DocumentModelPointMatch &modelPointMatch)
Set method for DocumentModelPointMatch.
virtual void addPointsInCurvesGraphs(CurvesGraphs &curvesGraphs)
Add all points identified in the specified CurvesGraphs. See also removePointsInCurvesGraphs.
virtual void addGraphCurveAtEnd(const QString &curveName)
Add new graph curve to the list of existing graph curves.
virtual void setModelDigitizeCurve(const DocumentModelDigitizeCurve &modelDigitizeCurve)
Set method for DocumentModelDigitizeCurve.
virtual void removePointGraph(const QString &identifier)
Perform the opposite of addPointGraph.
virtual void setModelSegments(const DocumentModelSegments &modelSegments)
Set method for DocumentModelSegments.
virtual DocumentModelSegments modelSegments() const
Get method for DocumentModelSegments.
Model for DlgSettingsCoords and CmdSettingsCoords.
virtual void removePointAxis(const QString &identifier)
Perform the opposite of addPointAxis.
Container for one set of digitized Points.
virtual const Curve & curveAxes() const
Get method for axis curve.
virtual void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
virtual const CurvesGraphs & curvesGraphs() const
Make all Curves available, read only, for CmdAbstract classes only.
virtual void print() const
Debugging method for printing directly from symbolic debugger.
Model for DlgSettingsAxesChecker and CmdSettingsAxesChecker.
virtual void setModelGeneral(const DocumentModelGeneral &modelGeneral)
Set method for DocumentModelGeneral.
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 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.
virtual void iterateThroughCurvePointsAxes(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
See Curve::iterateThroughCurvePoints, for the axes curve.
Model for DlgSettingsSegments and CmdSettingsSegments.
virtual DocumentModelCoords modelCoords() const
Get method for DocumentModelCoords.
virtual QPointF positionGraph(const QString &pointIdentifier) const
See Curve::positionGraph.
virtual DocumentModelGridRemoval modelGridRemoval() const
Get method for DocumentModelGridRemoval.
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 updatePointOrdinals(const Transformation &transformation)
Update point ordinals after point addition/removal or dragging.
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.
CoordSystemContext()
Default constructor for constructing from opened file.
virtual void movePoint(const QString &pointIdentifier, const QPointF &deltaScreen)
See Curve::movePoint.
virtual QString reasonForUnsuccessfulRead() const
Return an informative text message explaining why startup loading failed. Applies if successfulRead r...
const CoordSystem & coordSystem() const
Current CoordSystem.
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...
virtual DocumentModelExportFormat modelExport() const
Get method for DocumentModelExportFormat.
virtual QStringList curvesGraphsNames() const
See CurvesGraphs::curvesGraphsNames.
void setCoordSystemIndex(CoordSystemIndex coordSystemIndex)
Index of current CoordSystem.
virtual bool loadCurvesFile(const QString &curvesFile)
Load the curve names in the specified Engauge file into the current graph. This is called near the en...
virtual void iterateThroughCurvesPointsGraphs(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
See Curve::iterateThroughCurvePoints, for all the graphs curves.
virtual QString selectedCurveName() const
Currently selected curve name. This is used to set the selected curve combobox in MainWindow...
virtual QPointF positionScreen(const QString &pointIdentifier) const
See Curve::positionScreen.