Go to the documentation of this file.
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;
101 int role = Qt::DisplayRole)
const override;
102 QModelIndex
index(
int row,
int column,
103 const QModelIndex &parent = QModelIndex())
const override;
105 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
106 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
115 QMimeData *
mimeData (
const QModelIndexList & indexes )
const override;
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
vtkAdjacentVertexIterator * ChildIterator
void SetKeyColumnName(const char *name) override
int rowCount(const QModelIndex &parent=QModelIndex()) const override
vtkMTimeType GetVTKDataObjectMTime() const
Get the stored VTK data object modification time of when the adaption to a Qt model was done.
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
QStringList mimeTypes() const override
data object that represents a "selection" in VTK.
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
QItemSelection VTKIndexSelectionToQItemSelection(vtkSelection *vtksel) const override
void GenerateVTKIndexToQtModelIndex(vtkIdType vtk_index, QModelIndex qmodel_index)
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Qt::ItemFlags flags(const QModelIndex &index) const override
QVector< QModelIndex > VTKIndexToQtModelIndex
A rooted tree data structure.
Superclass for Qt model adapters.
QHash< QModelIndex, QVariant > IndexToDecoration
~vtkQtTreeModelAdapter() override
QModelIndex parent(const QModelIndex &index) const override
Iterates through adjacent vertices in a graph.
vtkDataObject * GetVTKDataObject() const override
vtkQtTreeModelAdapter(QObject *parent=nullptr, vtkTree *tree=nullptr)
QMimeData * mimeData(const QModelIndexList &indexes) const override
void setTree(vtkTree *t)
Set up the model based on the current tree.
vtkSelection * QModelIndexListToVTKIndexSelection(const QModelIndexList qmil) const override
Selection conversion from VTK land to Qt land.
void SetColorColumnName(const char *name) override
general representation of visualization data
Adapts a tree to a Qt item model.
vtkTypeUInt32 vtkMTimeType
Qt::DropActions supportedDragActions() const override
If drag/drop is enabled in the view, the model will package up the current pedigreeid vtkSelection in...
void SetVTKDataObject(vtkDataObject *data) override
Set/Get the VTK data object as input to this adapter.