![]() |
Computer Assited Medical Intervention Tool Kit
version 3.4
|
Qt model for mesh data. More...
#include <MeshDataModel.h>
Inheritance diagram for camitk::MeshDataModel:Public Member Functions | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| Number of data arrays columns. More... | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| Model data. More... | |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| Header data. More... | |
| MeshDataModel (MeshComponent *meshComp) | |
| Constructor. More... | |
| void | refresh () |
| Refresh the model. More... | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| Number of data arrays. More... | |
Private Attributes | |
| MeshComponent * | meshComponent |
Qt model for mesh data.
This class use the Qt model/view design
| camitk::MeshDataModel::MeshDataModel | ( | MeshComponent * | meshComp | ) |
Constructor.
| int camitk::MeshDataModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Number of data arrays columns.
| QVariant camitk::MeshDataModel::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole |
||
| ) | const |
Model data.
References camitk::InterfaceGeometry::getPointSet(), and meshComponent.
| QVariant camitk::MeshDataModel::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role = Qt::DisplayRole |
||
| ) | const |
Header data.
| void camitk::MeshDataModel::refresh | ( | ) |
Refresh the model.
Referenced by camitk::MeshComponent::linkDataToCells(), camitk::MeshComponent::linkDataToPoints(), and camitk::MeshComponent::removeDataArray().
| int camitk::MeshDataModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Number of data arrays.
References camitk::InterfaceGeometry::getPointSet(), and meshComponent.
|
private |
Referenced by data(), and rowCount().
1.8.8