35 #include <QAbstractItemModel> 64 typedef QAbstractItemModel Superclass;
81 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
90 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
99 bool hasChildren(
const QModelIndex& parent = QModelIndex())
const override;
110 QModelIndex
index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
119 QModelIndex parent(
const QModelIndex& index)
const override;
129 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
141 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
148 bool setData(
const QModelIndex& index,
const QVariant&
value,
int role = Qt::EditRole)
override;
156 QModelIndex hierarchyIndex(
const QString& hierarchyName)
const;
158 QVariant
headerData(
int, Qt::Orientation,
int role = Qt::DisplayRole)
const override 160 if (role == Qt::DisplayRole)
170 QList<QVariant> status(
const QString& hierarchyName)
const;
171 void setStatus(
const QString& hierarchyName,
const QList<QVariant>& values);
175 void domainModified();
180 QModelIndex makeIndex(
vtkIdType vertexid)
const;
189 void checkStatusChanged();
202 void checkStateUpdated(
vtkObject* caller,
unsigned long eventid,
void* calldata);
218 int childrenCount(
vtkIdType vertexid)
const;
224 void collectLeaves(
vtkIdType vertexid, std::set<vtkIdType>& list);
#define PQCOMPONENTS_EXPORT
QMap< vtkIdType, QModelIndex > * ModelIndexCache
Cache used by makeIndex() to avoid iterating over the edges each time.
is a specialization for vtkSMArraySelectionDomain with access to the SIL.
is a helper for to work with SILs.
QMap< QString, std::set< vtkIdType > > HierarchyVertexIds
This map keeps a list of vertex ids that refer to the leaves in the hierarchy.
QAbstractItemModel for legacy SIL (vtkGraph-based SIL)
QVariant headerData(int, Qt::Orientation, int role=Qt::DisplayRole) const override
unsigned long SILDomainObserverId
QMap< QString, QModelIndex > Hierarchies
vtkSmartPointer< vtkSMSILDomain > SILDomain