Engauge Digitizer
2
Geometry
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
16
class
GeometryModel
:
public
WindowModelBase
17
{
18
public
:
20
GeometryModel
();
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
32
private
:
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
WindowModelBase.h
GeometryModel::setPotentialExportAmbiguity
void setPotentialExportAmbiguity(const QVector< bool > &isPotentialExportAmbiguity)
Remember which rows could have ambiguities during export - these will be highlighted.
Definition:
GeometryModel.cpp:118
GeometryModel::data
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Override for special processing.
Definition:
GeometryModel.cpp:23
GeometryModel::setCurrentPointIdentifier
void setCurrentPointIdentifier(const QString &pointIdentifier)
Set the point identifier to be highlighted. Value is empty for no highlighting.
Definition:
GeometryModel.cpp:83
GeometryModel::~GeometryModel
virtual ~GeometryModel()
Definition:
GeometryModel.cpp:19
GeometryModel::GeometryModel
GeometryModel()
Single constructor.
Definition:
GeometryModel.cpp:14
WindowModelBase
Model for WindowTable.
Definition:
WindowModelBase.h:17
GeometryModel
Model that adds row highlighting according to the currently select point identifier.
Definition:
GeometryModel.h:15
Generated on Sat Jan 4 2020 12:00:00 for Engauge Digitizer by
1.8.16