Engauge Digitizer 2
Loading...
Searching...
No Matches
DocumentModelPointMatch.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 DOCUMENT_MODEL_POINT_MATCH_H
8#define DOCUMENT_MODEL_POINT_MATCH_H
9
10#include "ColorPalette.h"
12
13class Document;
14class QTextStream;
15
18{
19public:
22
24 DocumentModelPointMatch(const Document &document);
25
28
31
32 virtual void loadXml(QXmlStreamReader &reader);
33
35 double maxPointSize() const;
36
39
42
45
47 void printStream (QString indentation,
48 QTextStream &str) const;
49
50 virtual void saveXml(QXmlStreamWriter &writer) const;
51
53 void setMaxPointSize (double maxPointSize);
54
57
60
63
64private:
65
66 double m_minPointSeparation;
67 double m_maxPointSize;
68 ColorPalette m_paletteColorAccepted;
69 ColorPalette m_paletteColorCandidate;
70 ColorPalette m_paletteColorRejected;
71};
72
73#endif // DOCUMENT_MODEL_POINT_MATCH_H
ColorPalette
DocumentModelAbstractBase()
Single constructor.
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.
Definition Document.h:44