Engauge Digitizer 2
Loading...
Searching...
No Matches
GeometryModel.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2016 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 GEOMETRY_MODEL_H
8#define GEOMETRY_MODEL_H
9
10#include <QHash>
11#include <QString>
12#include <QVector>
13#include "WindowModelBase.h"
14
17{
18public:
21 virtual ~GeometryModel ();
22
24 virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
25
27 void setCurrentPointIdentifier (const QString &pointIdentifier);
28
30 void setPotentialExportAmbiguity (const QVector<bool> &isPotentialExportAmbiguity);
31
32private:
33
34 int rowToBeHighlighted () const;
35
36 int m_rowToBeHighlighted;
37 QString m_pointIdentifier; // Point to be higlighted. Empty if none
38
39 // Row numbers with ambiguities
40 QHash<int, bool> m_ambiguousRows;
41};
42
43#endif // GEOMETRY_MODEL_H
GeometryModel()
Single constructor.
void setCurrentPointIdentifier(const QString &pointIdentifier)
Set the point identifier to be highlighted. Value is empty for no highlighting.
void setPotentialExportAmbiguity(const QVector< bool > &isPotentialExportAmbiguity)
Remember which rows could have ambiguities during export - these will be highlighted.
virtual ~GeometryModel()
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Override for special processing.
WindowModelBase()
Single constructor.