![]() |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
CamiTK intern class to help automatically sort or show specific data. More...
#include <MeshDataModel.h>
Inherits QSortFilterProxyModel.
Public Member Functions | |
| MeshDataFilterModel (int fieldFilter=MeshComponent::POINTS|MeshComponent::CELLS|MeshComponent::MESH, int dataFilter=MeshComponent::SCALARS|MeshComponent::VECTORS|MeshComponent::TENSORS|MeshComponent::OTHERS, QObject *parent=nullptr) | |
| void | setDataTypeFilter (int dataFilter) |
| void | setFieldTypeFilter (int fieldFilter) |
Protected Member Functions | |
| bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
Private Attributes | |
| int | dataTypeFilter |
| int | fieldTypeFilter |
CamiTK intern class to help automatically sort or show specific data.
For example: this is used in the InteractiveViewer to show a combobox of all the point and cell scalar data.
| camitk::MeshDataFilterModel::MeshDataFilterModel | ( | int | fieldFilter = MeshComponent::POINTS | MeshComponent::CELLS | MeshComponent::MESH, |
| int | dataFilter = MeshComponent::SCALARS | MeshComponent::VECTORS | MeshComponent::TENSORS | MeshComponent::OTHERS, |
||
| QObject * | parent = nullptr |
||
| ) |
|
overrideprotected |
| void camitk::MeshDataFilterModel::setDataTypeFilter | ( | int | dataFilter | ) |
References dataTypeFilter.
| void camitk::MeshDataFilterModel::setFieldTypeFilter | ( | int | fieldFilter | ) |
References fieldTypeFilter.
|
private |
Referenced by filterAcceptsRow(), and setDataTypeFilter().
|
private |
Referenced by filterAcceptsRow(), and setFieldTypeFilter().
1.8.13