19#ifndef vtkQtAbstractModelAdapter_h
20#define vtkQtAbstractModelAdapter_h
22#include "vtkGUISupportQtModule.h"
23#include <QAbstractItemModel>
24#include <QItemSelection>
26VTK_ABI_NAMESPACE_BEGIN
43 : QAbstractItemModel(p)
106 this->DataStartColumn = c1;
107 this->DataEndColumn = c2;
117 QAbstractItemModel::beginResetModel();
118 QAbstractItemModel::endResetModel();
general representation of visualization data
Superclass for Qt model adapters.
virtual int ModelColumnToFieldDataColumn(int col) const
Map a column index in the QAbstractItemModel to a vtkTable column.
virtual void SetViewType(int type)
Set/Get the view type.
virtual void SetColorColumn(int col)
Set/Get the column storing the rgba color values for each row.
virtual void SetVTKDataObject(vtkDataObject *data)=0
Set/Get the VTK data object as input to this adapter.
virtual int GetKeyColumn()
virtual QItemSelection VTKIndexSelectionToQItemSelection(vtkSelection *vtksel) const =0
Selection conversion from VTK land to Qt land.
virtual void SetKeyColumnName(const char *name)=0
virtual void SetKeyColumn(int col)
Set/Get the key column.
virtual vtkSelection * QModelIndexListToVTKIndexSelection(QModelIndexList qmil) const =0
Selection conversion from VTK land to Qt land.
virtual vtkDataObject * GetVTKDataObject() const =0
Set/Get the VTK data object as input to this adapter.
virtual void SetColorColumnName(const char *name)=0
virtual void SetDataColumnRange(int c1, int c2)
Set the range of columns that specify the main data matrix.
virtual int GetColorColumn()
vtkQtAbstractModelAdapter(QObject *p)
virtual int GetViewType()
data object that represents a "selection" in VTK.