Superclass for Qt model adapters.
More...
#include <vtkQtAbstractModelAdapter.h>
Superclass for Qt model adapters.
vtkQtAbstractModelAdapter is the superclass for classes that adapt VTK objects to QAbstractItemModel. This class contains API for converting between QModelIndex and VTK ids, as well as some additional specialized functionality such as setting a column of data to use as the Qt header information.
- See also
- vtkQtTableModelAdapter vtkQtTreeModelAdapter
Definition at line 30 of file vtkQtAbstractModelAdapter.h.
◆ anonymous enum
◆ vtkQtAbstractModelAdapter()
vtkQtAbstractModelAdapter::vtkQtAbstractModelAdapter |
( |
QObject * |
p | ) |
|
|
inline |
◆ SetVTKDataObject()
virtual void vtkQtAbstractModelAdapter::SetVTKDataObject |
( |
vtkDataObject * |
data | ) |
|
|
pure virtual |
◆ GetVTKDataObject()
virtual vtkDataObject * vtkQtAbstractModelAdapter::GetVTKDataObject |
( |
| ) |
const |
|
pure virtual |
◆ QModelIndexListToVTKIndexSelection()
virtual vtkSelection * vtkQtAbstractModelAdapter::QModelIndexListToVTKIndexSelection |
( |
QModelIndexList |
qmil | ) |
const |
|
pure virtual |
◆ VTKIndexSelectionToQItemSelection()
virtual QItemSelection vtkQtAbstractModelAdapter::VTKIndexSelectionToQItemSelection |
( |
vtkSelection * |
vtksel | ) |
const |
|
pure virtual |
◆ SetViewType()
virtual void vtkQtAbstractModelAdapter::SetViewType |
( |
int |
type | ) |
|
|
inlinevirtual |
◆ GetViewType()
virtual int vtkQtAbstractModelAdapter::GetViewType |
( |
| ) |
|
|
inlinevirtual |
◆ SetKeyColumn()
virtual void vtkQtAbstractModelAdapter::SetKeyColumn |
( |
int |
col | ) |
|
|
inlinevirtual |
Set/Get the key column.
The key column is used as the row headers in a table view, and as the first column in a tree view. Set to -1 for no key column. The default is no key column.
Definition at line 84 of file vtkQtAbstractModelAdapter.h.
◆ GetKeyColumn()
virtual int vtkQtAbstractModelAdapter::GetKeyColumn |
( |
| ) |
|
|
inlinevirtual |
◆ SetKeyColumnName()
virtual void vtkQtAbstractModelAdapter::SetKeyColumnName |
( |
const char * |
name | ) |
|
|
pure virtual |
◆ SetColorColumn()
virtual void vtkQtAbstractModelAdapter::SetColorColumn |
( |
int |
col | ) |
|
|
inlinevirtual |
Set/Get the column storing the rgba color values for each row.
The color column is used as the row headers in a table view, and as the first column in a tree view. Set to -1 for no key column. The default is no key column.
Definition at line 95 of file vtkQtAbstractModelAdapter.h.
◆ GetColorColumn()
virtual int vtkQtAbstractModelAdapter::GetColorColumn |
( |
| ) |
|
|
inlinevirtual |
◆ SetColorColumnName()
virtual void vtkQtAbstractModelAdapter::SetColorColumnName |
( |
const char * |
name | ) |
|
|
pure virtual |
◆ SetDataColumnRange()
virtual void vtkQtAbstractModelAdapter::SetDataColumnRange |
( |
int |
c1, |
|
|
int |
c2 |
|
) |
| |
|
inlinevirtual |
Set the range of columns that specify the main data matrix.
The data column range should not include the key column. The default is no data columns.
Definition at line 104 of file vtkQtAbstractModelAdapter.h.
◆ reset()
void vtkQtAbstractModelAdapter::reset |
( |
| ) |
|
|
inline |
◆ beginResetModel()
void vtkQtAbstractModelAdapter::beginResetModel |
( |
| ) |
|
|
inline |
◆ endResetModel()
void vtkQtAbstractModelAdapter::endResetModel |
( |
| ) |
|
|
inline |
◆ modelChanged
void vtkQtAbstractModelAdapter::modelChanged |
( |
| ) |
|
|
signal |
◆ ModelColumnToFieldDataColumn()
virtual int vtkQtAbstractModelAdapter::ModelColumnToFieldDataColumn |
( |
int |
col | ) |
const |
|
protectedvirtual |
Map a column index in the QAbstractItemModel to a vtkTable column.
If the argument is out of range or cannot be mapped then this method may return -1.
◆ ViewType
int vtkQtAbstractModelAdapter::ViewType |
|
protected |
◆ KeyColumn
int vtkQtAbstractModelAdapter::KeyColumn |
|
protected |
◆ ColorColumn
int vtkQtAbstractModelAdapter::ColorColumn |
|
protected |
◆ DataStartColumn
int vtkQtAbstractModelAdapter::DataStartColumn |
|
protected |
◆ DataEndColumn
int vtkQtAbstractModelAdapter::DataEndColumn |
|
protected |
The documentation for this class was generated from the following file: