13#include <QXmlStreamWriter>
32 m_maxPointSize (document.modelPointMatch().
maxPointSize()),
63 QXmlStreamAttributes attributes = reader.attributes();
76 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
87 reader.raiseError (QObject::tr (
"Cannot read point match data"));
93 return m_maxPointSize;
98 return m_paletteColorAccepted;
103 return m_paletteColorCandidate;
108 return m_paletteColorRejected;
112 QTextStream &str)
const
114 str << indentation <<
"DocumentModelPointMatch\n";
118 str << indentation <<
"minPointSeparation=" << m_minPointSeparation <<
"\n";
119 str << indentation <<
"maxPointSize=" << m_maxPointSize <<
"\n";
120 str << indentation <<
"colorAccepted=" <<
colorPaletteToString (m_paletteColorAccepted) <<
"\n";
121 str << indentation <<
"colorCandidate=" <<
colorPaletteToString (m_paletteColorCandidate) <<
"\n";
122 str << indentation <<
"colorRejected=" <<
colorPaletteToString (m_paletteColorRejected) <<
"\n";
137 writer.writeEndElement();
QString colorPaletteToString(ColorPalette colorPalette)
const ColorPalette DEFAULT_COLOR_REJECTED
const ColorPalette DEFAULT_COLOR_ACCEPTED
const ColorPalette DEFAULT_COLOR_CANDIDATE
const double DEFAULT_MAX_POINT_SIZE
const double DEFAULT_MIN_POINT_SEPARATION
const QString DOCUMENT_SERIALIZE_POINT_MATCH_POINT_SIZE
const QString DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_CANDIDATE_STRING
const QString DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_REJECTED
const QString DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_ACCEPTED_STRING
const QString DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_REJECTED_STRING
const QString DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_ACCEPTED
const QString DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_CANDIDATE
const QString DOCUMENT_SERIALIZE_POINT_MATCH
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
void setMaxPointSize(double maxPointSize)
Set method for max point size.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
void setPaletteColorCandidate(ColorPalette paletteColorCandidate)
Set method for candidate color.
ColorPalette paletteColorRejected() const
Get method for rejected color.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setPaletteColorAccepted(ColorPalette paletteColorAccepted)
Set method for accepted color.
ColorPalette paletteColorCandidate() const
Get method for candidate color.
DocumentModelPointMatch & operator=(const DocumentModelPointMatch &other)
Assignment constructor.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
double maxPointSize() const
Get method for max point size.
DocumentModelPointMatch()
Default constructor.
void setPaletteColorRejected(ColorPalette paletteColorRejected)
Set method for rejected color.
ColorPalette paletteColorAccepted() const
Get method for accepted color.
Storage of one imported image and the data attached to that image.
#define LOG4CPP_INFO_S(logger)