#include <vtkQtAbstractModelAdapter.h>
Definition at line 46 of file vtkQtAbstractModelAdapter.h.
Public Types | |
enum | { FULL_VIEW, DATA_VIEW, METADATA_VIEW } |
Public Slots | |
void | SetViewRows (bool b) |
Signals | |
void | modelChanged () |
Public Member Functions | |
vtkQtAbstractModelAdapter (QObject *p) | |
virtual bool | GetViewRows () |
void | reset () |
virtual void | SetVTKDataObject (vtkDataObject *data)=0 |
virtual vtkDataObject * | GetVTKDataObject () const =0 |
virtual vtkIdType | IdToPedigree (vtkIdType id) const =0 |
virtual vtkIdType | PedigreeToId (vtkIdType pedigree) const =0 |
virtual QModelIndex | PedigreeToQModelIndex (vtkIdType id) const =0 |
virtual vtkIdType | QModelIndexToPedigree (QModelIndex index) const =0 |
virtual void | SetViewType (int type) |
virtual int | GetViewType () |
virtual void | SetKeyColumn (int col) |
virtual int | GetKeyColumn () |
virtual void | SetKeyColumnName (const char *name)=0 |
virtual void | SetDataColumnRange (int c1, int c2) |
Protected Member Functions | |
virtual int | ModelColumnToFieldDataColumn (int col) const |
Protected Attributes | |
int | ViewType |
int | KeyColumn |
int | DataStartColumn |
int | DataEndColumn |
bool | ViewRows |
anonymous enum |
Definition at line 53 of file vtkQtAbstractModelAdapter.h.
vtkQtAbstractModelAdapter::vtkQtAbstractModelAdapter | ( | QObject * | p | ) | [inline] |
Definition at line 59 of file vtkQtAbstractModelAdapter.h.
virtual void vtkQtAbstractModelAdapter::SetVTKDataObject | ( | vtkDataObject * | data | ) | [pure virtual] |
Set/Get the VTK data object as input to this adapter
Implemented in vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
virtual vtkDataObject* vtkQtAbstractModelAdapter::GetVTKDataObject | ( | ) | const [pure virtual] |
Set/Get the VTK data object as input to this adapter
Implemented in vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
Mapping methods for converting from VTK land to Qt land
Implemented in vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
virtual vtkIdType vtkQtAbstractModelAdapter::PedigreeToId | ( | vtkIdType | pedigree | ) | const [pure virtual] |
Mapping methods for converting from VTK land to Qt land
Implemented in vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
virtual QModelIndex vtkQtAbstractModelAdapter::PedigreeToQModelIndex | ( | vtkIdType | id | ) | const [pure virtual] |
Mapping methods for converting from VTK land to Qt land
Implemented in vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
virtual vtkIdType vtkQtAbstractModelAdapter::QModelIndexToPedigree | ( | QModelIndex | index | ) | const [pure virtual] |
Mapping methods for converting from VTK land to Qt land
Implemented in vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
virtual void vtkQtAbstractModelAdapter::SetViewType | ( | int | type | ) | [inline, virtual] |
Set/Get the view type. FULL_VIEW gives access to all the data. DATA_VIEW gives access only to the data columns. METADATA_VIEW gives access only to the metadata (non-data) columns. The default is FULL_VIEW.
Definition at line 87 of file vtkQtAbstractModelAdapter.h.
virtual int vtkQtAbstractModelAdapter::GetViewType | ( | ) | [inline, virtual] |
Set/Get the view type. FULL_VIEW gives access to all the data. DATA_VIEW gives access only to the data columns. METADATA_VIEW gives access only to the metadata (non-data) columns. The default is FULL_VIEW.
Definition at line 88 of file vtkQtAbstractModelAdapter.h.
virtual void vtkQtAbstractModelAdapter::SetKeyColumn | ( | int | col | ) | [inline, virtual] |
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 95 of file vtkQtAbstractModelAdapter.h.
virtual int vtkQtAbstractModelAdapter::GetKeyColumn | ( | ) | [inline, virtual] |
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 96 of file vtkQtAbstractModelAdapter.h.
virtual void vtkQtAbstractModelAdapter::SetKeyColumnName | ( | const char * | name | ) | [pure virtual] |
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.
Implemented in vtkQtTableModelAdapter, and vtkQtTreeModelAdapter.
virtual void vtkQtAbstractModelAdapter::SetDataColumnRange | ( | int | c1, | |
int | c2 | |||
) | [inline, virtual] |
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.
virtual bool vtkQtAbstractModelAdapter::GetViewRows | ( | ) | [inline, virtual] |
Definition at line 108 of file vtkQtAbstractModelAdapter.h.
void vtkQtAbstractModelAdapter::reset | ( | ) | [inline] |
Definition at line 114 of file vtkQtAbstractModelAdapter.h.
void vtkQtAbstractModelAdapter::SetViewRows | ( | bool | b | ) | [inline, slot] |
Sets the view to either rows (standard) or columns. When viewing columns, each row in the item model will contain the name of a column in the underlying data object. This essentially flips the table on its side.
Definition at line 122 of file vtkQtAbstractModelAdapter.h.
void vtkQtAbstractModelAdapter::modelChanged | ( | ) | [signal] |
virtual int vtkQtAbstractModelAdapter::ModelColumnToFieldDataColumn | ( | int | col | ) | const [protected, virtual] |
int vtkQtAbstractModelAdapter::ViewType [protected] |
Definition at line 132 of file vtkQtAbstractModelAdapter.h.
int vtkQtAbstractModelAdapter::KeyColumn [protected] |
Definition at line 133 of file vtkQtAbstractModelAdapter.h.
int vtkQtAbstractModelAdapter::DataStartColumn [protected] |
Definition at line 134 of file vtkQtAbstractModelAdapter.h.
int vtkQtAbstractModelAdapter::DataEndColumn [protected] |
Definition at line 135 of file vtkQtAbstractModelAdapter.h.
bool vtkQtAbstractModelAdapter::ViewRows [protected] |
Definition at line 136 of file vtkQtAbstractModelAdapter.h.