Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Document
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
"
11
#include "
DocumentModelAbstractBase.h
"
12
13
class
Document
;
14
class
QTextStream;
15
17
class
DocumentModelPointMatch
:
public
DocumentModelAbstractBase
18
{
19
public
:
21
DocumentModelPointMatch
();
22
24
DocumentModelPointMatch
(
const
Document
&document);
25
27
DocumentModelPointMatch
(
const
DocumentModelPointMatch
&other);
28
30
DocumentModelPointMatch
&
operator=
(
const
DocumentModelPointMatch
&other);
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
ColorPalette.h
ColorPalette
ColorPalette
Definition
ColorPalette.h:12
DocumentModelAbstractBase.h
DocumentModelAbstractBase::DocumentModelAbstractBase
DocumentModelAbstractBase()
Single constructor.
Definition
DocumentModelAbstractBase.cpp:10
DocumentModelPointMatch::setMaxPointSize
void setMaxPointSize(double maxPointSize)
Set method for max point size.
Definition
DocumentModelPointMatch.cpp:140
DocumentModelPointMatch::loadXml
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
Definition
DocumentModelPointMatch.cpp:57
DocumentModelPointMatch::setPaletteColorCandidate
void setPaletteColorCandidate(ColorPalette paletteColorCandidate)
Set method for candidate color.
Definition
DocumentModelPointMatch.cpp:150
DocumentModelPointMatch::paletteColorRejected
ColorPalette paletteColorRejected() const
Get method for rejected color.
Definition
DocumentModelPointMatch.cpp:106
DocumentModelPointMatch::saveXml
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
Definition
DocumentModelPointMatch.cpp:125
DocumentModelPointMatch::setPaletteColorAccepted
void setPaletteColorAccepted(ColorPalette paletteColorAccepted)
Set method for accepted color.
Definition
DocumentModelPointMatch.cpp:145
DocumentModelPointMatch::paletteColorCandidate
ColorPalette paletteColorCandidate() const
Get method for candidate color.
Definition
DocumentModelPointMatch.cpp:101
DocumentModelPointMatch::operator=
DocumentModelPointMatch & operator=(const DocumentModelPointMatch &other)
Assignment constructor.
Definition
DocumentModelPointMatch.cpp:47
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:111
DocumentModelPointMatch::maxPointSize
double maxPointSize() const
Get method for max point size.
Definition
DocumentModelPointMatch.cpp:91
DocumentModelPointMatch::DocumentModelPointMatch
DocumentModelPointMatch()
Default constructor.
Definition
DocumentModelPointMatch.cpp:22
DocumentModelPointMatch::setPaletteColorRejected
void setPaletteColorRejected(ColorPalette paletteColorRejected)
Set method for rejected color.
Definition
DocumentModelPointMatch.cpp:155
DocumentModelPointMatch::paletteColorAccepted
ColorPalette paletteColorAccepted() const
Get method for accepted color.
Definition
DocumentModelPointMatch.cpp:96
Document
Storage of one imported image and the data attached to that image.
Definition
Document.h:44
Generated on
for Engauge Digitizer by
1.17.0