|
| vtkQtTableModelAdapter (QObject *parent=nullptr) |
|
| vtkQtTableModelAdapter (vtkTable *table, QObject *parent=nullptr) |
|
| ~vtkQtTableModelAdapter () override |
|
void | SetKeyColumnName (const char *name) override |
|
void | SetColorColumnName (const char *name) override |
|
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) |
|
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
|
QMimeData * | mimeData (const QModelIndexList &indexes) const override |
|
QStringList | mimeTypes () const override |
|
Qt::DropActions | supportedDropActions () const override |
|
void | SetIconSheet (QImage sheet) |
|
void | SetIconSize (int w, int h) |
|
void | SetIconSheetSize (int w, int h) |
|
|
void | SetVTKDataObject (vtkDataObject *data) override |
| Set/Get the VTK data object as input to this adapter. More...
|
|
vtkDataObject * | GetVTKDataObject () const override |
| Set/Get the VTK data object as input to this adapter. More...
|
|
|
vtkSelection * | QModelIndexListToVTKIndexSelection (const QModelIndexList qmil) const override |
| Selection conversion from VTK land to Qt land. More...
|
|
QItemSelection | VTKIndexSelectionToQItemSelection (vtkSelection *vtksel) const override |
| 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 override |
| Set up the model based on the current table. More...
|
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| Set up the model based on the current table. More...
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
| Set up the model based on the current table. More...
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| Set up the model based on the current table. More...
|
|
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
| Set up the model based on the current table. More...
|
|
QModelIndex | parent (const QModelIndex &index) const override |
| Set up the model based on the current table. More...
|
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| Set up the model based on the current table. More...
|
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| Set up the model based on the current table. More...
|
|
| 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 () |
|
Adapts a table to a Qt item model.
vtkQtTableModelAdapter is a QAbstractItemModel with a vtkTable as its underlying data model.
- See also
- vtkQtAbstractModelAdapter vtkQtTreeModelAdapter
- Tests:
- vtkQtTableModelAdapter (Tests)
Definition at line 49 of file vtkQtTableModelAdapter.h.