Qt model for mesh selection This class use the Qt model/view design. More...
#include <MeshSelectionModel.h>
Inheritance diagram for camitk::MeshSelectionModel:
Collaboration diagram for camitk::MeshSelectionModel:Public Types | |
| enum | InsertionPolicy { REPLACE , MERGE , SUBTRACT , DISCARD } |
Public Member Functions | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| Number of selection columns. More... | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| Model data. More... | |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| Data header. More... | |
| int | insertSelection (const QString &name, int fieldType, int contentType, vtkSmartPointer< vtkAbstractArray > array, InsertionPolicy policy=REPLACE) |
| Insert a selection. More... | |
| MeshSelectionModel (MeshComponent *const meshComp) | |
| Constructor. More... | |
| int | removeSelection (const QString &name) |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| Number of selection. More... | |
| bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
| Edit selection data. More... | |
Qt model for mesh selection This class use the Qt model/view design.
| camitk::MeshSelectionModel::MeshSelectionModel | ( | MeshComponent *const | meshComp | ) |
Constructor.
|
override |
Number of selection columns.
|
override |
Model data.
References camitk::MeshComponent::getSelections().
Here is the call graph for this function:
|
override |
|
override |
Data header.
| int camitk::MeshSelectionModel::insertSelection | ( | const QString & | name, |
| int | fieldType, | ||
| int | contentType, | ||
| vtkSmartPointer< vtkAbstractArray > | array, | ||
| InsertionPolicy | policy = REPLACE |
||
| ) |
Insert a selection.
References DISCARD, camitk::MeshComponent::getSelectionIndex(), camitk::MeshComponent::getSelections(), MERGE, camitk::policy(), REPLACE, and SUBTRACT.
Referenced by camitk::MeshComponent::addSelection().
Here is the call graph for this function:
Here is the caller graph for this function:| int camitk::MeshSelectionModel::removeSelection | ( | const QString & | name | ) |
References camitk::MeshComponent::getSelectionIndex(), and camitk::MeshComponent::getSelections().
Referenced by camitk::MeshComponent::removeSelectedSelections().
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Number of selection.
References camitk::MeshComponent::getSelections().
Here is the call graph for this function:
|
override |
Edit selection data.
References camitk::MeshComponent::getSelectionIndex(), and camitk::MeshComponent::getSelections().
Here is the call graph for this function: