35 #ifndef vtkQtTreeModelAdapter_h 36 #define vtkQtTreeModelAdapter_h 38 #include "vtkGUISupportQtModule.h" 82 const QModelIndexList qmil)
const override;
97 QVariant
data(
const QModelIndex &
index,
int role = Qt::DisplayRole)
const override;
98 bool setData(
const QModelIndex &
index,
const QVariant &
value,
int role = Qt::EditRole)
override;
99 Qt::ItemFlags flags(
const QModelIndex &
index)
const override;
100 QVariant headerData(
int section, Qt::Orientation
orientation,
101 int role = Qt::DisplayRole)
const override;
102 QModelIndex
index(
int row,
int column,
103 const QModelIndex &parent = QModelIndex())
const override;
104 QModelIndex parent(
const QModelIndex &
index)
const override;
105 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
106 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
114 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) 115 Qt::DropActions supportedDragActions()
const override;
117 Qt::DropActions supportedDragActions()
const;
119 QMimeData * mimeData (
const QModelIndexList & indexes )
const override;
120 QStringList mimeTypes ()
const override;
125 void GenerateVTKIndexToQtModelIndex(
vtkIdType vtk_index, QModelIndex qmodel_index);
QHash< QModelIndex, QVariant > IndexToDecoration
vtkAdjacentVertexIterator * ChildIterator
Adapts a tree to a Qt item model.
QVector< QModelIndex > VTKIndexToQtModelIndex
vtkTypeUInt32 vtkMTimeType
Iterates through adjacent vertices in a graph.
A node in a selection tree.
virtual vtkSelection * QModelIndexListToVTKIndexSelection(const QModelIndexList qmil) const =0
Selection conversion from VTK land to Qt land.
virtual void SetColorColumnName(const char *name)=0
virtual vtkDataObject * GetVTKDataObject() const =0
Set/Get the VTK data object as input to this adapter.
virtual QItemSelection VTKIndexSelectionToQItemSelection(vtkSelection *vtksel) const =0
Selection conversion from VTK land to Qt land.
Superclass for Qt model adapters.
virtual void SetKeyColumnName(const char *name)=0
virtual void SetVTKDataObject(vtkDataObject *data)=0
Set/Get the VTK data object as input to this adapter.
A rooted tree data structure.
general representation of visualization data