|
VTK
|
Adapts a table to a Qt item model. More...
#include <vtkQtTableModelAdapter.h>
Public Types | |
| enum | { HEADER = 0, ITEM = 1 } |
| enum | { COLORS = 0, ICONS = 1, NONE = 2 } |
Public Types inherited from vtkQtAbstractModelAdapter | |
| enum | { FULL_VIEW, DATA_VIEW } |
Signals | |
| void | selectionDropped (vtkSelection *) |
Signals inherited from vtkQtAbstractModelAdapter | |
| void | modelChanged () |
Public Member Functions | |
| vtkQtTableModelAdapter (QObject *parent=0) | |
| vtkQtTableModelAdapter (vtkTable *table, QObject *parent=0) | |
| ~vtkQtTableModelAdapter () | |
| virtual void | SetKeyColumnName (const char *name) |
| virtual void | SetColorColumnName (const char *name) |
| void | SetIconIndexColumnName (const char *name) |
| void | SetDecorationLocation (int s) |
| Specify how to color rows if colors are provided by SetColorColumnName(). More... | |
| void | SetDecorationStrategy (int s) |
| Specify how to color rows if colors are provided by SetColorColumnName(). More... | |
| bool | GetSplitMultiComponentColumns () const |
| void | SetSplitMultiComponentColumns (bool value) |
| virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| virtual QMimeData * | mimeData (const QModelIndexList &indexes) const |
| virtual QStringList | mimeTypes () const |
| Qt::DropActions | supportedDropActions () const |
| void | SetIconSheet (QImage sheet) |
| void | SetIconSize (int w, int h) |
| void | SetIconSheetSize (int w, int h) |
| virtual void | SetVTKDataObject (vtkDataObject *data) |
| Set/Get the VTK data object as input to this adapter. More... | |
| virtual vtkDataObject * | GetVTKDataObject () const |
| Set/Get the VTK data object as input to this adapter. More... | |
| virtual vtkSelection * | QModelIndexListToVTKIndexSelection (const QModelIndexList qmil) const |
| Selection conversion from VTK land to Qt land. More... | |
| virtual QItemSelection | VTKIndexSelectionToQItemSelection (vtkSelection *vtksel) const |
| Selection conversion from VTK land to Qt land. More... | |
| void | setTable (vtkTable *table) |
| Set up the model based on the current table. More... | |
| vtkTable * | table () const |
| Set up the model based on the current table. More... | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| Set up the model based on the current table. More... | |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| Set up the model based on the current table. More... | |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| Set up the model based on the current table. More... | |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| Set up the model based on the current table. More... | |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| Set up the model based on the current table. More... | |
| QModelIndex | parent (const QModelIndex &index) const |
| Set up the model based on the current table. More... | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| Set up the model based on the current table. More... | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| Set up the model based on the current table. More... | |
Public Member Functions inherited from vtkQtAbstractModelAdapter | |
| vtkQtAbstractModelAdapter (QObject *p) | |
| virtual void | SetViewType (int type) |
| Set/Get the view type. More... | |
| virtual int | GetViewType () |
| virtual void | SetKeyColumn (int col) |
| Set/Get the key column. More... | |
| virtual int | GetKeyColumn () |
| virtual void | SetColorColumn (int col) |
| Set/Get the column storing the rgba color values for each row. More... | |
| virtual int | GetColorColumn () |
| virtual void | SetDataColumnRange (int c1, int c2) |
| Set the range of columns that specify the main data matrix. More... | |
| void | reset () |
| void | beginResetModel () |
| void | endResetModel () |
Additional Inherited Members | |
Protected Member Functions inherited from vtkQtAbstractModelAdapter | |
| virtual int | ModelColumnToFieldDataColumn (int col) const |
| Map a column index in the QAbstractItemModel to a vtkTable column. More... | |
Protected Attributes inherited from vtkQtAbstractModelAdapter | |
| int | ViewType |
| int | KeyColumn |
| int | ColorColumn |
| int | DataStartColumn |
| int | DataEndColumn |
Adapts a table to a Qt item model.
vtkQtTableModelAdapter is a QAbstractItemModel with a vtkTable as its underlying data model.
Definition at line 49 of file vtkQtTableModelAdapter.h.
| anonymous enum |
| Enumerator | |
|---|---|
| HEADER | |
| ITEM | |
Definition at line 80 of file vtkQtTableModelAdapter.h.
| anonymous enum |
| Enumerator | |
|---|---|
| COLORS | |
| ICONS | |
| NONE | |
Definition at line 86 of file vtkQtTableModelAdapter.h.
| vtkQtTableModelAdapter::vtkQtTableModelAdapter | ( | QObject * | parent = 0 | ) |
| vtkQtTableModelAdapter::vtkQtTableModelAdapter | ( | vtkTable * | table, |
| QObject * | parent = 0 |
||
| ) |
| vtkQtTableModelAdapter::~vtkQtTableModelAdapter | ( | ) |
|
virtual |
Set/Get the VTK data object as input to this adapter.
Implements vtkQtAbstractModelAdapter.
|
virtual |
Set/Get the VTK data object as input to this adapter.
Implements vtkQtAbstractModelAdapter.
|
virtual |
Selection conversion from VTK land to Qt land.
Implements vtkQtAbstractModelAdapter.
|
virtual |
Selection conversion from VTK land to Qt land.
Implements vtkQtAbstractModelAdapter.
|
virtual |
Implements vtkQtAbstractModelAdapter.
|
virtual |
Implements vtkQtAbstractModelAdapter.
| void vtkQtTableModelAdapter::SetIconIndexColumnName | ( | const char * | name | ) |
| void vtkQtTableModelAdapter::SetDecorationLocation | ( | int | s | ) |
Specify how to color rows if colors are provided by SetColorColumnName().
Default is the vertical header.
| void vtkQtTableModelAdapter::SetDecorationStrategy | ( | int | s | ) |
Specify how to color rows if colors are provided by SetColorColumnName().
Default is the vertical header.
| bool vtkQtTableModelAdapter::GetSplitMultiComponentColumns | ( | ) | const |
| void vtkQtTableModelAdapter::SetSplitMultiComponentColumns | ( | bool | value | ) |
| void vtkQtTableModelAdapter::setTable | ( | vtkTable * | table | ) |
Set up the model based on the current table.
|
inline |
Set up the model based on the current table.
Definition at line 113 of file vtkQtTableModelAdapter.h.
| QVariant vtkQtTableModelAdapter::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole |
||
| ) | const |
Set up the model based on the current table.
| bool vtkQtTableModelAdapter::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role = Qt::EditRole |
||
| ) |
Set up the model based on the current table.
| Qt::ItemFlags vtkQtTableModelAdapter::flags | ( | const QModelIndex & | index | ) | const |
Set up the model based on the current table.
| QVariant vtkQtTableModelAdapter::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role = Qt::DisplayRole |
||
| ) | const |
Set up the model based on the current table.
| QModelIndex vtkQtTableModelAdapter::index | ( | int | row, |
| int | column, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | const |
Set up the model based on the current table.
| QModelIndex vtkQtTableModelAdapter::parent | ( | const QModelIndex & | index | ) | const |
Set up the model based on the current table.
| int vtkQtTableModelAdapter::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Set up the model based on the current table.
| int vtkQtTableModelAdapter::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Set up the model based on the current table.
|
virtual |
|
virtual |
|
virtual |
| Qt::DropActions vtkQtTableModelAdapter::supportedDropActions | ( | ) | const |
| void vtkQtTableModelAdapter::SetIconSheet | ( | QImage | sheet | ) |
|
signal |
1.8.9.1