35#ifndef vtkQtAbstractModelAdapter_h
36#define vtkQtAbstractModelAdapter_h
38#include "vtkGUISupportQtModule.h"
39#include <QAbstractItemModel>
40#include <QItemSelection>
58 : QAbstractItemModel(p)
121 this->DataStartColumn = c1;
122 this->DataEndColumn = c2;
132 QAbstractItemModel::beginResetModel();
133 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(const 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.