Engauge Digitizer  2
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 
13 class Document;
14 class QTextStream;
15 
18 {
19 public:
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 
64 private:
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
DocumentModelPointMatch::paletteColorAccepted
ColorPalette paletteColorAccepted() const
Get method for accepted color.
Definition: DocumentModelPointMatch.cpp:95
DocumentModelPointMatch::loadXml
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
Definition: DocumentModelPointMatch.cpp:56
DocumentModelAbstractBase.h
ColorPalette
ColorPalette
Definition: ColorPalette.h:11
DocumentModelPointMatch::operator=
DocumentModelPointMatch & operator=(const DocumentModelPointMatch &other)
Assignment constructor.
Definition: DocumentModelPointMatch.cpp:46
DocumentModelPointMatch::printStream
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
Definition: DocumentModelPointMatch.cpp:110
Document
Storage of one imported image and the data attached to that image.
Definition: Document.h:40
DocumentModelPointMatch::maxPointSize
double maxPointSize() const
Get method for max point size.
Definition: DocumentModelPointMatch.cpp:90
DocumentModelPointMatch::setMaxPointSize
void setMaxPointSize(double maxPointSize)
Set method for max point size.
Definition: DocumentModelPointMatch.cpp:139
DocumentModelPointMatch::paletteColorRejected
ColorPalette paletteColorRejected() const
Get method for rejected color.
Definition: DocumentModelPointMatch.cpp:105
DocumentModelAbstractBase
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
Definition: DocumentModelAbstractBase.h:15
DocumentModelPointMatch::setPaletteColorCandidate
void setPaletteColorCandidate(ColorPalette paletteColorCandidate)
Set method for candidate color.
Definition: DocumentModelPointMatch.cpp:149
DocumentModelPointMatch::DocumentModelPointMatch
DocumentModelPointMatch()
Default constructor.
Definition: DocumentModelPointMatch.cpp:21
DocumentModelPointMatch
Model for DlgSettingsPointMatch and CmdSettingsPointMatch.
Definition: DocumentModelPointMatch.h:16
DocumentModelPointMatch::paletteColorCandidate
ColorPalette paletteColorCandidate() const
Get method for candidate color.
Definition: DocumentModelPointMatch.cpp:100
ColorPalette.h
DocumentModelPointMatch::setPaletteColorAccepted
void setPaletteColorAccepted(ColorPalette paletteColorAccepted)
Set method for accepted color.
Definition: DocumentModelPointMatch.cpp:144
DocumentModelPointMatch::setPaletteColorRejected
void setPaletteColorRejected(ColorPalette paletteColorRejected)
Set method for rejected color.
Definition: DocumentModelPointMatch.cpp:154
DocumentModelPointMatch::saveXml
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
Definition: DocumentModelPointMatch.cpp:124