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