|
Engauge Digitizer
2
|
Interface common to CoordSystemContext and CoordSystem classes. More...
#include <CoordSystemInterface.h>


Public Member Functions | |
| CoordSystemInterface () | |
| Single constructor. More... | |
| virtual | ~CoordSystemInterface () |
| virtual void | addGraphCurveAtEnd (const QString &curveName)=0 |
| Add new graph curve to the list of existing graph curves. More... | |
| virtual void | addPointAxisWithGeneratedIdentifier (const QPointF &posScreen, const QPointF &posGraph, QString &identifier, double ordinal, bool isXOnly)=0 |
| Add a single axis point with a generated point identifier. More... | |
| virtual void | addPointAxisWithSpecifiedIdentifier (const QPointF &posScreen, const QPointF &posGraph, const QString &identifier, double ordinal, bool isXOnly)=0 |
| Add a single axis point with the specified point identifier. More... | |
| virtual void | addPointGraphWithGeneratedIdentifier (const QString &curveName, const QPointF &posScreen, QString &generatedIentifier, double ordinal)=0 |
| Add a single graph point with a generated point identifier. More... | |
| virtual void | addPointGraphWithSpecifiedIdentifier (const QString &curveName, const QPointF &posScreen, const QString &identifier, double ordinal)=0 |
| Add a single graph point with the specified point identifer. Note that PointStyle is not applied to the point within the Graph. More... | |
| virtual void | addPointsInCurvesGraphs (CurvesGraphs &curvesGraphs)=0 |
| Add all points identified in the specified CurvesGraphs. See also removePointsInCurvesGraphs. More... | |
| virtual void | checkAddPointAxis (const QPointF &posScreen, const QPointF &posGraph, bool &isError, QString &errorMessage, bool isXOnly, DocumentAxesPointsRequired documentAxesPointsRequired)=0 |
| Check before calling addPointAxis. Also returns the next available ordinal number (to prevent clashes) More... | |
| virtual void | checkEditPointAxis (const QString &pointIdentifier, const QPointF &posScreen, const QPointF &posGraph, bool &isError, QString &errorMessage, DocumentAxesPointsRequired documentAxesPointsRequired)=0 |
| Check before calling editPointAxis. More... | |
| virtual const Curve & | curveAxes () const =0 |
| Get method for axis curve. More... | |
| virtual Curve * | curveForCurveName (const QString &curveName)=0 |
| See CurvesGraphs::curveForCurveName, although this also works for AXIS_CURVE_NAME. More... | |
| virtual const Curve * | curveForCurveName (const QString &curveName) const =0 |
| See CurvesGraphs::curveForCurveNames, although this also works for AXIS_CURVE_NAME. More... | |
| virtual const CurvesGraphs & | curvesGraphs () const =0 |
| Make all Curves available, read only, for CmdAbstract classes only. More... | |
| virtual QStringList | curvesGraphsNames () const =0 |
| See CurvesGraphs::curvesGraphsNames. More... | |
| virtual int | curvesGraphsNumPoints (const QString &curveName) const =0 |
| See CurvesGraphs::curvesGraphsNumPoints. More... | |
| virtual void | editPointAxis (const QPointF &posGraph, const QString &identifier)=0 |
| Edit the graph coordinates of a single axis point. Call this after checkAddPointAxis to guarantee success in this call. More... | |
| virtual void | editPointGraph (bool isX, bool isY, double x, double y, const QStringList &identifiers, const Transformation &transformation)=0 |
| Edit the graph coordinates of one or more graph points. More... | |
| virtual void | iterateThroughCurvePointsAxes (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)=0 |
| See Curve::iterateThroughCurvePoints, for the axes curve. More... | |
| virtual void | iterateThroughCurvePointsAxes (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const =0 |
| See Curve::iterateThroughCurvePoints, for the axes curve. More... | |
| virtual void | iterateThroughCurveSegments (const QString &curveName, const Functor2wRet< const Point &, const Point &, CallbackSearchReturn > &ftorWithCallback) const =0 |
| See Curve::iterateThroughCurveSegments, for any axes or graph curve. More... | |
| virtual void | iterateThroughCurvesPointsGraphs (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)=0 |
| See Curve::iterateThroughCurvePoints, for all the graphs curves. More... | |
| virtual void | iterateThroughCurvesPointsGraphs (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const =0 |
| See Curve::iterateThroughCurvePoints, for all the graphs curves. More... | |
| virtual bool | loadCurvesFile (const QString &curvesFile)=0 |
| Load the curve names in the specified Engauge file into the current graph. This is called near the end of the import process only. More... | |
| virtual DocumentModelAxesChecker | modelAxesChecker () const =0 |
| Get method for DocumentModelAxesChecker. More... | |
| virtual DocumentModelColorFilter | modelColorFilter () const =0 |
| Get method for DocumentModelColorFilter. More... | |
| virtual DocumentModelCoords | modelCoords () const =0 |
| Get method for DocumentModelCoords. More... | |
| virtual CurveStyles | modelCurveStyles () const =0 |
| Get method for CurveStyles. More... | |
| virtual DocumentModelDigitizeCurve | modelDigitizeCurve () const =0 |
| Get method for DocumentModelDigitizeCurve. More... | |
| virtual DocumentModelExportFormat | modelExport () const =0 |
| Get method for DocumentModelExportFormat. More... | |
| virtual DocumentModelGeneral | modelGeneral () const =0 |
| Get method for DocumentModelGeneral. More... | |
| virtual DocumentModelGridDisplay | modelGridDisplay () const =0 |
| Get method for DocumentModelGridDisplay. More... | |
| virtual DocumentModelGridRemoval | modelGridRemoval () const =0 |
| Get method for DocumentModelGridRemoval. More... | |
| virtual DocumentModelPointMatch | modelPointMatch () const =0 |
| Get method for DocumentModelPointMatch. More... | |
| virtual DocumentModelSegments | modelSegments () const =0 |
| Get method for DocumentModelSegments. More... | |
| virtual void | movePoint (const QString &pointIdentifier, const QPointF &deltaScreen)=0 |
| See Curve::movePoint. More... | |
| virtual int | nextOrdinalForCurve (const QString &curveName) const =0 |
| Default next ordinal value for specified curve. More... | |
| virtual QPointF | positionGraph (const QString &pointIdentifier) const =0 |
| See Curve::positionGraph. More... | |
| virtual QPointF | positionScreen (const QString &pointIdentifier) const =0 |
| See Curve::positionScreen. More... | |
| virtual void | print () const =0 |
| Debugging method for printing directly from symbolic debugger. More... | |
| virtual void | printStream (QString indentation, QTextStream &str) const =0 |
| Debugging method that supports print method of this class and printStream method of some other class(es) More... | |
| virtual QString | reasonForUnsuccessfulRead () const =0 |
| Return an informative text message explaining why startup loading failed. Applies if successfulRead returns false. More... | |
| virtual void | removePointAxis (const QString &identifier)=0 |
| Perform the opposite of addPointAxis. More... | |
| virtual void | removePointGraph (const QString &identifier)=0 |
| Perform the opposite of addPointGraph. More... | |
| virtual void | removePointsInCurvesGraphs (CurvesGraphs &curvesGraphs)=0 |
| Remove all points identified in the specified CurvesGraphs. See also addPointsInCurvesGraphs. More... | |
| virtual void | saveXml (QXmlStreamWriter &writer) const =0 |
| Save graph to xml. More... | |
| virtual QString | selectedCurveName () const =0 |
| Currently selected curve name. This is used to set the selected curve combobox in MainWindow. More... | |
| virtual void | setCurveAxes (const Curve &curveAxes)=0 |
| Let CmdAbstract classes overwrite axes Curve. Applies to current coordinate system. More... | |
| virtual void | setCurvesGraphs (const CurvesGraphs &curvesGraphs)=0 |
| Let CmdAbstract classes overwrite CurvesGraphs. Applies to current coordinate system. More... | |
| virtual void | setModelAxesChecker (const DocumentModelAxesChecker &modelAxesChecker)=0 |
| Set method for DocumentModelAxesChecker. More... | |
| virtual void | setModelColorFilter (const DocumentModelColorFilter &modelColorFilter)=0 |
| Set method for DocumentModelColorFilter. More... | |
| virtual void | setModelCoords (const DocumentModelCoords &modelCoords)=0 |
| Set method for DocumentModelCoords. More... | |
| virtual void | setModelCurveStyles (const CurveStyles &modelCurveStyles)=0 |
| Set method for CurveStyles. More... | |
| virtual void | setModelDigitizeCurve (const DocumentModelDigitizeCurve &modelDigitizeCurve)=0 |
| Set method for DocumentModelDigitizeCurve. More... | |
| virtual void | setModelExport (const DocumentModelExportFormat &modelExport)=0 |
| Set method for DocumentModelExportFormat. More... | |
| virtual void | setModelGeneral (const DocumentModelGeneral &modelGeneral)=0 |
| Set method for DocumentModelGeneral. More... | |
| virtual void | setModelGridDisplay (const DocumentModelGridDisplay &modelGridDisplay)=0 |
| Set method for DocumentModelGridDisplay. More... | |
| virtual void | setModelGridRemoval (const DocumentModelGridRemoval &modelGridRemoval)=0 |
| Set method for DocumentModelGridRemoval. More... | |
| virtual void | setModelPointMatch (const DocumentModelPointMatch &modelPointMatch)=0 |
| Set method for DocumentModelPointMatch. More... | |
| virtual void | setModelSegments (const DocumentModelSegments &modelSegments)=0 |
| Set method for DocumentModelSegments. More... | |
| virtual void | setSelectedCurveName (const QString &selectedCurveName)=0 |
| Save curve name that is selected for the current coordinate system, for the next time the coordinate system reappears. More... | |
| virtual bool | successfulRead () const =0 |
| Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will explain why. More... | |
| virtual void | updatePointOrdinals (const Transformation &transformation)=0 |
| Update point ordinals after point addition/removal or dragging. More... | |
Interface common to CoordSystemContext and CoordSystem classes.
Definition at line 34 of file CoordSystemInterface.h.
| CoordSystemInterface::CoordSystemInterface | ( | ) |
|
virtual |
Definition at line 13 of file CoordSystemInterface.cpp.
|
pure virtual |
Add new graph curve to the list of existing graph curves.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Add a single axis point with a generated point identifier.
Call this after checkAddPointAxis to guarantee success in this call.
| posScreen | Screen coordinates from QGraphicsView |
| posGraph | Graph coordiantes from user |
| identifier | Identifier for new axis point |
| ordinal | Unique, for curve, ordinal number |
| isXOnly | True if graph coordinates have only x coordinate |
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Add a single axis point with the specified point identifier.
Call this after checkAddPointAxis to guarantee success in this call.
| posScreen | Screen coordinates from QGraphicsView |
| posGraph | Graph coordiantes from user |
| identifier | Identifier for new axis point |
| ordinal | Unique, for curve, ordinal number |
| isXOnly | True if graph coordinates have only x coordinate |
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Add a single graph point with a generated point identifier.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Add a single graph point with the specified point identifer. Note that PointStyle is not applied to the point within the Graph.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Add all points identified in the specified CurvesGraphs. See also removePointsInCurvesGraphs.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Check before calling addPointAxis. Also returns the next available ordinal number (to prevent clashes)
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Check before calling editPointAxis.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for axis curve.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See CurvesGraphs::curveForCurveName, although this also works for AXIS_CURVE_NAME.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See CurvesGraphs::curveForCurveNames, although this also works for AXIS_CURVE_NAME.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Make all Curves available, read only, for CmdAbstract classes only.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See CurvesGraphs::curvesGraphsNames.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See CurvesGraphs::curvesGraphsNumPoints.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Edit the graph coordinates of a single axis point. Call this after checkAddPointAxis to guarantee success in this call.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Edit the graph coordinates of one or more graph points.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See Curve::iterateThroughCurvePoints, for the axes curve.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See Curve::iterateThroughCurvePoints, for the axes curve.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See Curve::iterateThroughCurveSegments, for any axes or graph curve.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See Curve::iterateThroughCurvePoints, for all the graphs curves.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See Curve::iterateThroughCurvePoints, for all the graphs curves.
Implemented in CoordSystem, and CoordSystemContext.
|
pure 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.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for DocumentModelAxesChecker.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for DocumentModelColorFilter.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for DocumentModelCoords.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for CurveStyles.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for DocumentModelDigitizeCurve.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for DocumentModelExportFormat.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for DocumentModelGeneral.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for DocumentModelGridDisplay.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for DocumentModelGridRemoval.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for DocumentModelPointMatch.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Get method for DocumentModelSegments.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See Curve::movePoint.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Default next ordinal value for specified curve.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
See Curve::positionGraph.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Debugging method for printing directly from symbolic debugger.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Debugging method that supports print method of this class and printStream method of some other class(es)
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Return an informative text message explaining why startup loading failed. Applies if successfulRead returns false.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Perform the opposite of addPointAxis.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Perform the opposite of addPointGraph.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Remove all points identified in the specified CurvesGraphs. See also addPointsInCurvesGraphs.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Save graph to xml.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Currently selected curve name. This is used to set the selected curve combobox in MainWindow.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Let CmdAbstract classes overwrite axes Curve. Applies to current coordinate system.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Let CmdAbstract classes overwrite CurvesGraphs. Applies to current coordinate system.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for DocumentModelAxesChecker.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for DocumentModelColorFilter.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for DocumentModelCoords.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for CurveStyles.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for DocumentModelDigitizeCurve.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for DocumentModelExportFormat.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for DocumentModelGeneral.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for DocumentModelGridDisplay.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for DocumentModelGridRemoval.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for DocumentModelPointMatch.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Set method for DocumentModelSegments.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Save curve name that is selected for the current coordinate system, for the next time the coordinate system reappears.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will explain why.
Implemented in CoordSystem, and CoordSystemContext.
|
pure virtual |
Update point ordinals after point addition/removal or dragging.
See GraphicsScene::updatePointOrdinalsAfterDrag. Graph coordinates of point must be up to date
Implemented in CoordSystem, and CoordSystemContext.
1.8.14