32#ifndef vtkQtAnnotationLayersModelAdapter_h
33#define vtkQtAnnotationLayersModelAdapter_h
35#include "vtkGUISupportQtModule.h"
63 const QModelIndexList qmil)
const;
78 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
79 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
80 Qt::ItemFlags
flags(
const QModelIndex& index)
const override;
82 int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
83 QModelIndex
index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const override;
84 QModelIndex
parent(
const QModelIndex& index)
const override;
85 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
86 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
99 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.
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Set up the model based on the current table.
void SetKeyColumnName(const char *name) override
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Set up the model based on the current table.
virtual QItemSelection VTKAnnotationLayersToQItemSelection(vtkAnnotationLayers *vtkann) const
Selection conversion from VTK land to Qt land.
vtkQtAnnotationLayersModelAdapter(vtkAnnotationLayers *ann, QObject *parent=nullptr)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Set up the model based on the current table.
void SetColorColumnName(const char *name) override
Qt::ItemFlags flags(const QModelIndex &index) const override
Set up the model based on the current table.
~vtkQtAnnotationLayersModelAdapter() override
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Set up the model based on the current table.
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Set up the model based on the current table.
void setAnnotationLayers(vtkAnnotationLayers *annotations)
Set up the model based on the current table.
vtkDataObject * GetVTKDataObject() const override
Set/Get the VTK data object as input to this adapter.
virtual vtkAnnotationLayers * QModelIndexListToVTKAnnotationLayers(const QModelIndexList qmil) const
Selection conversion from VTK land to Qt land.
void SetVTKDataObject(vtkDataObject *data) override
Set/Get the VTK data object as input to this adapter.
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
Set up the model based on the current table.
vtkSelection * QModelIndexListToVTKIndexSelection(const QModelIndexList qmil) const override
Selection conversion from VTK land to Qt land.
vtkQtAnnotationLayersModelAdapter(QObject *parent=nullptr)
QModelIndex parent(const QModelIndex &index) const override
Set up the model based on the current table.
vtkAnnotationLayers * annotationLayers() const
Set up the model based on the current table.
QItemSelection VTKIndexSelectionToQItemSelection(vtkSelection *vtksel) const override
Selection conversion from VTK land to Qt land.
data object that represents a "selection" in VTK.