Qt model for mesh data. This class use the Qt model/view design.
More...
#include <MeshDataModel.h>
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| Number of data arrays columns. More...
|
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| Model data, called when the view is refreshing visualization. More...
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
| Returns if a given model index is editable, checkable.... More...
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| Header data. More...
|
|
| MeshDataModel (MeshComponent *meshComp) |
| Constructor. More...
|
|
void | refresh () |
| Refresh the model. More...
|
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| Number of data arrays. More...
|
|
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
| Edit data, called when the data are modified by the user (view) More...
|
|
Qt model for mesh data. This class use the Qt model/view design.
CamiTK intern class to represent mesh data.
◆ MeshDataModel()
◆ columnCount()
int camitk::MeshDataModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
Number of data arrays columns.
◆ data()
QVariant camitk::MeshDataModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
Model data, called when the view is refreshing visualization.
◆ flags()
Qt::ItemFlags camitk::MeshDataModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
Returns if a given model index is editable, checkable....
- See also
- QAbstractTableModel
◆ getRowInfo()
determine the current field type of the item depending on the row index, compute the index of the data in its field category and retrieve the type of data and the name of the array.
◆ headerData()
QVariant camitk::MeshDataModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ refresh()
void camitk::MeshDataModel::refresh |
( |
| ) |
|
◆ rowCount()
int camitk::MeshDataModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setData()
bool camitk::MeshDataModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role |
|
) |
| |
|
override |
Edit data, called when the data are modified by the user (view)
◆ meshComponent
The component where the data are stored.
The documentation for this class was generated from the following files: