CamiTK intern class to help automatically sort or show specific data. More...
#include <MeshDataModel.h>
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 | ) |
void camitk::MeshDataFilterModel::setFieldTypeFilter | ( | int | fieldFilter | ) |
|
private |
Referenced by camitk::MeshDataModel::refresh().
|
private |