Engauge Digitizer 2
|
Storage of data belonging to one coordinate system. More...
#include <CoordSystem.h>
Storage of data belonging to one coordinate system.
There can be one or more coordinate systems per graph, and one or more graphs in the image belonging to a Document
Definition at line 42 of file CoordSystem.h.
CoordSystem::CoordSystem | ( | ) |
Single constructor.
Definition at line 39 of file CoordSystem.cpp.
CoordSystem::~CoordSystem | ( | ) |
Definition at line 63 of file CoordSystem.cpp.
Constructor for opened Graphs, and error report files. The specified file is opened and read.
Add new graph curve to the list of existing graph curves.
Implements CoordSystemInterface.
Definition at line 68 of file CoordSystem.cpp.
|
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 |
Implements CoordSystemInterface.
Definition at line 78 of file CoordSystem.cpp.
|
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 |
Implements CoordSystemInterface.
Definition at line 100 of file CoordSystem.cpp.
|
virtual |
Add a single graph point with a generated point identifier.
Implements CoordSystemInterface.
Definition at line 121 of file CoordSystem.cpp.
|
virtual |
Add a single graph point with the specified point identifer. Note that PointStyle is not applied to the point within the Graph.
Implements CoordSystemInterface.
Definition at line 139 of file CoordSystem.cpp.
|
virtual |
Add all points identified in the specified CurvesGraphs. See also removePointsInCurvesGraphs.
Implements CoordSystemInterface.
Definition at line 156 of file CoordSystem.cpp.
|
virtual |
Check before calling addPointAxis. Also returns the next available ordinal number (to prevent clashes)
Implements CoordSystemInterface.
Definition at line 180 of file CoordSystem.cpp.
|
virtual |
Check before calling editPointAxis.
Implements CoordSystemInterface.
Definition at line 205 of file CoordSystem.cpp.
Get method for axis curve.
Implements CoordSystemInterface.
Definition at line 229 of file CoordSystem.cpp.
See CurvesGraphs::curveForCurveName, although this also works for AXIS_CURVE_NAME.
Implements CoordSystemInterface.
Definition at line 236 of file CoordSystem.cpp.
See CurvesGraphs::curveForCurveNames, although this also works for AXIS_CURVE_NAME.
Implements CoordSystemInterface.
Definition at line 249 of file CoordSystem.cpp.
|
virtual |
Make all Curves available, read only, for CmdAbstract classes only.
Implements CoordSystemInterface.
Definition at line 262 of file CoordSystem.cpp.
|
virtual |
See CurvesGraphs::curvesGraphsNames.
Implements CoordSystemInterface.
Definition at line 267 of file CoordSystem.cpp.
See CurvesGraphs::curvesGraphsNumPoints.
Implements CoordSystemInterface.
Definition at line 272 of file CoordSystem.cpp.
Edit the graph coordinates of a single axis point. Call this after checkAddPointAxis to guarantee success in this call.
Implements CoordSystemInterface.
Definition at line 277 of file CoordSystem.cpp.
|
virtual |
Edit the graph coordinates of one or more graph points.
Implements CoordSystemInterface.
Definition at line 288 of file CoordSystem.cpp.
Return true if y coordinate is undefined, otherwise x coordinae is undefined in DOCUMENT_AXES_POINT_REQUIRE_4 mode.
Applies to axes points only
Definition at line 336 of file CoordSystem.cpp.
|
virtual |
See Curve::iterateThroughCurvePoints, for the axes curve.
Implements CoordSystemInterface.
Definition at line 341 of file CoordSystem.cpp.
|
virtual |
See Curve::iterateThroughCurvePoints, for the axes curve.
Implements CoordSystemInterface.
Definition at line 348 of file CoordSystem.cpp.
|
virtual |
See Curve::iterateThroughCurveSegments, for any axes or graph curve.
Implements CoordSystemInterface.
Definition at line 355 of file CoordSystem.cpp.
|
virtual |
See Curve::iterateThroughCurvePoints, for all the graphs curves.
Implements CoordSystemInterface.
Definition at line 366 of file CoordSystem.cpp.
|
virtual |
See Curve::iterateThroughCurvePoints, for all the graphs curves.
Implements CoordSystemInterface.
Definition at line 373 of file CoordSystem.cpp.
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 380 of file CoordSystem.cpp.
void CoordSystem::loadPreVersion6 | ( | QDataStream & | str, |
double | version, | ||
DocumentAxesPointsRequired & | documentAxesPointsRequired ) |
Load from file in pre-version 6 format. Number of axes points is read in and passed to Document.
Definition at line 387 of file CoordSystem.cpp.
void CoordSystem::loadVersion6 | ( | QXmlStreamReader & | reader, |
DocumentAxesPointsRequired & | documentAxesPointsRequired ) |
Load from file in version 6 format. Number of axes points is read in and passed to Document.
Definition at line 561 of file CoordSystem.cpp.
void CoordSystem::loadVersions7AndUp | ( | QXmlStreamReader & | reader | ) |
Load from file in versions 7 and 8 formats. Number of axes points is already defined at Document level.
Definition at line 622 of file CoordSystem.cpp.
|
virtual |
Get method for DocumentModelAxesChecker.
Implements CoordSystemInterface.
Definition at line 679 of file CoordSystem.cpp.
|
virtual |
Get method for DocumentModelColorFilter.
Implements CoordSystemInterface.
Definition at line 684 of file CoordSystem.cpp.
|
virtual |
Get method for DocumentModelCoords.
Implements CoordSystemInterface.
Definition at line 692 of file CoordSystem.cpp.
|
virtual |
Get method for CurveStyles.
Implements CoordSystemInterface.
Definition at line 697 of file CoordSystem.cpp.
|
virtual |
Get method for DocumentModelDigitizeCurve.
Implements CoordSystemInterface.
Definition at line 705 of file CoordSystem.cpp.
|
virtual |
Get method for DocumentModelExportFormat.
Implements CoordSystemInterface.
Definition at line 710 of file CoordSystem.cpp.
|
virtual |
Get method for DocumentModelGeneral.
Implements CoordSystemInterface.
Definition at line 715 of file CoordSystem.cpp.
|
virtual |
Get method for DocumentModelGridDisplay.
Implements CoordSystemInterface.
Definition at line 720 of file CoordSystem.cpp.
|
virtual |
Get method for DocumentModelGridRemoval.
Implements CoordSystemInterface.
Definition at line 725 of file CoordSystem.cpp.
|
virtual |
Get method for DocumentModelPointMatch.
Implements CoordSystemInterface.
Definition at line 730 of file CoordSystem.cpp.
|
virtual |
Get method for DocumentModelSegments.
Implements CoordSystemInterface.
Definition at line 735 of file CoordSystem.cpp.
|
virtual |
See Curve::movePoint.
Implements CoordSystemInterface.
Definition at line 740 of file CoordSystem.cpp.
Default next ordinal value for specified curve.
Implements CoordSystemInterface.
Definition at line 751 of file CoordSystem.cpp.
See Curve::positionGraph.
Implements CoordSystemInterface.
Definition at line 767 of file CoordSystem.cpp.
|
virtual |
Debugging method for printing directly from symbolic debugger.
Implements CoordSystemInterface.
Definition at line 783 of file CoordSystem.cpp.
|
virtual |
Debugging method that supports print method of this class and printStream method of some other class(es)
Implements CoordSystemInterface.
Definition at line 793 of file CoordSystem.cpp.
|
virtual |
Return an informative text message explaining why startup loading failed. Applies if successfulRead returns false.
Implements CoordSystemInterface.
Definition at line 828 of file CoordSystem.cpp.
Perform the opposite of addPointAxis.
Implements CoordSystemInterface.
Definition at line 835 of file CoordSystem.cpp.
Perform the opposite of addPointGraph.
Implements CoordSystemInterface.
Definition at line 842 of file CoordSystem.cpp.
|
virtual |
Remove all points identified in the specified CurvesGraphs. See also addPointsInCurvesGraphs.
Implements CoordSystemInterface.
Definition at line 849 of file CoordSystem.cpp.
|
virtual |
Save graph to xml.
Implements CoordSystemInterface.
Definition at line 870 of file CoordSystem.cpp.
|
virtual |
Currently selected curve name. This is used to set the selected curve combobox in MainWindow.
Implements CoordSystemInterface.
Definition at line 889 of file CoordSystem.cpp.
Let CmdAbstract classes overwrite axes Curve. Applies to current coordinate system.
Implements CoordSystemInterface.
Definition at line 894 of file CoordSystem.cpp.
|
virtual |
Let CmdAbstract classes overwrite CurvesGraphs. Applies to current coordinate system.
Implements CoordSystemInterface.
Definition at line 903 of file CoordSystem.cpp.
|
virtual |
Set method for DocumentModelAxesChecker.
Implements CoordSystemInterface.
Definition at line 912 of file CoordSystem.cpp.
|
virtual |
Set method for DocumentModelColorFilter.
Implements CoordSystemInterface.
Definition at line 917 of file CoordSystem.cpp.
|
virtual |
Set method for DocumentModelCoords.
Implements CoordSystemInterface.
Definition at line 933 of file CoordSystem.cpp.
|
virtual |
Set method for CurveStyles.
Implements CoordSystemInterface.
Definition at line 938 of file CoordSystem.cpp.
|
virtual |
Set method for DocumentModelDigitizeCurve.
Implements CoordSystemInterface.
Definition at line 953 of file CoordSystem.cpp.
|
virtual |
Set method for DocumentModelExportFormat.
Implements CoordSystemInterface.
Definition at line 958 of file CoordSystem.cpp.
|
virtual |
Set method for DocumentModelGeneral.
Implements CoordSystemInterface.
Definition at line 963 of file CoordSystem.cpp.
|
virtual |
Set method for DocumentModelGridDisplay.
Implements CoordSystemInterface.
Definition at line 968 of file CoordSystem.cpp.
|
virtual |
Set method for DocumentModelGridRemoval.
Implements CoordSystemInterface.
Definition at line 973 of file CoordSystem.cpp.
|
virtual |
Set method for DocumentModelPointMatch.
Implements CoordSystemInterface.
Definition at line 978 of file CoordSystem.cpp.
|
virtual |
Set method for DocumentModelSegments.
Implements CoordSystemInterface.
Definition at line 983 of file CoordSystem.cpp.
Save curve name that is selected for the current coordinate system, for the next time the coordinate system reappears.
Implements CoordSystemInterface.
Definition at line 988 of file CoordSystem.cpp.
|
virtual |
Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will explain why.
Implements CoordSystemInterface.
Definition at line 993 of file CoordSystem.cpp.
|
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 998 of file CoordSystem.cpp.