26 #include <QAbstractTableModel>
28 #include<vtkSmartPointer.h>
30 class vtkSelectionNode;
54 int rowCount (
const QModelIndex &parent = QModelIndex() )
const ;
59 int columnCount (
const QModelIndex &parent = QModelIndex() )
const;
64 QVariant
data (
const QModelIndex &index,
int role = Qt::DisplayRole )
const;
69 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Data header.
Definition: MeshSelectionModel.cpp:89
MeshSelectionModel(MeshComponent *const meshComp)
Constructor.
Definition: MeshSelectionModel.cpp:34
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Model data.
Definition: MeshSelectionModel.cpp:52
Qt model for mesh selection This class use the Qt model/view design.
Definition: MeshSelectionModel.h:40
string name
Definition: select.cpp:111
void updateSelection(const QString &name)
Update the selection.
Definition: MeshSelectionModel.cpp:114
Definition: Action.cpp:40
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:48
int columnCount(const QModelIndex &parent=QModelIndex()) const
Number of selection columns.
Definition: MeshSelectionModel.cpp:48
QMap< int, QString > contentName
Definition: MeshSelectionModel.h:90
void refresh()
Refresh the model.
Definition: MeshSelectionModel.cpp:121
MeshComponent * meshComponent
Definition: MeshSelectionModel.h:88
QMap< QString, vtkSmartPointer< vtkSelectionNode > > & getSelectionList()
Get the selection list.
int rowCount(const QModelIndex &parent=QModelIndex()) const
Number of selection.
Definition: MeshSelectionModel.cpp:42
QMap< int, QString > fieldName
The component where the selection are stored.
Definition: MeshSelectionModel.h:89