32 #ifndef vtkQtAnnotationLayersModelAdapter_h
33 #define vtkQtAnnotationLayersModelAdapter_h
35 #include "vtkConfigure.h"
36 #include "vtkGUISupportQtModule.h"
64 const QModelIndexList qmil)
const;
68 const QModelIndexList qmil)
const;
82 QVariant
data(
const QModelIndex &
index,
int role = Qt::DisplayRole)
const;
86 int role = Qt::DisplayRole)
const;
87 QModelIndex
index(
int row,
int column,
88 const QModelIndex &parent = QModelIndex())
const;
90 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
91 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
104 bool noAnnotationsCheck()
const;
Stores a ordered collection of annotation sets.
general representation of visualization data
Superclass for Qt model adapters.
Adapts annotations to a Qt item model.
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
vtkQtAnnotationLayersModelAdapter(QObject *parent=0)
int rowCount(const QModelIndex &parent=QModelIndex()) const
virtual void SetKeyColumnName(const char *name)
virtual QItemSelection VTKAnnotationLayersToQItemSelection(vtkAnnotationLayers *vtkann) const
~vtkQtAnnotationLayersModelAdapter()
virtual QItemSelection VTKIndexSelectionToQItemSelection(vtkSelection *vtksel) const
virtual vtkDataObject * GetVTKDataObject() const
virtual vtkAnnotationLayers * QModelIndexListToVTKAnnotationLayers(const QModelIndexList qmil) const
Selection conversion from VTK land to Qt land.
virtual void SetVTKDataObject(vtkDataObject *data)
Set/Get the VTK data object as input to this adapter.
vtkQtAnnotationLayersModelAdapter(vtkAnnotationLayers *ann, QObject *parent=0)
vtkAnnotationLayers * annotationLayers() const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
void setAnnotationLayers(vtkAnnotationLayers *annotations)
Set up the model based on the current table.
virtual void SetColorColumnName(const char *name)
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
int columnCount(const QModelIndex &parent=QModelIndex()) const
virtual vtkSelection * QModelIndexListToVTKIndexSelection(const QModelIndexList qmil) const
Selection conversion from VTK land to Qt land.
QModelIndex parent(const QModelIndex &index) const
Qt::ItemFlags flags(const QModelIndex &index) const
A node in a selection tree.