32 #ifndef vtkQtTreeModelAdapter_h 33 #define vtkQtTreeModelAdapter_h 35 #include "vtkGUISupportQtModule.h" 79 const QModelIndexList qmil)
const VTK_OVERRIDE;
94 QVariant
data(
const QModelIndex &
index,
int role = Qt::DisplayRole)
const VTK_OVERRIDE;
95 bool setData(
const QModelIndex &index,
const QVariant &
value,
int role = Qt::EditRole) VTK_OVERRIDE;
96 Qt::ItemFlags flags(
const QModelIndex &index)
const VTK_OVERRIDE;
97 QVariant headerData(
int section, Qt::Orientation
orientation,
98 int role = Qt::DisplayRole)
const VTK_OVERRIDE;
99 QModelIndex
index(
int row,
int column,
100 const QModelIndex &parent = QModelIndex())
const VTK_OVERRIDE;
101 QModelIndex parent(
const QModelIndex &index)
const VTK_OVERRIDE;
102 int rowCount(
const QModelIndex &parent = QModelIndex())
const VTK_OVERRIDE;
103 int columnCount(
const QModelIndex &parent = QModelIndex())
const VTK_OVERRIDE;
111 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) 112 Qt::DropActions supportedDragActions()
const VTK_OVERRIDE;
114 Qt::DropActions supportedDragActions()
const;
116 QMimeData * mimeData (
const QModelIndexList & indexes )
const VTK_OVERRIDE;
117 QStringList mimeTypes ()
const VTK_OVERRIDE;
122 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