|
VTK
9.7.20260803
|
#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.
Definition at line 32 of file vtkQtAbstractModelAdapter.h.
Public Types | |
| enum | { FULL_VIEW , DATA_VIEW } |
Signals | |
| void | modelChanged () |
Public Member Functions | |
| vtkQtAbstractModelAdapter (QObject *p) | |
| virtual void | SetViewType (int type) |
| Set/Get the view type. | |
| virtual int | GetViewType () |
| virtual void | SetKeyColumn (int col) |
| Set/Get the key column. | |
| virtual int | GetKeyColumn () |
| virtual void | SetKeyColumnName (const char *name)=0 |
| virtual void | SetColorColumn (int col) |
| Set/Get the column storing the rgba color values for each row. | |
| virtual int | GetColorColumn () |
| 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. | |
| void | reset () |
| void | beginResetModel () |
| void | endResetModel () |
| virtual void | SetVTKDataObject (vtkDataObject *data)=0 |
| Set/Get the VTK data object as input to this adapter. | |
| virtual vtkDataObject * | GetVTKDataObject () const =0 |
| Set/Get the VTK data object as input to this adapter. | |
| virtual vtkSelection * | QModelIndexListToVTKIndexSelection (QModelIndexList qmil) const =0 |
| Selection conversion from VTK land to Qt land. | |
| virtual QItemSelection | VTKIndexSelectionToQItemSelection (vtkSelection *vtksel) const =0 |
| Selection conversion from VTK land to Qt land. | |
Protected Member Functions | |
| virtual int | ModelColumnToFieldDataColumn (int col) const |
| Map a column index in the QAbstractItemModel to a vtkTable column. | |
Protected Attributes | |
| int | ViewType |
| int | KeyColumn |
| int | ColorColumn |
| int | DataStartColumn |
| int | DataEndColumn |
| anonymous enum |
| Enumerator | |
|---|---|
| FULL_VIEW | |
| DATA_VIEW | |
Definition at line 38 of file vtkQtAbstractModelAdapter.h.
|
inline |
Definition at line 44 of file vtkQtAbstractModelAdapter.h.
|
pure virtual |
Set/Get the VTK data object as input to this adapter.
Implemented in vtkQtAnnotationLayersModelAdapter, vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
|
pure virtual |
Set/Get the VTK data object as input to this adapter.
Implemented in vtkQtAnnotationLayersModelAdapter, vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
|
pure virtual |
Selection conversion from VTK land to Qt land.
Implemented in vtkQtAnnotationLayersModelAdapter, vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
|
pure virtual |
Selection conversion from VTK land to Qt land.
Implemented in vtkQtAnnotationLayersModelAdapter, vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
|
inlinevirtual |
Set/Get the view type.
FULL_VIEW gives access to all the data. DATA_VIEW gives access only to the data columns specified with SetDataColumnRange() The default is FULL_VIEW.
Definition at line 76 of file vtkQtAbstractModelAdapter.h.
|
inlinevirtual |
Definition at line 77 of file vtkQtAbstractModelAdapter.h.
|
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 86 of file vtkQtAbstractModelAdapter.h.
|
inlinevirtual |
Definition at line 87 of file vtkQtAbstractModelAdapter.h.
|
pure virtual |
Implemented in vtkQtAnnotationLayersModelAdapter, vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
|
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 97 of file vtkQtAbstractModelAdapter.h.
|
inlinevirtual |
Definition at line 98 of file vtkQtAbstractModelAdapter.h.
|
pure virtual |
Implemented in vtkQtAnnotationLayersModelAdapter, vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
|
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 106 of file vtkQtAbstractModelAdapter.h.
|
inline |
Definition at line 118 of file vtkQtAbstractModelAdapter.h.
|
inline |
Definition at line 127 of file vtkQtAbstractModelAdapter.h.
|
inline |
Definition at line 128 of file vtkQtAbstractModelAdapter.h.
|
signal |
|
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.
|
protected |
Definition at line 141 of file vtkQtAbstractModelAdapter.h.
|
protected |
Definition at line 142 of file vtkQtAbstractModelAdapter.h.
|
protected |
Definition at line 143 of file vtkQtAbstractModelAdapter.h.
|
protected |
Definition at line 144 of file vtkQtAbstractModelAdapter.h.
|
protected |
Definition at line 145 of file vtkQtAbstractModelAdapter.h.