 |
VTK
9.0.1
|
Go to the documentation of this file.
32 #ifndef vtkQtTreeModelAdapter_h
33 #define vtkQtTreeModelAdapter_h
35 #include "vtkGUISupportQtModule.h"
92 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const override;
93 bool setData(
const QModelIndex&
index,
const QVariant&
value,
int role = Qt::EditRole)
override;
94 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
96 int section, Qt::Orientation
orientation,
int role = Qt::DisplayRole)
const override;
97 QModelIndex
index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
99 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
100 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
109 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.