Go to the documentation of this file.
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 override;
82 QVariant
data(
const QModelIndex &
index,
int role = Qt::DisplayRole)
const override;
83 bool setData(
const QModelIndex &
index,
const QVariant &
value,
int role = Qt::EditRole)
override;
84 Qt::ItemFlags
flags(
const QModelIndex &
index)
const override;
86 int role = Qt::DisplayRole)
const override;
87 QModelIndex
index(
int row,
int column,
88 const QModelIndex &parent = QModelIndex())
const override;
90 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
91 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
104 bool noAnnotationsCheck()
const;
vtkDataObject * GetVTKDataObject() const override
Adapts annotations to a Qt item model.
virtual QItemSelection VTKAnnotationLayersToQItemSelection(vtkAnnotationLayers *vtkann) const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
void SetKeyColumnName(const char *name) override
vtkQtAnnotationLayersModelAdapter(vtkAnnotationLayers *ann, QObject *parent=nullptr)
data object that represents a "selection" in VTK.
vtkQtAnnotationLayersModelAdapter(QObject *parent=nullptr)
void SetVTKDataObject(vtkDataObject *data) override
Set/Get the VTK data object as input to this adapter.
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Qt::ItemFlags flags(const QModelIndex &index) const override
Stores a ordered collection of annotation sets.
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Superclass for Qt model adapters.
vtkSelection * QModelIndexListToVTKIndexSelection(const QModelIndexList qmil) const override
Selection conversion from VTK land to Qt land.
int columnCount(const QModelIndex &parent=QModelIndex()) const override
void setAnnotationLayers(vtkAnnotationLayers *annotations)
Set up the model based on the current table.
QModelIndex parent(const QModelIndex &index) const override
void SetColorColumnName(const char *name) override
int rowCount(const QModelIndex &parent=QModelIndex()) const override
vtkAnnotationLayers * annotationLayers() const
QItemSelection VTKIndexSelectionToQItemSelection(vtkSelection *vtksel) const override
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
virtual vtkAnnotationLayers * QModelIndexListToVTKAnnotationLayers(const QModelIndexList qmil) const
Selection conversion from VTK land to Qt land.
~vtkQtAnnotationLayersModelAdapter() override
general representation of visualization data