Engauge Digitizer 2
|
Interface common to CoordSystemContext and CoordSystem classes. More...
#include <CoordSystemInterface.h>
Public Member Functions | |
CoordSystemInterface () | |
Single constructor. | |
virtual | ~CoordSystemInterface () |
virtual void | addGraphCurveAtEnd (const QString &curveName)=0 |
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)=0 |
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)=0 |
Add a single axis point with the specified point identifier. | |
virtual void | addPointGraphWithGeneratedIdentifier (const QString &curveName, const QPointF &posScreen, QString &generatedIentifier, double ordinal)=0 |
Add a single graph point with a generated point identifier. | |
virtual void | addPointGraphWithSpecifiedIdentifier (const QString &curveName, const QPointF &posScreen, const QString &identifier, double ordinal)=0 |
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)=0 |
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)=0 |
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)=0 |
Check before calling editPointAxis. | |
virtual const Curve & | curveAxes () const =0 |
Get method for axis curve. | |
virtual Curve * | curveForCurveName (const QString &curveName)=0 |
See CurvesGraphs::curveForCurveName, although this also works for AXIS_CURVE_NAME. | |
virtual const Curve * | curveForCurveName (const QString &curveName) const =0 |
See CurvesGraphs::curveForCurveNames, although this also works for AXIS_CURVE_NAME. | |
virtual const CurvesGraphs & | curvesGraphs () const =0 |
Make all Curves available, read only, for CmdAbstract classes only. | |
virtual QStringList | curvesGraphsNames () const =0 |
See CurvesGraphs::curvesGraphsNames. | |
virtual int | curvesGraphsNumPoints (const QString &curveName) const =0 |
See CurvesGraphs::curvesGraphsNumPoints. | |
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. | |
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. | |
virtual void | iterateThroughCurvePointsAxes (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)=0 |
See Curve::iterateThroughCurvePoints, for the axes curve. | |
virtual void | iterateThroughCurvePointsAxes (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const =0 |
See Curve::iterateThroughCurvePoints, for the axes curve. | |
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. | |
virtual void | iterateThroughCurvesPointsGraphs (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)=0 |
See Curve::iterateThroughCurvePoints, for all the graphs curves. | |
virtual void | iterateThroughCurvesPointsGraphs (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const =0 |
See Curve::iterateThroughCurvePoints, for all the graphs curves. | |
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. | |
virtual DocumentModelAxesChecker | modelAxesChecker () const =0 |
Get method for DocumentModelAxesChecker. | |
virtual DocumentModelColorFilter | modelColorFilter () const =0 |
Get method for DocumentModelColorFilter. | |
virtual DocumentModelCoords | modelCoords () const =0 |
Get method for DocumentModelCoords. | |
virtual CurveStyles | modelCurveStyles () const =0 |
Get method for CurveStyles. | |
virtual DocumentModelDigitizeCurve | modelDigitizeCurve () const =0 |
Get method for DocumentModelDigitizeCurve. | |
virtual DocumentModelExportFormat | modelExport () const =0 |
Get method for DocumentModelExportFormat. | |
virtual DocumentModelGeneral | modelGeneral () const =0 |
Get method for DocumentModelGeneral. | |
virtual DocumentModelGridDisplay | modelGridDisplay () const =0 |
Get method for DocumentModelGridDisplay. | |
virtual DocumentModelGridRemoval | modelGridRemoval () const =0 |
Get method for DocumentModelGridRemoval. | |
virtual DocumentModelGuideline | modelGuideline () const =0 |
Get method for DocumentModelGuideline. | |
virtual DocumentModelPointMatch | modelPointMatch () const =0 |
Get method for DocumentModelPointMatch. | |
virtual DocumentModelSegments | modelSegments () const =0 |
Get method for DocumentModelSegments. | |
virtual void | movePoint (const QString &pointIdentifier, const QPointF &deltaScreen)=0 |
See Curve::movePoint. | |
virtual int | nextOrdinalForCurve (const QString &curveName) const =0 |
Default next ordinal value for specified curve. | |
virtual QPointF | positionGraph (const QString &pointIdentifier) const =0 |
See Curve::positionGraph. | |
virtual QPointF | positionScreen (const QString &pointIdentifier) const =0 |
See Curve::positionScreen. | |
virtual void | print () const =0 |
Debugging method for printing directly from symbolic debugger. | |
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) | |
virtual QString | reasonForUnsuccessfulRead () const =0 |
Return an informative text message explaining why startup loading failed. Applies if successfulRead returns false. | |
virtual void | removePointAxis (const QString &identifier)=0 |
Perform the opposite of addPointAxis. | |
virtual void | removePointGraph (const QString &identifier)=0 |
Perform the opposite of addPointGraph. | |
virtual void | removePointsInCurvesGraphs (CurvesGraphs &curvesGraphs)=0 |
Remove all points identified in the specified CurvesGraphs. See also addPointsInCurvesGraphs. | |
virtual void | saveXml (QXmlStreamWriter &writer) const =0 |
Save graph to xml. | |
virtual QString | selectedCurveName () const =0 |
Currently selected curve name. This is used to set the selected curve combobox in MainWindow. | |
virtual void | setCurveAxes (const Curve &curveAxes)=0 |
Let CmdAbstract classes overwrite axes Curve. Applies to current coordinate system. | |
virtual void | setCurvesGraphs (const CurvesGraphs &curvesGraphs)=0 |
Let CmdAbstract classes overwrite CurvesGraphs. Applies to current coordinate system. | |
virtual void | setModelAxesChecker (const DocumentModelAxesChecker &modelAxesChecker)=0 |
Set method for DocumentModelAxesChecker. | |
virtual void | setModelColorFilter (const DocumentModelColorFilter &modelColorFilter)=0 |
Set method for DocumentModelColorFilter. | |
virtual void | setModelCoords (const DocumentModelCoords &modelCoords)=0 |
Set method for DocumentModelCoords. | |
virtual void | setModelCurveStyles (const CurveStyles &modelCurveStyles)=0 |
Set method for CurveStyles. | |
virtual void | setModelDigitizeCurve (const DocumentModelDigitizeCurve &modelDigitizeCurve)=0 |
Set method for DocumentModelDigitizeCurve. | |
virtual void | setModelExport (const DocumentModelExportFormat &modelExport)=0 |
Set method for DocumentModelExportFormat. | |
virtual void | setModelGeneral (const DocumentModelGeneral &modelGeneral)=0 |
Set method for DocumentModelGeneral. | |
virtual void | setModelGridDisplay (const DocumentModelGridDisplay &modelGridDisplay)=0 |
Set method for DocumentModelGridDisplay. | |
virtual void | setModelGridRemoval (const DocumentModelGridRemoval &modelGridRemoval)=0 |
Set method for DocumentModelGridRemoval. | |
virtual void | setModelGuideline (const DocumentModelGuideline &modelGuideline)=0 |
Set method for DocumentModelGuideline. | |
virtual void | setModelPointMatch (const DocumentModelPointMatch &modelPointMatch)=0 |
Set method for DocumentModelPointMatch. | |
virtual void | setModelSegments (const DocumentModelSegments &modelSegments)=0 |
Set method for DocumentModelSegments. | |
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. | |
virtual bool | successfulRead () const =0 |
Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will explain why. | |
virtual void | updatePointOrdinals (const Transformation &transformation)=0 |
Update point ordinals after point addition/removal or dragging. |
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 identifier. 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::curveForCurveNames, although this also works for AXIS_CURVE_NAME.
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 |
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 DocumentModelGuideline.
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 DocumentModelGuideline.
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.