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
CurveConnectAs
PointShape
Definition PointShape.h:12
void setLineColor(ColorPalette lineColor)
Set method for line color in specified curve.
void setPointRadius(int radius)
Set method for curve point radius.
LineStyle lineStyle() const
Get method for LineStyle.
void setPointLineWidth(int width)
Set method for curve point perimeter line width.
QString loadXml(QXmlStreamReader &reader)
Load from serialized xml. Returns the curve name.
void setLineConnectAs(CurveConnectAs curveConnectAs)
Set method for connect as method for lines in specified curve.
void setLineWidth(int width)
Set method for line width in specified curve.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setPointStyle(const PointStyle &pointStyle)
Set method for PointStyle.
void saveXml(QXmlStreamWriter &writer, const QString &curveName) const
Serialize to xml.
void setPointColor(ColorPalette curveColor)
Set method curve point color in specified curve.
CurveStyle()
Default constructor.
PointStyle pointStyle() const
Get method for PointStyle.
void setLineStyle(const LineStyle &lineStyle)
Set method for LineStyle.
void setPointShape(PointShape shape)
Set method for curve point shape in specified curve.
Details for a specific Line.
Definition LineStyle.h:20
Details for a specific Point.
Definition PointStyle.h:21