Container for LineStyle and PointStyle for one Curve.
More...
#include <CurveStyle.h>
Container for LineStyle and PointStyle for one Curve.
Definition at line 17 of file CurveStyle.h.
◆ CurveStyle() [1/2]
| CurveStyle::CurveStyle |
( |
| ) |
|
◆ CurveStyle() [2/2]
◆ lineStyle()
◆ loadXml()
| QString CurveStyle::loadXml |
( |
QXmlStreamReader & |
reader | ) |
|
Load from serialized xml. Returns the curve name.
Definition at line 30 of file CurveStyle.cpp.
38 QXmlStreamAttributes attributes = reader.attributes();
45 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
54 if ((reader.tokenType() == QXmlStreamReader::StartElement) &&
59 }
else if ((reader.tokenType() == QXmlStreamReader::StartElement) &
69 reader.raiseError (QObject::tr (
"Cannot read curve style data"));
◆ pointStyle()
◆ printStream()
| void CurveStyle::printStream |
( |
QString |
indentation, |
|
|
QTextStream & |
str |
|
) |
| const |
Debugging method that supports print method of this class and printStream method of some other class(es)
Definition at line 79 of file CurveStyle.cpp.
83 str << indentation <<
"CurveStyle\n";
◆ saveXml()
| void CurveStyle::saveXml |
( |
QXmlStreamWriter & |
writer, |
|
|
const QString & |
curveName |
|
) |
| const |
Serialize to xml.
Definition at line 92 of file CurveStyle.cpp.
102 writer.writeEndElement();
◆ setLineColor()
Set method for line color in specified curve.
Definition at line 104 of file CurveStyle.cpp.
◆ setLineConnectAs()
Set method for connect as method for lines in specified curve.
Definition at line 109 of file CurveStyle.cpp.
◆ setLineStyle()
| void CurveStyle::setLineStyle |
( |
const LineStyle & |
lineStyle | ) |
|
◆ setLineWidth()
| void CurveStyle::setLineWidth |
( |
int |
width | ) |
|
Set method for line width in specified curve.
Definition at line 119 of file CurveStyle.cpp.
◆ setPointColor()
Set method curve point color in specified curve.
Definition at line 124 of file CurveStyle.cpp.
◆ setPointLineWidth()
| void CurveStyle::setPointLineWidth |
( |
int |
width | ) |
|
Set method for curve point perimeter line width.
Definition at line 129 of file CurveStyle.cpp.
◆ setPointRadius()
| void CurveStyle::setPointRadius |
( |
int |
radius | ) |
|
◆ setPointShape()
| void CurveStyle::setPointShape |
( |
PointShape |
shape | ) |
|
Set method for curve point shape in specified curve.
Definition at line 139 of file CurveStyle.cpp.
◆ setPointStyle()
| void CurveStyle::setPointStyle |
( |
const PointStyle & |
pointStyle | ) |
|
The documentation for this class was generated from the following files:
const QString DOCUMENT_SERIALIZE_POINT_STYLE
void setRadius(unsigned int radius)
Set method for point radius.
void setShape(PointShape shape)
Set method for point shape.
LineStyle lineStyle() const
Get method for LineStyle.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setLineWidth(int width)
Set method for line width.
const QString DOCUMENT_SERIALIZE_CURVE_NAME
void loadXml(QXmlStreamReader &reader)
Load model from serialized xml. Returns the curve name.
void setPaletteColor(ColorPalette paletteColor)
Set method for point color.
const QString DOCUMENT_SERIALIZE_LINE_STYLE
void loadXml(QXmlStreamReader &reader)
Load model from serialized xml. Returns the curve name.
#define LOG4CPP_INFO_S(logger)
void saveXml(QXmlStreamWriter &writer) const
Serialize to stream.
PointStyle pointStyle() const
Get method for PointStyle.
void setCurveConnectAs(CurveConnectAs curveConnectAs)
Set connect as.
log4cpp::Category * mainCat
void saveXml(QXmlStreamWriter &writer) const
Serialize to stream.
const QString INDENTATION_DELTA
void setWidth(int width)
Set width of line.
void setPaletteColor(ColorPalette paletteColor)
Set method for line color.
const QString DOCUMENT_SERIALIZE_CURVE_STYLE
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...