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 Qt::DropActions supportedDragActions()
const override;
115 QMimeData * mimeData (
const QModelIndexList & indexes )
const override;
116 QStringList mimeTypes ()
const override;
121 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.
data object that represents a "selection" in VTK.
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