|
Engauge Digitizer
2
|
Storage of one imported image and the data attached to that image. More...
#include <Document.h>
Public Member Functions | |
| Document (const QImage &image) | |
| Constructor for imported images and dragged images. | |
| Document (const QString &fileName) | |
| Constructor for opened Documents, and error report files. The specified file is opened and read. | |
| void | addGraphCurveAtEnd (const QString &curveName) |
| Add new graph curve to the list of existing graph curves. | |
| void | addPointAxisWithGeneratedIdentifier (const QPointF &posScreen, const QPointF &posGraph, QString &identifier, double ordinal) |
| Add a single axis point with a generated point identifier. More... | |
| void | addPointAxisWithSpecifiedIdentifier (const QPointF &posScreen, const QPointF &posGraph, const QString &identifier, double ordinal) |
| Add a single axis point with the specified point identifier. More... | |
| void | addPointGraphWithGeneratedIdentifier (const QString &curveName, const QPointF &posScreen, QString &generatedIentifier, double ordinal) |
| Add a single graph point with a generated point identifier. | |
| 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 the point within the Document. | |
| void | addPointsInCurvesGraphs (CurvesGraphs &curvesGraphs) |
| Add all points identified in the specified CurvesGraphs. See also removePointsInCurvesGraphs. | |
| void | checkAddPointAxis (const QPointF &posScreen, const QPointF &posGraph, bool &isError, QString &errorMessage) |
| Check before calling addPointAxis. Also returns the next available ordinal number (to prevent clashes) | |
| void | checkEditPointAxis (const QString &pointIdentifier, const QPointF &posScreen, const QPointF &posGraph, bool &isError, QString &errorMessage) |
| Check before calling editPointAxis. | |
| const Curve & | curveAxes () const |
| Get method for axis curve. | |
| const Curve * | curveForCurveName (const QString &curveName) const |
| See CurvesGraphs::curveForCurveNames, although this also works for AXIS_CURVE_NAME. | |
| const CurvesGraphs & | curvesGraphs () const |
| Make all Curves available, read only, for CmdAbstract classes only. | |
| QStringList | curvesGraphsNames () const |
| See CurvesGraphs::curvesGraphsNames. | |
| int | curvesGraphsNumPoints (const QString &curveName) const |
| See CurvesGraphs::curvesGraphsNumPoints. | |
| 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. | |
| void | iterateThroughCurvePointsAxes (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) |
| See Curve::iterateThroughCurvePoints, for the axes curve. | |
| void | iterateThroughCurvePointsAxes (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const |
| See Curve::iterateThroughCurvePoints, for the axes curve. | |
| void | iterateThroughCurveSegments (const QString &curveName, const Functor2wRet< const Point &, const Point &, CallbackSearchReturn > &ftorWithCallback) const |
| See Curve::iterateThroughCurveSegments, for any axes or graph curve. | |
| void | iterateThroughCurvesPointsGraphs (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) |
| See Curve::iterateThroughCurvePoints, for all the graphs curves. | |
| void | iterateThroughCurvesPointsGraphs (const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback) const |
| See Curve::iterateThroughCurvePoints, for all the graphs curves. | |
| DocumentModelAxesChecker | modelAxesChecker () const |
| Get method for DocumentModelAxesChecker. | |
| DocumentModelColorFilter | modelColorFilter () const |
| Get method for DocumentModelColorFilter. | |
| DocumentModelCommon | modelCommon () const |
| Get method for DocumentModelCommon. | |
| DocumentModelCoords | modelCoords () const |
| Get method for DocumentModelCoords. | |
| CurveStyles | modelCurveStyles () const |
| Get method for CurveStyles. | |
| DocumentModelDigitizeCurve | modelDigitizeCurve () const |
| Get method for DocumentModelDigitizeCurve. | |
| DocumentModelExportFormat | modelExport () const |
| Get method for DocumentModelExportFormat. | |
| DocumentModelGridRemoval | modelGridRemoval () const |
| Get method for DocumentModelGridRemoval. | |
| DocumentModelPointMatch | modelPointMatch () const |
| Get method for DocumentModelPointMatch. | |
| DocumentModelSegments | modelSegments () const |
| Get method for DocumentModelSegments. | |
| void | movePoint (const QString &pointIdentifier, const QPointF &deltaScreen) |
| See Curve::movePoint. | |
| int | nextOrdinalForCurve (const QString &curveName) const |
| Default next ordinal value for specified curve. | |
| QPixmap | pixmap () const |
| Return the image that is being digitized. | |
| QPointF | positionGraph (const QString &pointIdentifier) const |
| See Curve::positionGraph. | |
| QPointF | positionScreen (const QString &pointIdentifier) const |
| See Curve::positionScreen. | |
| void | print () const |
| Debugging method for printing directly from symbolic debugger. | |
| void | printStream (QString indentation, QTextStream &str) const |
| Debugging method that supports print method of this class and printStream method of some other class(es) | |
| QString | reasonForUnsuccessfulRead () const |
| Return an informative text message explaining why startup loading failed. Applies if successfulRead returns false. | |
| void | removePointAxis (const QString &identifier) |
| Perform the opposite of addPointAxis. | |
| void | removePointGraph (const QString &identifier) |
| Perform the opposite of addPointGraph. | |
| void | removePointsInCurvesGraphs (CurvesGraphs &curvesGraphs) |
| Remove all points identified in the specified CurvesGraphs. See also addPointsInCurvesGraphs. | |
| void | saveXml (QXmlStreamWriter &writer) const |
| Save document to xml. | |
| void | setCurvesGraphs (const CurvesGraphs &curvesGraphs) |
| Let CmdAbstract classes overwrite CurvesGraphs. | |
| void | setModelAxesChecker (const DocumentModelAxesChecker &modelAxesChecker) |
| Set method for DocumentModelAxesChecker. | |
| void | setModelColorFilter (const DocumentModelColorFilter &modelColorFilter) |
| Set method for DocumentModelColorFilter. | |
| void | setModelCommon (const DocumentModelCommon &modelCommon) |
| Set method for DocumentModelCommon. | |
| void | setModelCoords (const DocumentModelCoords &modelCoords) |
| Set method for DocumentModelCoords. | |
| void | setModelCurveStyles (const CurveStyles &modelCurveStyles) |
| Set method for CurveStyles. | |
| void | setModelDigitizeCurve (const DocumentModelDigitizeCurve &modelDigitizeCurve) |
| Set method for DocumentModelDigitizeCurve. | |
| void | setModelExport (const DocumentModelExportFormat &modelExport) |
| Set method for DocumentModelExportFormat. | |
| void | setModelGridRemoval (const DocumentModelGridRemoval &modelGridRemoval) |
| Set method for DocumentModelGridRemoval. | |
| void | setModelPointMatch (const DocumentModelPointMatch &modelPointMatch) |
| Set method for DocumentModelPointMatch. | |
| void | setModelSegments (const DocumentModelSegments &modelSegments) |
| Set method for DocumentModelSegments. | |
| bool | successfulRead () const |
| Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will explain why. | |
| void | updatePointOrdinals (const Transformation &transformation) |
| Update point ordinals after point addition/removal or dragging. More... | |
Storage of one imported image and the data attached to that image.
Definition at line 28 of file Document.h.
| void Document::addPointAxisWithGeneratedIdentifier | ( | const QPointF & | posScreen, |
| const QPointF & | posGraph, | ||
| QString & | identifier, | ||
| double | ordinal | ||
| ) |
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 |
Definition at line 87 of file Document.cpp.
| void Document::addPointAxisWithSpecifiedIdentifier | ( | const QPointF & | posScreen, |
| const QPointF & | posGraph, | ||
| const QString & | identifier, | ||
| double | ordinal | ||
| ) |
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 |
Definition at line 107 of file Document.cpp.
| void Document::updatePointOrdinals | ( | const Transformation & | transformation | ) |
Update point ordinals after point addition/removal or dragging.
See GraphicsScene::updatePointOrdinalsAfterDrag. Graph coordinates of point must be up to date
Definition at line 906 of file Document.cpp.
1.8.9.1