Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Curve
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
13
class
QTextStream;
14
class
QXmlStreamReader;
15
class
QXmlStreamWriter;
16
18
class
CurveStyle
19
{
20
public
:
22
CurveStyle
();
23
25
CurveStyle
(
const
LineStyle
&
lineStyle
,
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
70
void
setPointStyle
(
const
PointStyle
&
pointStyle
);
71
72
private
:
73
74
PointStyle
m_pointStyle;
75
LineStyle
m_lineStyle;
76
};
77
78
#endif
// CURVE_STYLE_H
ColorPalette
ColorPalette
Definition
ColorPalette.h:12
CurveConnectAs
CurveConnectAs
Definition
CurveConnectAs.h:12
LineStyle.h
PointShape
PointShape
Definition
PointShape.h:12
PointStyle.h
CurveStyle::setLineColor
void setLineColor(ColorPalette lineColor)
Set method for line color in specified curve.
Definition
CurveStyle.cpp:105
CurveStyle::setPointRadius
void setPointRadius(int radius)
Set method for curve point radius.
Definition
CurveStyle.cpp:135
CurveStyle::lineStyle
LineStyle lineStyle() const
Get method for LineStyle.
Definition
CurveStyle.cpp:26
CurveStyle::setPointLineWidth
void setPointLineWidth(int width)
Set method for curve point perimeter line width.
Definition
CurveStyle.cpp:130
CurveStyle::loadXml
QString loadXml(QXmlStreamReader &reader)
Load from serialized xml. Returns the curve name.
Definition
CurveStyle.cpp:31
CurveStyle::setLineConnectAs
void setLineConnectAs(CurveConnectAs curveConnectAs)
Set method for connect as method for lines in specified curve.
Definition
CurveStyle.cpp:110
CurveStyle::setLineWidth
void setLineWidth(int width)
Set method for line width in specified curve.
Definition
CurveStyle.cpp:120
CurveStyle::printStream
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
CurveStyle::setPointStyle
void setPointStyle(const PointStyle &pointStyle)
Set method for PointStyle.
Definition
CurveStyle.cpp:145
CurveStyle::saveXml
void saveXml(QXmlStreamWriter &writer, const QString &curveName) const
Serialize to xml.
Definition
CurveStyle.cpp:93
CurveStyle::setPointColor
void setPointColor(ColorPalette curveColor)
Set method curve point color in specified curve.
Definition
CurveStyle.cpp:125
CurveStyle::CurveStyle
CurveStyle()
Default constructor.
Definition
CurveStyle.cpp:15
CurveStyle::pointStyle
PointStyle pointStyle() const
Get method for PointStyle.
Definition
CurveStyle.cpp:75
CurveStyle::setLineStyle
void setLineStyle(const LineStyle &lineStyle)
Set method for LineStyle.
Definition
CurveStyle.cpp:115
CurveStyle::setPointShape
void setPointShape(PointShape shape)
Set method for curve point shape in specified curve.
Definition
CurveStyle.cpp:140
LineStyle
Details for a specific Line.
Definition
LineStyle.h:20
PointStyle
Details for a specific Point.
Definition
PointStyle.h:21
Generated on
for Engauge Digitizer by
1.17.0