34 #ifndef vtkQtAbstractModelAdapter_h
35 #define vtkQtAbstractModelAdapter_h
37 #include "vtkGUISupportQtModule.h"
38 #include "QVTKWin32Header.h"
39 #include <QAbstractItemModel>
40 #include <QItemSelection>
58 QAbstractItemModel(p),
74 virtual vtkSelection* QModelIndexListToVTKIndexSelection(
75 const QModelIndexList qmil)
const = 0;
76 virtual QItemSelection VTKIndexSelectionToQItemSelection(
94 virtual void SetKeyColumnName(
const char*
name) = 0;
104 virtual void SetColorColumnName(
const char*
name) = 0;
112 { this->DataStartColumn = c1; this->DataEndColumn = c2; }
120 void reset() { QAbstractItemModel::beginResetModel(); QAbstractItemModel::endResetModel();}
137 virtual int ModelColumnToFieldDataColumn(
int col)
const;
virtual int GetKeyColumn()
vtkQtAbstractModelAdapter(QObject *p)
A node in a selection tree. Used to store selection results.
virtual int GetViewType()
virtual void SetKeyColumn(int col)
virtual void SetDataColumnRange(int c1, int c2)
Superclass for Qt model adapters.
general representation of visualization data
virtual int GetColorColumn()
virtual void SetColorColumn(int col)
virtual void SetViewType(int type)