Engauge Digitizer 2
|
Model for DlgSettingsCurveProperties and CmdSettingsCurveProperties. More...
#include <CurveStyles.h>
Public Member Functions | |
CurveStyles () | |
Default constructor. | |
CurveStyles (const CoordSystem &coordSystem) | |
Initial constructor from Document. | |
CurveStyles (const CurveStyles &other) | |
Copy constructor. | |
CurveStyles & | operator= (const CurveStyles &other) |
Assignment constructor. | |
QStringList | curveNames () const |
List of all curve names. | |
CurveStyle | curveStyle (const QString &curveName) const |
CurveStyle in specified curve. | |
ColorPalette | lineColor (const QString &curveName) const |
Get method for line color in specified curve. | |
CurveConnectAs | lineConnectAs (const QString &curveName) const |
Get method for connect as method for lines in specified curve. | |
const LineStyle | lineStyle (const QString &curveName) const |
Get method for copying one line style in one step. | |
int | lineWidth (const QString &curveName) const |
Get method for line width in specified curve. | |
void | loadXml (QXmlStreamReader &reader) |
Load from serialized xml. | |
ColorPalette | pointColor (const QString &curveName) const |
Get method for curve point color in specified curve. | |
bool | pointIsCircle (const QString &curveName) const |
Get method for curve point is circle in specified curve. | |
int | pointLineWidth (const QString &curveName) const |
Get method for curve point line width. | |
QPolygonF | pointPolygon (const QString &curveName) const |
Get method for curve point polygon in specified curve. | |
int | pointRadius (const QString &curveName) const |
Get method for curve point radius. | |
PointShape | pointShape (const QString &curveName) const |
Get method for curve point shape. | |
const PointStyle | pointStyle (const QString &curveName) const |
Get method for copying one point style. Cannot return just a reference or else there is a warning about returning reference to temporary. | |
void | saveXml (QXmlStreamWriter &writer) const |
Serialize to xml. | |
void | setCurveStyle (const QString &curveName, const CurveStyle &curveStyle) |
Set method for curve style. | |
void | setLineColor (const QString &curveName, ColorPalette lineColor) |
Set method for line color in specified curve. | |
void | setLineConnectAs (const QString &curveName, CurveConnectAs curveConnectAs) |
Set method for connect as method for lines in specified curve. | |
void | setLineWidth (const QString &curveName, int width) |
Set method for line width in specified curve. | |
void | setPointColor (const QString &curveName, ColorPalette curveColor) |
Set method curve point color in specified curve. | |
void | setPointIsCircle (const QString &curveName, bool pointIsCircle) |
Set method for curve point is circle in specified curve. | |
void | setPointLineWidth (const QString &curveName, int width) |
Set method for curve point perimeter line width. | |
void | setPointRadius (const QString &curveName, int radius) |
Set method for curve point radius. | |
void | setPointShape (const QString &curveName, PointShape shape) |
Set method for curve point shape in specified curve. |
Model for DlgSettingsCurveProperties and CmdSettingsCurveProperties.
Definition at line 22 of file CurveStyles.h.
CurveStyles::CurveStyles | ( | ) |
CurveStyles::CurveStyles | ( | const CoordSystem & | coordSystem | ) |
Initial constructor from Document.
Definition at line 22 of file CurveStyles.cpp.
CurveStyles::CurveStyles | ( | const CurveStyles & | other | ) |
Copy constructor.
Definition at line 41 of file CurveStyles.cpp.
QStringList CurveStyles::curveNames | ( | ) | const |
List of all curve names.
Definition at line 67 of file CurveStyles.cpp.
CurveStyle CurveStyles::curveStyle | ( | const QString & | curveName | ) | const |
CurveStyle in specified curve.
Definition at line 79 of file CurveStyles.cpp.
ColorPalette CurveStyles::lineColor | ( | const QString & | curveName | ) | const |
Get method for line color in specified curve.
Definition at line 85 of file CurveStyles.cpp.
CurveConnectAs CurveStyles::lineConnectAs | ( | const QString & | curveName | ) | const |
Get method for connect as method for lines in specified curve.
Definition at line 91 of file CurveStyles.cpp.
const LineStyle CurveStyles::lineStyle | ( | const QString & | curveName | ) | const |
Get method for copying one line style in one step.
Definition at line 97 of file CurveStyles.cpp.
int CurveStyles::lineWidth | ( | const QString & | curveName | ) | const |
Get method for line width in specified curve.
Definition at line 102 of file CurveStyles.cpp.
void CurveStyles::loadXml | ( | QXmlStreamReader & | reader | ) |
Load from serialized xml.
Definition at line 108 of file CurveStyles.cpp.
CurveStyles & CurveStyles::operator= | ( | const CurveStyles & | other | ) |
Assignment constructor.
Definition at line 53 of file CurveStyles.cpp.
ColorPalette CurveStyles::pointColor | ( | const QString & | curveName | ) | const |
Get method for curve point color in specified curve.
Definition at line 142 of file CurveStyles.cpp.
bool CurveStyles::pointIsCircle | ( | const QString & | curveName | ) | const |
Get method for curve point is circle in specified curve.
Definition at line 148 of file CurveStyles.cpp.
int CurveStyles::pointLineWidth | ( | const QString & | curveName | ) | const |
Get method for curve point line width.
Definition at line 154 of file CurveStyles.cpp.
QPolygonF CurveStyles::pointPolygon | ( | const QString & | curveName | ) | const |
Get method for curve point polygon in specified curve.
Definition at line 160 of file CurveStyles.cpp.
int CurveStyles::pointRadius | ( | const QString & | curveName | ) | const |
Get method for curve point radius.
Definition at line 166 of file CurveStyles.cpp.
PointShape CurveStyles::pointShape | ( | const QString & | curveName | ) | const |
Get method for curve point shape.
Definition at line 172 of file CurveStyles.cpp.
const PointStyle CurveStyles::pointStyle | ( | const QString & | curveName | ) | const |
Get method for copying one point style. Cannot return just a reference or else there is a warning about returning reference to temporary.
Definition at line 178 of file CurveStyles.cpp.
void CurveStyles::saveXml | ( | QXmlStreamWriter & | writer | ) | const |
Serialize to xml.
Definition at line 184 of file CurveStyles.cpp.
void CurveStyles::setCurveStyle | ( | const QString & | curveName, |
const CurveStyle & | curveStyle ) |
Set method for curve style.
Definition at line 201 of file CurveStyles.cpp.
void CurveStyles::setLineColor | ( | const QString & | curveName, |
ColorPalette | lineColor ) |
Set method for line color in specified curve.
Definition at line 208 of file CurveStyles.cpp.
void CurveStyles::setLineConnectAs | ( | const QString & | curveName, |
CurveConnectAs | curveConnectAs ) |
Set method for connect as method for lines in specified curve.
Definition at line 216 of file CurveStyles.cpp.
void CurveStyles::setLineWidth | ( | const QString & | curveName, |
int | width ) |
Set method for line width in specified curve.
Definition at line 224 of file CurveStyles.cpp.
void CurveStyles::setPointColor | ( | const QString & | curveName, |
ColorPalette | curveColor ) |
Set method curve point color in specified curve.
Definition at line 232 of file CurveStyles.cpp.
void CurveStyles::setPointIsCircle | ( | const QString & | curveName, |
bool | pointIsCircle ) |
Set method for curve point is circle in specified curve.
void CurveStyles::setPointLineWidth | ( | const QString & | curveName, |
int | width ) |
Set method for curve point perimeter line width.
Definition at line 240 of file CurveStyles.cpp.
void CurveStyles::setPointRadius | ( | const QString & | curveName, |
int | radius ) |
Set method for curve point radius.
Definition at line 248 of file CurveStyles.cpp.
void CurveStyles::setPointShape | ( | const QString & | curveName, |
PointShape | shape ) |
Set method for curve point shape in specified curve.
Definition at line 256 of file CurveStyles.cpp.