32 #ifndef pqDataAssemblyTreeModel_h 33 #define pqDataAssemblyTreeModel_h 36 #include <QAbstractItemModel> 37 #include <QScopedPointer> 39 class vtkDataAssembly;
54 typedef QAbstractItemModel Superclass;
63 void setDataAssembly(vtkDataAssembly* assembly);
64 vtkDataAssembly* dataAssembly()
const;
70 void setUserCheckable(
bool);
86 void setCheckedNodes(
const QStringList& paths);
87 QStringList checkedNodes()
const;
94 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
95 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
96 QModelIndex
index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
97 QModelIndex parent(
const QModelIndex& index = QModelIndex())
const override;
98 QVariant
data(
const QModelIndex& index,
int role)
const override;
99 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
100 bool setData(
const QModelIndex& index,
const QVariant&
value,
int role)
override;
109 void modelDataChanged(
int role);
112 void fireDataChanged(
const QModelIndex& root,
const QVector<int>& roles);
118 QScopedPointer<pqInternals> Internals;
#define PQCOMPONENTS_EXPORT
bool userCheckable() const
Get whether the model is user-checkable.
QAbstractItemModel implementation for vtkDataAssembly.