13#include <QXmlStreamWriter>
24 m_fillCorners (
false),
31 m_pointSeparation (document.modelSegments().pointSeparation()),
32 m_minLength (document.modelSegments().minLength()),
33 m_fillCorners (document.modelSegments().fillCorners()),
34 m_lineWidth (document.modelSegments().lineWidth()),
35 m_lineColor (document.modelSegments().lineColor())
40 m_pointSeparation (
other.pointSeparation()),
41 m_minLength (
other.minLength()),
42 m_fillCorners (
other.fillCorners ()),
43 m_lineWidth (
other.lineWidth()),
44 m_lineColor (
other.lineColor())
50 m_pointSeparation =
other.pointSeparation();
51 m_minLength =
other.minLength();
52 m_fillCorners =
other.fillCorners ();
53 m_lineWidth =
other.lineWidth();
54 m_lineColor =
other.lineColor();
81 while ((
reader.tokenType() != QXmlStreamReader::EndElement) ||
91 reader.raiseError(QObject::tr (
"Cannot read segment data"));
102 return m_pointSeparation;
112 str <<
indentation <<
"pointSeparation=" << m_pointSeparation <<
"\n";
114 str <<
indentation <<
"fillCorners=" << (m_fillCorners ?
"true" :
"false") <<
"\n";
QString colorPaletteToString(ColorPalette colorPalette)
const int INNER_RADIUS_MIN
const ColorPalette DEFAULT_LINE_COLOR
const double DEFAULT_LINE_WIDTH
const double DEFAULT_MIN_LENGTH
const double DEFAULT_POINT_SEPARATION
const QString DOCUMENT_SERIALIZE_SEGMENTS_MIN_LENGTH
const QString DOCUMENT_SERIALIZE_SEGMENTS_LINE_COLOR
const QString DOCUMENT_SERIALIZE_SEGMENTS_POINT_SEPARATION
const QString DOCUMENT_SERIALIZE_SEGMENTS
const QString DOCUMENT_SERIALIZE_SEGMENTS_LINE_WIDTH
const QString DOCUMENT_SERIALIZE_SEGMENTS_LINE_COLOR_STRING
const QString DOCUMENT_SERIALIZE_SEGMENTS_FILL_CORNERS
const QString DOCUMENT_SERIALIZE_BOOL_TRUE
const QString DOCUMENT_SERIALIZE_BOOL_FALSE
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
Model for DlgSettingsSegments and CmdSettingsSegments.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
DocumentModelSegments()
Default constructor.
void setFillCorners(bool fillCorners)
Set method for fill corners.
void setPointSeparation(double pointSeparation)
Set method for point separation.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
DocumentModelSegments & operator=(const DocumentModelSegments &other)
Assignment constructor.
ColorPalette lineColor() const
Get method for line color.
double minLength() const
Get method for min length.
void setLineColor(ColorPalette lineColor)
Set method for line color.
bool fillCorners() const
Get method for fill corners.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setLineWidth(double lineWidth)
Set method for line width.
double pointSeparation() const
Get method for point separation.
double lineWidth() const
Get method for line width.
void setMinLength(double minLength)
Set method for min length.
Storage of one imported image and the data attached to that image.
#define LOG4CPP_INFO_S(logger)