Engauge Digitizer 2
Loading...
Searching...
No Matches
LineStyle.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 LINE_STYLE_H
8#define LINE_STYLE_H
9
10#include "ColorPalette.h"
11#include "CurveConnectAs.h"
12#include <QColor>
13
14class QTextStream;
17
20{
21public:
23 LineStyle ();
24
26 LineStyle (unsigned int width,
29
31 LineStyle (const LineStyle &other);
32
35
38
41
43 static LineStyle defaultGraphCurve (int index);
44
47
50
53 QTextStream &str) const;
54
56 void saveXml(QXmlStreamWriter &writer) const;
57
60
63
65 void setWidth (int width);
66
68 unsigned int width () const;
69
70private:
71
72 unsigned int m_width;
73 ColorPalette m_paletteColor;
74 CurveConnectAs m_curveConnectAs;
75};
76
77#endif // LINE_STYLE_H
ColorPalette
CurveConnectAs
const int INNER_RADIUS_MIN
Details for a specific Line.
Definition LineStyle.h:20
static LineStyle defaultAxesCurve()
Initial default for axes curve.
Definition LineStyle.cpp:68
void saveXml(QXmlStreamWriter &writer) const
Serialize to stream.
void setCurveConnectAs(CurveConnectAs curveConnectAs)
Set connect as.
CurveConnectAs curveConnectAs() const
Get method for connect type.
Definition LineStyle.cpp:63
unsigned int width() const
Width of line.
ColorPalette paletteColor() const
Line color.
LineStyle()
Default constructor only for use when this class is being stored by a container that requires the def...
Definition LineStyle.cpp:26
static LineStyle defaultGraphCurve(int index)
Initial default for index'th graph curve.
Definition LineStyle.cpp:84
void setWidth(int width)
Set width of line.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setPaletteColor(ColorPalette paletteColor)
Set method for line color.
void loadXml(QXmlStreamReader &reader)
Load model from serialized xml. Returns the curve name.
LineStyle & operator=(const LineStyle &other)
Assignment operator.
Definition LineStyle.cpp:54