26#ifndef MESH_DATA_MODEL_H
27#define MESH_DATA_MODEL_H
29#include <QAbstractTableModel>
30#include <QSortFilterProxyModel>
59 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
64 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
69 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
74 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
79 bool setData(
const QModelIndex& index,
const QVariant& value,
int role)
override;
83 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
114 MeshDataFilterModel(
int fieldFilter = MeshComponent::POINTS | MeshComponent::CELLS | MeshComponent::MESH,
115 int dataFilter = MeshComponent::SCALARS | MeshComponent::VECTORS | MeshComponent::TENSORS | MeshComponent::OTHERS,
116 QObject* parent =
nullptr);
118 void setFieldTypeFilter(
int fieldFilter);
120 void setDataTypeFilter(
int dataFilter);
124 bool filterAcceptsRow(
int sourceRow,
const QModelIndex& sourceParent)
const override;
#define CAMITK_API
Definition CamiTKAPI.h:49
Basic component to manage any kind of mesh.
Definition MeshComponent.h:53
FieldType
Data fields can be applied to one of this.
Definition MeshComponent.h:66
DataType
Data fields can have different dimensions.
Definition MeshComponent.h:58
CamiTK intern class to help automatically sort or show specific data.
Definition MeshDataModel.h:108
Qt model for mesh data.
Definition MeshDataModel.h:45
void refresh()
refresh the display