Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
CurveStyle.h
1 #ifndef CURVE_STYLE_H
2 #define CURVE_STYLE_H
3 
4 #include "LineStyle.h"
5 #include "PointStyle.h"
6 
7 class QTextStream;
8 class QXmlStreamReader;
9 class QXmlStreamWriter;
10 
13 {
14 public:
16  CurveStyle();
17 
20  const PointStyle &pointStyle);
21 
23  LineStyle lineStyle() const;
24 
26  QString loadXml (QXmlStreamReader &reader);
27 
29  PointStyle pointStyle() const;
30 
32  void printStream (QString indentation,
33  QTextStream &str) const;
34 
36  void saveXml(QXmlStreamWriter &writer,
37  const QString &curveName) const;
38 
40  void setLineColor (ColorPalette lineColor);
41 
43  void setLineConnectAs (CurveConnectAs curveConnectAs);
44 
46  void setLineStyle (const LineStyle &lineStyle);
47 
49  void setLineWidth (int width);
50 
52  void setPointColor (ColorPalette curveColor);
53 
55  void setPointLineWidth (int width);
56 
58  void setPointRadius (int radius);
59 
61  void setPointShape (PointShape shape);
62 
64  void setPointStyle (const PointStyle &pointStyle);
65 
66 private:
67 
68  PointStyle m_pointStyle;
69  LineStyle m_lineStyle;
70 };
71 
72 #endif // CURVE_STYLE_H
void saveXml(QXmlStreamWriter &writer, const QString &curveName) const
Serialize to xml.
Definition: CurveStyle.cpp:87
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
Definition: CurveStyle.cpp:74
CurveStyle()
Default constructor.
Definition: CurveStyle.cpp:9
LineStyle lineStyle() const
Get method for LineStyle.
Definition: CurveStyle.cpp:20
void setPointShape(PointShape shape)
Set method for curve point shape in specified curve.
Definition: CurveStyle.cpp:134
PointStyle pointStyle() const
Get method for PointStyle.
Definition: CurveStyle.cpp:69
void setLineConnectAs(CurveConnectAs curveConnectAs)
Set method for connect as method for lines in specified curve.
Definition: CurveStyle.cpp:104
void setLineStyle(const LineStyle &lineStyle)
Set method for LineStyle.
Definition: CurveStyle.cpp:109
void setPointRadius(int radius)
Set method for curve point radius.
Definition: CurveStyle.cpp:129
void setPointLineWidth(int width)
Set method for curve point perimeter line width.
Definition: CurveStyle.cpp:124
Details for a specific Point.
Definition: PointStyle.h:14
QString loadXml(QXmlStreamReader &reader)
Load from serialized xml. Returns the curve name.
Definition: CurveStyle.cpp:25
Container for LineStyle and PointStyle for one Curve.
Definition: CurveStyle.h:12
Details for a specific Line.
Definition: LineStyle.h:13
void setLineColor(ColorPalette lineColor)
Set method for line color in specified curve.
Definition: CurveStyle.cpp:99
void setPointColor(ColorPalette curveColor)
Set method curve point color in specified curve.
Definition: CurveStyle.cpp:119
void setLineWidth(int width)
Set method for line width in specified curve.
Definition: CurveStyle.cpp:114
void setPointStyle(const PointStyle &pointStyle)
Set method for PointStyle.
Definition: CurveStyle.cpp:139