Engauge Digitizer 2
Loading...
Searching...
No Matches
CurveStyle.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef CURVE_STYLE_H
8#define CURVE_STYLE_H
9
10#include "LineStyle.h"
11#include "PointStyle.h"
12
13class QTextStream;
14class QXmlStreamReader;
15class QXmlStreamWriter;
16
19{
20public:
22 CurveStyle();
23
26 const PointStyle &pointStyle);
27
29 LineStyle lineStyle() const;
30
32 QString loadXml (QXmlStreamReader &reader);
33
35 PointStyle pointStyle() const;
36
38 void printStream (QString indentation,
39 QTextStream &str) const;
40
42 void saveXml(QXmlStreamWriter &writer,
43 const QString &curveName) const;
44
46 void setLineColor (ColorPalette lineColor);
47
49 void setLineConnectAs (CurveConnectAs curveConnectAs);
50
52 void setLineStyle (const LineStyle &lineStyle);
53
55 void setLineWidth (int width);
56
58 void setPointColor (ColorPalette curveColor);
59
61 void setPointLineWidth (int width);
62
64 void setPointRadius (int radius);
65
67 void setPointShape (PointShape shape);
68
71
72private:
73
74 PointStyle m_pointStyle;
75 LineStyle m_lineStyle;
76};
77
78#endif // CURVE_STYLE_H
ColorPalette
Definition: ColorPalette.h:12
CurveConnectAs
PointShape
Definition: PointShape.h:12
Container for LineStyle and PointStyle for one Curve.
Definition: CurveStyle.h:19
void setLineColor(ColorPalette lineColor)
Set method for line color in specified curve.
Definition: CurveStyle.cpp:105
void setPointRadius(int radius)
Set method for curve point radius.
Definition: CurveStyle.cpp:135
LineStyle lineStyle() const
Get method for LineStyle.
Definition: CurveStyle.cpp:26
void setPointLineWidth(int width)
Set method for curve point perimeter line width.
Definition: CurveStyle.cpp:130
QString loadXml(QXmlStreamReader &reader)
Load from serialized xml. Returns the curve name.
Definition: CurveStyle.cpp:31
void setLineConnectAs(CurveConnectAs curveConnectAs)
Set method for connect as method for lines in specified curve.
Definition: CurveStyle.cpp:110
void setLineWidth(int width)
Set method for line width in specified curve.
Definition: CurveStyle.cpp:120
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:80
void setPointStyle(const PointStyle &pointStyle)
Set method for PointStyle.
Definition: CurveStyle.cpp:145
void saveXml(QXmlStreamWriter &writer, const QString &curveName) const
Serialize to xml.
Definition: CurveStyle.cpp:93
void setPointColor(ColorPalette curveColor)
Set method curve point color in specified curve.
Definition: CurveStyle.cpp:125
CurveStyle()
Default constructor.
Definition: CurveStyle.cpp:15
PointStyle pointStyle() const
Get method for PointStyle.
Definition: CurveStyle.cpp:75
void setLineStyle(const LineStyle &lineStyle)
Set method for LineStyle.
Definition: CurveStyle.cpp:115
void setPointShape(PointShape shape)
Set method for curve point shape in specified curve.
Definition: CurveStyle.cpp:140
Details for a specific Line.
Definition: LineStyle.h:20
Details for a specific Point.
Definition: PointStyle.h:21