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 |
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 |
References camitk::MeshComponent::getDataTypeNames(), and camitk::MeshComponent::getFieldNames().
void camitk::MeshDataFilterModel::setDataTypeFilter | ( | int | dataFilter | ) |
void camitk::MeshDataFilterModel::setFieldTypeFilter | ( | int | fieldFilter | ) |