30#include <QXmlStreamReader>
31#include <QXmlStreamWriter>
54 m_curvesGraphs.addGraphCurveAtEnd (
Curve (curveName,
59 resetSelectedCurveNameIfNecessary ();
70 m_curvesGraphs.addGraphCurveAtEnd (
Curve (curveName,
75 resetSelectedCurveNameIfNecessary ();
79 const QPointF &posGraph,
89 m_curveAxes->addPoint (point);
94 <<
" ordinal=" << ordinal
97 <<
" identifier=" << identifier.toLatin1 ().data ();
101 const QPointF &posGraph,
102 const QString &identifier,
112 m_curveAxes->addPoint (point);
115 <<
" ordinal=" << ordinal
118 <<
" identifier=" << identifier.toLatin1 ().data ();
122 const QPointF &posScreen,
126 Point point (curveName,
129 m_curvesGraphs.addPoint (point);
134 <<
" ordinal=" << ordinal
136 <<
" identifier=" << identifier.toLatin1 ().data ();
140 const QPointF &posScreen,
141 const QString &identifier,
144 Point point (curveName,
148 m_curvesGraphs.addPoint (point);
151 <<
" ordinal=" << ordinal
153 <<
" identifier=" << identifier.toLatin1 ().data ();
160 Functor2wRet<const QString &, const Point &, CallbackSearchReturn> ftorWithCallback = functor_ret (ftor,
163 curvesGraphs.iterateThroughCurvesPoints (ftorWithCallback);
166bool CoordSystem::bytesIndicatePreVersion6 (
const QByteArray &bytes)
const
168 QByteArray preVersion6MagicNumber;
172 preVersion6MagicNumber[0] =
'\x00';
173 preVersion6MagicNumber[1] =
'\x00';
174 preVersion6MagicNumber[2] =
'\xCA';
175 preVersion6MagicNumber[3] =
'\xFE';
177 return (bytes == preVersion6MagicNumber);
181 const QPointF &posGraph,
183 QString &errorMessage,
194 documentAxesPointsRequired,
197 Functor2wRet<const QString &, const Point &, CallbackSearchReturn> ftorWithCallback = functor_ret (ftor,
199 m_curveAxes->iterateThroughCurvePoints (ftorWithCallback);
206 const QPointF &posScreen,
207 const QPointF &posGraph,
209 QString &errorMessage,
219 documentAxesPointsRequired);
221 Functor2wRet<const QString &, const Point &, CallbackSearchReturn> ftorWithCallback = functor_ret (ftor,
223 m_curveAxes->iterateThroughCurvePoints (ftorWithCallback);
244 return m_curvesGraphs.curveForCurveName (curveName);
257 return m_curvesGraphs.curveForCurveName (curveName);
264 return m_curvesGraphs;
274 return m_curvesGraphs.curvesGraphsNumPoints(curveName);
278 const QString &identifier)
281 <<
" posGraph=(" << posGraph.x () <<
", " << posGraph.y () <<
") identifier="
282 <<
" identifier=" << identifier.toLatin1 ().data ();
284 m_curveAxes->editPointAxis (posGraph,
292 const QStringList &identifiers,
296 <<
" x=" << (isX ? QString::number (x).toLatin1().data() :
"")
297 <<
" y=" << (isY ? QString::number (y).toLatin1().data() :
"")
298 <<
") identifiers=" << identifiers.join(
" ").toLatin1 ().data ();
300 m_curvesGraphs.editPointGraph (isX,
308void CoordSystem::initializeUnsetGridRemovalFromGridDisplay (
double version)
318 if (m_modelGridRemoval.
countX () < 2 ||
319 m_modelGridRemoval.
countY () < 2 ||
320 m_modelGridRemoval.
countX () > 100 ||
321 m_modelGridRemoval.
countY () > 100) {
338 return m_curveAxes->isXOnly (pointIdentifier);
345 m_curveAxes->iterateThroughCurvePoints (ftorWithCallback);
352 m_curveAxes->iterateThroughCurvePoints (ftorWithCallback);
356 const Functor2wRet<const Point &, const Point &, CallbackSearchReturn> &ftorWithCallback)
const
359 m_curveAxes->iterateThroughCurveSegments(ftorWithCallback);
361 m_curvesGraphs.iterateThroughCurveSegments(curveName,
370 m_curvesGraphs.iterateThroughCurvesPoints (ftorWithCallback);
377 m_curvesGraphs.iterateThroughCurvesPoints (ftorWithCallback);
394 double dbl, radius = 0.0;
400 m_modelCoords.setCoordsType(
static_cast<CoordsType> (int32));
402 str >>
static_cast<double &
> (radius);
404 m_modelCoords.setOriginRadius(radius);
409 m_modelCoords.setCoordScaleXTheta(
static_cast<CoordScale> (int32));
411 m_modelCoords.setCoordScaleYRadius(
static_cast<CoordScale> (int32));
423 m_modelExport.setHeader(
static_cast<ExportHeader> (int32));
424 if (version >= 5.1) {
427 m_modelExport.setXLabel(st);
431 m_modelExport.setXLabel(st);
439 m_modelGridRemoval.setRemoveDefinedGridLines(int32);
442 m_modelGridRemoval.setCountX(int32);
444 m_modelGridRemoval.setCountY(int32);
446 m_modelGridRemoval.setGridCoordDisableX(
static_cast<GridCoordDisable> (int32));
448 m_modelGridRemoval.setGridCoordDisableY(
static_cast<GridCoordDisable> (int32));
450 m_modelGridRemoval.setStartX(dbl);
452 m_modelGridRemoval.setStartY(dbl);
454 m_modelGridRemoval.setStepX(dbl);
456 m_modelGridRemoval.setStepY(dbl);
458 m_modelGridRemoval.setStopX(dbl);
460 m_modelGridRemoval.setStopY(dbl);
462 m_modelGridRemoval.setCloseDistance(dbl);
475 m_modelGridDisplay.setStable(int32);
477 m_modelGridDisplay.setCountX(
unsigned (int32));
479 m_modelGridDisplay.setCountY(
unsigned (int32));
485 m_modelGridDisplay.setStartX (dbl);
487 m_modelGridDisplay.setStartY (dbl);
489 m_modelGridDisplay.setStepX (dbl);
491 m_modelGridDisplay.setStepY (dbl);
493 m_modelGridDisplay.setStopX (dbl);
495 m_modelGridDisplay.setStopY (dbl);
497 initializeUnsetGridRemovalFromGridDisplay (version);
500 m_modelSegments.setMinLength(int32);
502 m_modelSegments.setPointSeparation(int32);
504 m_modelSegments.setLineWidthActive(int32);
506 m_modelSegments.setLineColor(
static_cast<ColorPalette> (int32));
510 m_modelPointMatch.setMaxPointSize(int32);
512 m_modelPointMatch.setPaletteColorAccepted(
static_cast<ColorPalette> (int32));
514 m_modelPointMatch.setPaletteColorRejected(
static_cast<ColorPalette> (int32));
519 m_modelPointMatch.setPaletteColorCandidate(
static_cast<ColorPalette> (int32));
541 m_curveAxes = curveScaleIn;
548 m_curveAxes = curveAxesIn;
551 m_curvesGraphs.loadPreVersion6 (str);
554 if (m_curveAxes->numPoints () >= documentAxesPointsRequired) {
555 m_modelGridRemoval.setStable();
558 resetSelectedCurveNameIfNecessary ();
569 while (!reader.atEnd() &&
570 !reader.hasError()) {
574 (tokenType == QXmlStreamReader::EndElement)) {
581 if (tokenType == QXmlStreamReader::StartElement) {
584 QString tag = reader.name().toString();
586 m_modelAxesChecker.loadXml (reader);
588 m_modelCoords.loadXml (reader);
591 m_curveAxes =
new Curve (reader);
593 m_curvesGraphs.loadXml (reader);
595 m_modelDigitizeCurve.loadXml (reader);
597 m_modelExport.loadXml (reader);
599 m_modelGeneral.loadXml (reader);
601 m_modelGridRemoval.loadXml (reader);
603 m_modelGuideline.loadXml (reader);
608 m_modelPointMatch.loadXml (reader);
610 m_modelSegments.loadXml (reader);
612 m_successfulRead =
false;
613 m_reasonForUnsuccessfulRead = QString (
"%1 '%2' %3")
614 .arg (QObject::tr (
"Unexpected xml token"))
616 .arg (
"encountered");
622 resetSelectedCurveNameIfNecessary ();
630 while (!reader.atEnd() &&
631 !reader.hasError()) {
635 (tokenType == QXmlStreamReader::EndElement)) {
642 if (tokenType == QXmlStreamReader::StartElement) {
645 QString tag = reader.name().toString();
647 m_modelAxesChecker.loadXml (reader);
649 m_modelCoords.loadXml (reader);
652 m_curveAxes =
new Curve (reader);
654 m_curvesGraphs.loadXml (reader);
656 m_modelDigitizeCurve.loadXml (reader);
658 m_modelExport.loadXml (reader);
660 m_modelGeneral.loadXml (reader);
662 m_modelGridDisplay.loadXml (reader);
664 m_modelGridRemoval.loadXml (reader);
666 m_modelGuideline.loadXml (reader);
671 m_modelPointMatch.loadXml (reader);
673 m_modelSegments.loadXml (reader);
675 m_successfulRead =
false;
676 m_reasonForUnsuccessfulRead = QString (
"Unexpected xml token '%1' encountered").arg (tag);
682 resetSelectedCurveNameIfNecessary ();
687 return m_modelAxesChecker;
700 return m_modelCoords;
713 return m_modelDigitizeCurve;
718 return m_modelExport;
723 return m_modelGeneral;
728 return m_modelGridDisplay;
733 return m_modelGridRemoval;
738 return m_modelGuideline;
743 return m_modelPointMatch;
748 return m_modelSegments;
752 const QPointF &deltaScreen)
766 Functor2wRet<const QString &, const Point &, CallbackSearchReturn> ftorWithCallback = functor_ret (ftor,
770 m_curveAxes->iterateThroughCurvePoints (ftorWithCallback);
772 m_curvesGraphs.iterateThroughCurvesPoints (ftorWithCallback);
797 QTextStream str (&text);
801 std::cerr << text.toLatin1().data();
805 QTextStream &str)
const
807 str << indentation <<
"Graph\n";
814 m_curveAxes->printStream (indentation,
816 m_curvesGraphs.printStream (indentation,
819 m_modelAxesChecker.printStream (indentation,
821 m_modelCoords.printStream (indentation,
823 m_modelDigitizeCurve.printStream (indentation,
825 m_modelExport.printStream (indentation,
827 m_modelGeneral.printStream (indentation,
829 m_modelGridDisplay.printStream (indentation,
831 m_modelGridRemoval.printStream (indentation,
833 m_modelGuideline.printStream (indentation,
835 m_modelPointMatch.printStream (indentation,
837 m_modelSegments.printStream (indentation,
845 return m_reasonForUnsuccessfulRead;
850 LOG4CPP_INFO_S ((*
mainCat)) <<
"CoordSystem::removePointAxis identifier=" << identifier.toLatin1 ().data ();
852 m_curveAxes->removePoint (identifier);
857 LOG4CPP_INFO_S ((*
mainCat)) <<
"CoordSystem::removePointGraph identifier=" << identifier.toLatin1 ().data ();
859 m_curvesGraphs.removePoint (identifier);
866 Functor2wRet<const QString &, const Point &, CallbackSearchReturn> ftorWithCallback = functor_ret (ftor,
869 curvesGraphs.iterateThroughCurvesPoints (ftorWithCallback);
872void CoordSystem::resetSelectedCurveNameIfNecessary ()
874 if (m_selectedCurveName.isEmpty () ||
888 m_modelGeneral.saveXml (writer);
889 m_modelCoords.saveXml (writer);
890 m_modelDigitizeCurve.saveXml (writer);
891 m_modelExport.saveXml (writer);
892 m_modelAxesChecker.saveXml (writer);
893 m_modelGridDisplay.saveXml (writer);
894 m_modelGridRemoval.saveXml (writer);
895 m_modelGuideline.saveXml (writer);
896 m_modelPointMatch.saveXml (writer);
897 m_modelSegments.saveXml (writer);
898 m_curveAxes->saveXml (writer);
899 m_curvesGraphs.saveXml (writer);
900 writer.writeEndElement();
905 return m_selectedCurveName;
923 resetSelectedCurveNameIfNecessary ();
934 ColorFilterSettingsList::const_iterator itr;
939 QString curveName = itr.key();
956 QStringList::iterator itr;
957 for (itr = curveNames.begin(); itr != curveNames.end(); itr++) {
959 QString curveName = *itr;
1014 return m_successfulRead;
1022 m_curvesGraphs.updatePointOrdinals (transformation);
const QString AXIS_CURVE_NAME
@ COORD_UNITS_NON_POLAR_THETA_NUMBER
const QString DEFAULT_GRAPH_CURVE_NAME
DocumentAxesPointsRequired
@ DOCUMENT_AXES_POINTS_REQUIRED_3
@ DOCUMENT_AXES_POINTS_REQUIRED_2
const QString DOCUMENT_SERIALIZE_CURVES_GRAPHS
const QString DOCUMENT_SERIALIZE_AXES_CHECKER
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY
const QString DOCUMENT_SERIALIZE_COORD_SYSTEM
const QString DOCUMENT_SERIALIZE_COMMON
const QString DOCUMENT_SERIALIZE_GUIDELINES
const QString DOCUMENT_SERIALIZE_IMAGE
const QString DOCUMENT_SERIALIZE_GENERAL
const QString DOCUMENT_SERIALIZE_EXPORT
const QString DOCUMENT_SERIALIZE_DOCUMENT
const QString DOCUMENT_SERIALIZE_GRID_REMOVAL
const QString DOCUMENT_SERIALIZE_SEGMENTS
const QString DOCUMENT_SERIALIZE_CURVE
const QString DOCUMENT_SERIALIZE_DIGITIZE_CURVE
const QString DOCUMENT_SERIALIZE_COORDS
const QString DOCUMENT_SERIALIZE_POINT_MATCH
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT.
#define ENGAUGE_CHECK_PTR(ptr)
Drop in replacement for Q_CHECK_PTR.
ExportDelimiter
Delimiter values that may or may not be overridden by DOCUMENT_SERIALIZE_EXPORT_DELIMITER_OVERRIDE_CS...
ExportPointsIntervalUnits
ExportPointsSelectionFunctions
@ EXPORT_POINTS_SELECTION_RELATIONS_RAW
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
QString QPointFToString(const QPointF &pos)
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
Callback that is used when iterating through a read-only CurvesGraphs to add corresponding points in ...
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Callback for sanity checking the screen and graph coordinates of an axis point, before it is added to...
bool isError() const
True if an error occurred during iteration.
QString errorMessage() const
Error message that explains the problem indicated by isError.
Callback for sanity checking the screen and graph coordinates of an axis point that is in the axes cu...
bool isError() const
True if an error occurred during iteration.
QString errorMessage() const
Error message that explains the problem indicated by isError.
Callback for computing the next ordinal for a new point.
double nextOrdinal() const
Computed next ordinal.
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Callback that is used when iterating through a read-only CurvesGraphs to remove corresponding points ...
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
static ColorFilterSettings defaultFilter()
Initial default for any Curve.
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 CurveStyles modelCurveStyles() const
Get method for CurveStyles.
virtual void print() const
Debugging method for printing directly from symbolic debugger.
virtual void updatePointOrdinals(const Transformation &transformation)
Update point ordinals after point addition/removal or dragging.
virtual void addPointGraphWithGeneratedIdentifier(const QString &curveName, const QPointF &posScreen, QString &generatedIentifier, double ordinal)
Add a single graph point with a generated point identifier.
virtual DocumentModelGridRemoval modelGridRemoval() const
Get method for DocumentModelGridRemoval.
virtual QPointF positionScreen(const QString &pointIdentifier) const
See Curve::positionScreen.
virtual DocumentModelPointMatch modelPointMatch() const
Get method for DocumentModelPointMatch.
virtual void setCurvesGraphs(const CurvesGraphs &curvesGraphs)
Let CmdAbstract classes overwrite CurvesGraphs. Applies to current coordinate system.
virtual int curvesGraphsNumPoints(const QString &curveName) const
See CurvesGraphs::curvesGraphsNumPoints.
virtual void movePoint(const QString &pointIdentifier, const QPointF &deltaScreen)
See Curve::movePoint.
virtual DocumentModelCoords modelCoords() const
Get method for DocumentModelCoords.
virtual void setModelExport(const DocumentModelExportFormat &modelExport)
Set method for DocumentModelExportFormat.
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 void setModelAxesChecker(const DocumentModelAxesChecker &modelAxesChecker)
Set method for DocumentModelAxesChecker.
virtual void removePointGraph(const QString &identifier)
Perform the opposite of addPointGraph.
void setModelPointMatch(const DocumentModelPointMatch &modelPointMatch)
Set method for DocumentModelPointMatch.
virtual void iterateThroughCurvesPointsGraphs(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
See Curve::iterateThroughCurvePoints, for all the graphs curves.
virtual void addPointsInCurvesGraphs(CurvesGraphs &curvesGraphs)
Add all points identified in the specified CurvesGraphs. See also removePointsInCurvesGraphs.
virtual DocumentModelGuideline modelGuideline() const
Get method for DocumentModelGuideline.
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 setModelGuideline(const DocumentModelGuideline &modelGuideline)
Set method for DocumentModelGuideline.
virtual void removePointsInCurvesGraphs(CurvesGraphs &curvesGraphs)
Remove all points identified in the specified CurvesGraphs. See also addPointsInCurvesGraphs.
virtual QPointF positionGraph(const QString &pointIdentifier) const
See Curve::positionGraph.
virtual void iterateThroughCurvePointsAxes(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
See Curve::iterateThroughCurvePoints, for the axes curve.
bool isXOnly(const QString &pointIdentifier) const
Return true if y coordinate is undefined, otherwise x coordinae is undefined in DOCUMENT_AXES_POINT_R...
virtual void checkEditPointAxis(const QString &pointIdentifier, const QPointF &posScreen, const QPointF &posGraph, bool &isError, QString &errorMessage, DocumentAxesPointsRequired documentAxesPointsRequired)
Check before calling editPointAxis.
virtual DocumentModelDigitizeCurve modelDigitizeCurve() const
Get method for DocumentModelDigitizeCurve.
virtual DocumentModelAxesChecker modelAxesChecker() const
Get method for DocumentModelAxesChecker.
virtual DocumentModelGeneral modelGeneral() const
Get method for DocumentModelGeneral.
void loadVersions7AndUp(QXmlStreamReader &reader)
Load from file in versions 7 and 8 formats. Number of axes points is already defined at Document leve...
virtual DocumentModelSegments modelSegments() const
Get method for DocumentModelSegments.
virtual void setModelGeneral(const DocumentModelGeneral &modelGeneral)
Set method for DocumentModelGeneral.
virtual DocumentModelColorFilter modelColorFilter() const
Get 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 ...
void loadVersion6(QXmlStreamReader &reader, DocumentAxesPointsRequired &documentAxesPointsRequired)
Load from file in version 6 format. Number of axes points is read in and passed to Document.
CoordSystem()
Single constructor.
virtual Curve * curveForCurveName(const QString &curveName)
See CurvesGraphs::curveForCurveName, although this also works for AXIS_CURVE_NAME.
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 void removePointAxis(const QString &identifier)
Perform the opposite of addPointAxis.
virtual const Curve & curveAxes() const
Get method for axis curve.
virtual QString selectedCurveName() const
Currently selected curve name. This is used to set the selected curve combobox in MainWindow.
virtual void setModelSegments(const DocumentModelSegments &modelSegments)
Set method for DocumentModelSegments.
virtual void setCurveAxes(const Curve &curveAxes)
Let CmdAbstract classes overwrite axes Curve. Applies to current coordinate system.
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 QStringList curvesGraphsNames() const
See CurvesGraphs::curvesGraphsNames.
virtual int nextOrdinalForCurve(const QString &curveName) const
Default next ordinal value for specified curve.
virtual DocumentModelGridDisplay modelGridDisplay() const
Get method for DocumentModelGridDisplay.
virtual void addGraphCurveAtEnd(const QString &curveName)
Add new graph curve to the list of existing graph curves.
virtual const CurvesGraphs & curvesGraphs() const
Make all Curves available, read only, for CmdAbstract classes only.
virtual void setModelCoords(const DocumentModelCoords &modelCoords)
Set method for DocumentModelCoords.
virtual void saveXml(QXmlStreamWriter &writer) const
Save graph to xml.
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 QString reasonForUnsuccessfulRead() const
Return an informative text message explaining why startup loading failed. Applies if successfulRead r...
virtual void setModelGridRemoval(const DocumentModelGridRemoval &modelGridRemoval)
Set method for DocumentModelGridRemoval.
virtual void setModelCurveStyles(const CurveStyles &modelCurveStyles)
Set method for CurveStyles.
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 void setModelGridDisplay(const DocumentModelGridDisplay &modelGridDisplay)
Set method for DocumentModelGridDisplay.
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 setModelDigitizeCurve(const DocumentModelDigitizeCurve &modelDigitizeCurve)
Set method for DocumentModelDigitizeCurve.
virtual void setModelColorFilter(const DocumentModelColorFilter &modelColorFilter)
Set method for DocumentModelColorFilter.
void 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.
virtual DocumentModelExportFormat modelExport() const
Get method for DocumentModelExportFormat.
virtual bool successfulRead() const
Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will ex...
virtual void addPointGraphWithSpecifiedIdentifier(const QString &curveName, const QPointF &posScreen, const QString &identifier, double ordinal)
Add a single graph point with the specified point identifier. Note that PointStyle is not applied to ...
Container for LineStyle and PointStyle for one Curve.
Model for DlgSettingsCurveProperties and CmdSettingsCurveProperties.
Container for one set of digitized Points.
void movePoint(const QString &pointIdentifier, const QPointF &deltaScreen)
Translate the position of a point by the specified distance vector.
void setCurveStyle(const CurveStyle &curveStyle)
Set curve style.
void setColorFilterSettings(const ColorFilterSettings &colorFilterSettings)
Set color filter.
void setCurveName(const QString &curveName)
Change the curve name.
QPointF positionScreen(const QString &pointIdentifier) const
Return the position, in screen coordinates, of the specified Point.
QPointF positionGraph(const QString &pointIdentifier) const
Return the position, in graph coordinates, of the specified Point.
int numPoints() const
Number of points.
Container for all graph curves. The axes point curve is external to this class.
QStringList curvesGraphsNames() const
List of graph curve names.
Model for DlgSettingsAxesChecker and CmdSettingsAxesChecker.
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
Model for DlgSettingsCoords and CmdSettingsCoords.
Model for DlgSettingsDigitizeCurve and CmdSettingsDigitizeCurve.
Model for DlgSettingsGeneral and CmdSettingsGeneral.
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
unsigned int countX() const
Get method for x grid line count.
double startX() const
Get method for x grid line lower bound (inclusive).
unsigned int countY() const
Get method for y grid line count.
double stepX() const
Get method for x grid line increment.
double stopX() const
Get method for x grid line upper bound (inclusive).
double stopY() const
Get method for y grid line upper bound (inclusive).
double stepY() const
Get method for y grid line increment.
double startY() const
Get method for y grid line lower bound (inclusive).
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval.
void setStopY(double stopY)
Set method for y stop.
void setCountX(int countX)
Set method for x count.
void setStepX(double stepX)
Set method for x step.
void setStopX(double stopX)
Set method for x stop.
void setStartY(double startY)
Set method for y start.
int countY() const
Get method for y count.
int countX() const
Get method for x count.
void setStepY(double stepY)
Set method for y step.
void setStartX(double startX)
Set method for x start.
void setCountY(int countY)
Set method for y count.
Model for managing the coordinate values corresponding Guidelines.
Model for DlgSettingsPointMatch and CmdSettingsPointMatch.
Model for DlgSettingsSegments and CmdSettingsSegments.
Details for a specific Line.
static LineStyle defaultGraphCurve(int index)
Initial default for index'th graph curve.
Details for a specific Point.
static PointStyle defaultGraphCurve(int index)
Initial default for index'th graph curve.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
static QString curveNameFromPointIdentifier(const QString &pointIdentifier)
Parse the curve name from the specified point identifier. This does the opposite of uniqueIdentifierG...
QString identifier() const
Unique identifier for a specific Point.
Manage storage and retrieval of the settings for the curves.
QString defaultCurveName(int indexOneBased, const QString &defaultName) const
Default graph name for the specified curve index.
int numberOfCurvesForImport() const
Return the number of curve names to be generated. Value is maximum of 1 and the number in the configu...
#define LOG4CPP_INFO_S(logger)
#define LOG4CPP_ERROR_S(logger)