Computer Assisted Medical Intervention Tool Kit  version 5.2
camitk::MeshDataFilterModel Class Reference

CamiTK intern class to help automatically sort or show specific data. More...

#include <MeshDataModel.h>

+ Inheritance diagram for camitk::MeshDataFilterModel:
+ Collaboration diagram for camitk::MeshDataFilterModel:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MeshDataFilterModel()

camitk::MeshDataFilterModel::MeshDataFilterModel ( int  fieldFilter = MeshComponent::POINTS | MeshComponent::CELLS | MeshComponent::MESH,
int  dataFilter = MeshComponent::SCALARS | MeshComponent::VECTORS | MeshComponent::TENSORS | MeshComponent::OTHERS,
QObject *  parent = nullptr 
)

Member Function Documentation

◆ filterAcceptsRow()

bool camitk::MeshDataFilterModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
overrideprotected

References camitk::MeshComponent::getDataTypeNames(), and camitk::MeshComponent::getFieldNames().

+ Here is the call graph for this function:

◆ setDataTypeFilter()

void camitk::MeshDataFilterModel::setDataTypeFilter ( int  dataFilter)

◆ setFieldTypeFilter()

void camitk::MeshDataFilterModel::setFieldTypeFilter ( int  fieldFilter)

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