7 #ifndef DOCUMENT_MODEL_COORDS_H 8 #define DOCUMENT_MODEL_COORDS_H 10 #include "CoordScale.h" 11 #include "CoordsType.h" 12 #include "CoordUnitsNonPolarTheta.h" 13 #include "CoordUnitsPolarTheta.h" 14 #include "DocumentModelAbstractBase.h" 62 virtual void loadXml(QXmlStreamReader &reader);
69 QTextStream &str)
const;
71 virtual void saveXml(QXmlStreamWriter &writer)
const;
108 CoordsType m_coordsType;
109 double m_originRadius;
110 CoordScale m_coordScaleXTheta;
111 CoordScale m_coordScaleYRadius;
112 CoordUnitsNonPolarTheta m_coordUnitsX;
113 CoordUnitsNonPolarTheta m_coordUnitsY;
114 CoordUnitsPolarTheta m_coordUnitsTheta;
115 CoordUnitsNonPolarTheta m_coordUnitsRadius;
116 CoordUnitsDate m_coordUnitsDate;
117 CoordUnitsTime m_coordUnitsTime;
120 #endif // DOCUMENT_MODEL_COORDS_H void setCoordUnitsTime(CoordUnitsTime coordUnits)
Set method for time units.
void setCoordUnitsDate(CoordUnitsDate coordUnits)
Set method for date units.
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
CoordUnitsNonPolarTheta coordUnitsRadius() const
Get method for radius units.
void setCoordUnitsY(CoordUnitsNonPolarTheta coordUnits)
Set method for y units.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
void setCoordUnitsX(CoordUnitsNonPolarTheta coordUnits)
Set method for x units.
void setCoordScaleYRadius(CoordScale coordScale)
Set method for linear/log scale on y/radius.
CoordUnitsNonPolarTheta coordUnitsY() const
Get method for x units.
double thetaPeriod() const
Return the period of the theta value for polar coordinates, consistent with CoordThetaUnits.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
CoordUnitsPolarTheta coordUnitsTheta() const
Get method for theta unit.
DocumentModelCoords & operator=(const DocumentModelCoords &other)
Assignment constructor.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
DocumentModelCoords()
Default constructor.
CoordUnitsTime coordUnitsTime() const
Get method for time format when used.
CoordScale coordScaleXTheta() const
Get method for linear/log scale on x/theta.
void setCoordUnitsTheta(CoordUnitsPolarTheta coordUnits)
Set method for theta units.
CoordUnitsDate coordUnitsDate() const
Get method for date format when used.
Model for DlgSettingsCoords and CmdSettingsCoords.
void setOriginRadius(double originRadius)
Set method for origin radius in polar mode.
Storage of one imported image and the data attached to that image.
void setCoordUnitsRadius(CoordUnitsNonPolarTheta coordUnits)
Set method for radius units.
CoordScale coordScaleYRadius() const
Get method for linear/log scale on y/radius.
CoordsType coordsType() const
Get method for coordinates type.
CoordUnitsNonPolarTheta coordUnitsX() const
Get method for x units.
double originRadius() const
Get method for origin radius in polar mode.
void setCoordScaleXTheta(CoordScale coordScale)
Set method for linear/log scale on x/theta.
void setCoordsType(CoordsType coordsType)
Set method for coordinates type.