35 #ifndef vtkQtAbstractModelAdapter_h
36 #define vtkQtAbstractModelAdapter_h
38 #include "vtkGUISupportQtModule.h"
39 #include <QAbstractItemModel>
40 #include <QItemSelection>
58 QAbstractItemModel(p),
78 virtual vtkSelection* QModelIndexListToVTKIndexSelection(
79 const QModelIndexList qmil)
const = 0;
80 virtual QItemSelection VTKIndexSelectionToQItemSelection(
102 virtual void SetKeyColumnName(
const char*
name) = 0;
113 virtual void SetColorColumnName(
const char*
name) = 0;
121 { this->DataStartColumn = c1; this->DataEndColumn = c2; }
128 void reset() { QAbstractItemModel::beginResetModel(); QAbstractItemModel::endResetModel();}
147 virtual int ModelColumnToFieldDataColumn(
int col)
const;
virtual int GetKeyColumn()
vtkQtAbstractModelAdapter(QObject *p)
A node in a selection tree.
virtual int GetViewType()
virtual void SetKeyColumn(int col)
Set/Get the key column.
virtual void SetDataColumnRange(int c1, int c2)
Set the range of columns that specify the main data matrix.
Superclass for Qt model adapters.
general representation of visualization data
virtual int GetColorColumn()
virtual void SetColorColumn(int col)
Set/Get the column storing the rgba color values for each row.
virtual void SetViewType(int type)
Set/Get the view type.