Engauge Digitizer  2
 All Classes Functions Variables Typedefs Enumerations Friends Pages
DocumentModelPointMatch.h
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"
11 #include "DocumentModelAbstractBase.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 
38  ColorPalette paletteColorAccepted() const;
39 
41  ColorPalette paletteColorCandidate() const;
42 
44  ColorPalette paletteColorRejected() const;
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 
56  void setPaletteColorAccepted(ColorPalette paletteColorAccepted);
57 
59  void setPaletteColorCandidate(ColorPalette paletteColorCandidate);
60 
62  void setPaletteColorRejected(ColorPalette paletteColorRejected);
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
double maxPointSize() const
Get method for max point size.
Model for DlgSettingsPointMatch and CmdSettingsPointMatch.
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setPaletteColorCandidate(ColorPalette paletteColorCandidate)
Set method for candidate color.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
DocumentModelPointMatch & operator=(const DocumentModelPointMatch &other)
Assignment constructor.
void setMaxPointSize(double maxPointSize)
Set method for max point size.
DocumentModelPointMatch()
Default constructor.
Storage of one imported image and the data attached to that image.
Definition: Document.h:41
void setPaletteColorRejected(ColorPalette paletteColorRejected)
Set method for rejected color.
ColorPalette paletteColorCandidate() const
Get method for candidate color.
ColorPalette paletteColorRejected() const
Get method for rejected color.
ColorPalette paletteColorAccepted() const
Get method for accepted color.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setPaletteColorAccepted(ColorPalette paletteColorAccepted)
Set method for accepted color.