Computer Assisted Medical Intervention Tool Kit  version 6.0
Loading...
Searching...
No Matches
camitk::MeshSelectionModel Class Reference

Qt model for mesh selection This class use the Qt model/view design. More...

#include <MeshSelectionModel.h>

Public Types

enum  InsertionPolicy { REPLACE , MERGE , SUBTRACT , DISCARD }

Public Member Functions

int columnCount (const QModelIndex &parent=QModelIndex()) const override
 Number of selection columns.
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 Model data.
Qt::ItemFlags flags (const QModelIndex &index) const override
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 Data header.
int insertSelection (const QString &name, int fieldType, int contentType, vtkSmartPointer< vtkAbstractArray > array, InsertionPolicy policy=REPLACE)
 Insert a selection.
 MeshSelectionModel (MeshComponent *const meshComp)
 Constructor.
int removeSelection (const QString &name)
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 Number of selection.
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 Edit selection data.

Detailed Description

Qt model for mesh selection This class use the Qt model/view design.

Member Enumeration Documentation

◆ InsertionPolicy

Enumerator
REPLACE 
MERGE 
SUBTRACT 
DISCARD 

Constructor & Destructor Documentation

◆ MeshSelectionModel()

camitk::MeshSelectionModel::MeshSelectionModel ( MeshComponent *const meshComp)

Constructor.

Member Function Documentation

◆ columnCount()

int camitk::MeshSelectionModel::columnCount ( const QModelIndex & parent = QModelIndex()) const
override

Number of selection columns.

◆ data()

QVariant camitk::MeshSelectionModel::data ( const QModelIndex & index,
int role = Qt::DisplayRole ) const
override

Model data.

◆ flags()

Qt::ItemFlags camitk::MeshSelectionModel::flags ( const QModelIndex & index) const
override

◆ headerData()

QVariant camitk::MeshSelectionModel::headerData ( int section,
Qt::Orientation orientation,
int role = Qt::DisplayRole ) const
override

Data header.

◆ insertSelection()

int camitk::MeshSelectionModel::insertSelection ( const QString & name,
int fieldType,
int contentType,
vtkSmartPointer< vtkAbstractArray > array,
InsertionPolicy policy = REPLACE )

Insert a selection.

References DISCARD, MERGE, REPLACE, and SUBTRACT.

◆ removeSelection()

int camitk::MeshSelectionModel::removeSelection ( const QString & name)

◆ rowCount()

int camitk::MeshSelectionModel::rowCount ( const QModelIndex & parent = QModelIndex()) const
override

Number of selection.

◆ setData()

bool camitk::MeshSelectionModel::setData ( const QModelIndex & index,
const QVariant & value,
int role )
override

Edit selection data.


The documentation for this class was generated from the following files: