void DocumentModelPointMatch::printStream(QString indentation, QTextStream &str) const { str << indentation << "DocumentModelPointMatch\n"; indentation += INDENTATION_DELTA; str << indentation << "minPointSeparation=" << m_minPointSeparation << "\n"; str << indentation << "maxPointSize=" << m_maxPointSize << "\n"; str << indentation << "colorAccepted=" << colorPaletteToString (m_paletteColorAccepted) << "\n"; str << indentation << "colorCandidate=" << colorPaletteToString (m_paletteColorCandidate) << "\n"; str << indentation << "colorRejected=" << colorPaletteToString (m_paletteColorRejected) << "\n"; }
void DocumentModelPointMatch::saveXml(QXmlStreamWriter &writer) const { LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelPointMatch::saveXml"; writer.writeStartElement(DOCUMENT_SERIALIZE_POINT_MATCH); writer.writeAttribute(DOCUMENT_SERIALIZE_POINT_MATCH_POINT_SIZE, QString::number (m_maxPointSize)); writer.writeAttribute(DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_ACCEPTED, QString::number (m_paletteColorAccepted)); writer.writeAttribute(DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_ACCEPTED_STRING, colorPaletteToString (m_paletteColorAccepted)); writer.writeAttribute(DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_CANDIDATE, QString::number (m_paletteColorCandidate)); writer.writeAttribute(DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_CANDIDATE_STRING, colorPaletteToString (m_paletteColorCandidate)); writer.writeAttribute(DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_REJECTED, QString::number (m_paletteColorRejected)); writer.writeAttribute(DOCUMENT_SERIALIZE_POINT_MATCH_COLOR_REJECTED_STRING, colorPaletteToString (m_paletteColorRejected)); writer.writeEndElement(); }
void LineStyle::saveXml(QXmlStreamWriter &writer) const { LOG4CPP_INFO_S ((*mainCat)) << "LineStyle::saveXml"; writer.writeStartElement(DOCUMENT_SERIALIZE_LINE_STYLE); writer.writeAttribute (DOCUMENT_SERIALIZE_LINE_STYLE_WIDTH, QString::number(m_width)); writer.writeAttribute (DOCUMENT_SERIALIZE_LINE_STYLE_COLOR, QString::number (m_paletteColor)); writer.writeAttribute (DOCUMENT_SERIALIZE_LINE_STYLE_COLOR_STRING, colorPaletteToString (m_paletteColor)); writer.writeAttribute (DOCUMENT_SERIALIZE_LINE_STYLE_CONNECT_AS, QString::number (m_curveConnectAs)); writer.writeAttribute (DOCUMENT_SERIALIZE_LINE_STYLE_CONNECT_AS_STRING, curveConnectAsToString (m_curveConnectAs)); writer.writeEndElement(); }
void PointStyle::printStream(QString indentation, QTextStream &str) const { str << indentation << "PointStyle\n"; indentation += INDENTATION_DELTA; str << indentation << pointShapeToString (m_shape) << "\n"; str << indentation << "radius=" << m_radius << "\n"; str << indentation << "lineWidth=" << m_lineWidth << "\n"; str << indentation << "color=" << colorPaletteToString (m_paletteColor) << "\n"; }
void PointStyle::saveXml(QXmlStreamWriter &writer) const { LOG4CPP_INFO_S ((*mainCat)) << "PointStyle::saveXml"; writer.writeStartElement(DOCUMENT_SERIALIZE_POINT_STYLE); writer.writeAttribute (DOCUMENT_SERIALIZE_POINT_STYLE_RADIUS, QString::number (m_radius)); writer.writeAttribute (DOCUMENT_SERIALIZE_POINT_STYLE_LINE_WIDTH, QString::number (m_lineWidth)); writer.writeAttribute (DOCUMENT_SERIALIZE_POINT_STYLE_COLOR, QString::number (m_paletteColor)); writer.writeAttribute (DOCUMENT_SERIALIZE_POINT_STYLE_COLOR_STRING, colorPaletteToString (m_paletteColor)); writer.writeAttribute (DOCUMENT_SERIALIZE_POINT_STYLE_SHAPE, QString::number (m_shape)); writer.writeAttribute (DOCUMENT_SERIALIZE_POINT_STYLE_SHAPE_STRING, pointShapeToString (m_shape)); writer.writeEndElement(); }
void DocumentModelSegments::printStream(QString indentation, QTextStream &str) const { str << indentation << "DocumentModelSegments\n"; indentation += INDENTATION_DELTA; str << indentation << "pointSeparation=" << m_pointSeparation << "\n"; str << indentation << "minLength=" << m_minLength << "\n"; str << indentation << "fillCorners=" << (m_fillCorners ? "true" : "false") << "\n"; str << indentation << "lineWidth=" << m_lineWidth << "\n"; str << indentation << "lineColor=" << colorPaletteToString (m_lineColor) << "\n"; }
void DocumentModelSegments::saveXml(QXmlStreamWriter &writer) const { LOG4CPP_INFO_S ((*mainCat)) << "DocumentModelSegments::saveXml"; writer.writeStartElement(DOCUMENT_SERIALIZE_SEGMENTS); writer.writeAttribute(DOCUMENT_SERIALIZE_SEGMENTS_POINT_SEPARATION, QString::number (m_pointSeparation)); writer.writeAttribute(DOCUMENT_SERIALIZE_SEGMENTS_MIN_LENGTH, QString::number (m_minLength)); writer.writeAttribute(DOCUMENT_SERIALIZE_SEGMENTS_FILL_CORNERS, m_fillCorners ? DOCUMENT_SERIALIZE_BOOL_TRUE : DOCUMENT_SERIALIZE_BOOL_FALSE); writer.writeAttribute(DOCUMENT_SERIALIZE_SEGMENTS_LINE_WIDTH, QString::number (m_lineWidth)); writer.writeAttribute(DOCUMENT_SERIALIZE_SEGMENTS_LINE_COLOR, QString::number (m_lineColor)); writer.writeAttribute(DOCUMENT_SERIALIZE_SEGMENTS_LINE_COLOR_STRING, colorPaletteToString (m_lineColor)); writer.writeEndElement(); }