35 #ifndef vtkQtTreeModelAdapter_h
36 #define vtkQtTreeModelAdapter_h
38 #include "vtkGUISupportQtModule.h"
82 const QModelIndexList qmil)
const;
97 QVariant
data(
const QModelIndex &
index,
int role = Qt::DisplayRole)
const;
101 int role = Qt::DisplayRole)
const;
102 QModelIndex
index(
int row,
int column,
103 const QModelIndex &parent = QModelIndex())
const;
105 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
115 virtual QMimeData *
mimeData (
const QModelIndexList & indexes )
const;
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.
vtkAdjacentVertexIterator * ChildIterator
Qt::ItemFlags flags(const QModelIndex &index) const
virtual void SetVTKDataObject(vtkDataObject *data)
Set/Get the VTK data object as input to this adapter.
vtkQtTreeModelAdapter(QObject *parent=0, vtkTree *tree=0)
void setTree(vtkTree *t)
Set up the model based on the current tree.
QHash< QModelIndex, QVariant > IndexToDecoration
virtual QItemSelection VTKIndexSelectionToQItemSelection(vtkSelection *vtksel) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
vtkMTimeType GetVTKDataObjectMTime() const
Get the stored VTK data object modification time of when the adaption to a Qt model was done.
void GenerateVTKIndexToQtModelIndex(vtkIdType vtk_index, QModelIndex qmodel_index)
virtual QStringList mimeTypes() const
int columnCount(const QModelIndex &parent=QModelIndex()) const
QModelIndex parent(const QModelIndex &index) const
Qt::DropActions supportedDragActions() const
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)
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
virtual vtkDataObject * GetVTKDataObject() const
virtual void SetKeyColumnName(const char *name)
virtual void SetColorColumnName(const char *name)
virtual vtkSelection * QModelIndexListToVTKIndexSelection(const QModelIndexList qmil) const
Selection conversion from VTK land to Qt land.
QVector< QModelIndex > VTKIndexToQtModelIndex
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
A node in a selection tree.
A rooted tree data structure.
vtkTypeUInt64 vtkMTimeType