00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #ifndef DOCUMENT_MODEL_POINT_MATCH_H 00008 #define DOCUMENT_MODEL_POINT_MATCH_H 00009 00010 #include "ColorPalette.h" 00011 #include "DocumentModelAbstractBase.h" 00012 00013 class Document; 00014 class QTextStream; 00015 00017 class DocumentModelPointMatch : public DocumentModelAbstractBase 00018 { 00019 public: 00021 DocumentModelPointMatch(); 00022 00024 DocumentModelPointMatch(const Document &document); 00025 00027 DocumentModelPointMatch(const DocumentModelPointMatch &other); 00028 00030 DocumentModelPointMatch &operator=(const DocumentModelPointMatch &other); 00031 00032 virtual void loadXml(QXmlStreamReader &reader); 00033 00035 double maxPointSize() const; 00036 00038 ColorPalette paletteColorAccepted() const; 00039 00041 ColorPalette paletteColorCandidate() const; 00042 00044 ColorPalette paletteColorRejected() const; 00045 00047 void printStream (QString indentation, 00048 QTextStream &str) const; 00049 00050 virtual void saveXml(QXmlStreamWriter &writer) const; 00051 00053 void setMaxPointSize (double maxPointSize); 00054 00056 void setPaletteColorAccepted(ColorPalette paletteColorAccepted); 00057 00059 void setPaletteColorCandidate(ColorPalette paletteColorCandidate); 00060 00062 void setPaletteColorRejected(ColorPalette paletteColorRejected); 00063 00064 private: 00065 00066 double m_minPointSeparation; 00067 double m_maxPointSize; 00068 ColorPalette m_paletteColorAccepted; 00069 ColorPalette m_paletteColorCandidate; 00070 ColorPalette m_paletteColorRejected; 00071 }; 00072 00073 #endif // DOCUMENT_MODEL_POINT_MATCH_H