15 #ifndef QGSMESHSTATICDATASETWIDGET_H
16 #define QGSMESHSTATICDATASETWIDGET_H
18 #include <QAbstractListModel>
21 #include "ui_qgsmeshstaticdatasetwidgetbase.h"
47 int rowCount(
const QModelIndex &parent )
const override;
48 QVariant
data(
const QModelIndex &index,
int role )
const override;
52 int mDatasetGroup = -1;
79 void setScalarDatasetGroup(
int index );
81 void setVectorDatasetGroup(
int index );
84 void setScalarDatasetIndex(
int index );
85 void setVectorDatasetIndex(
int index );
87 int mScalarDatasetGroup = -1;
88 int mVectorDatasetGroup = -1;
Base class for providing data for QgsMeshLayer.
List model for dataset contained in dataset group, used to display by time dataset in widget.
void setDatasetGroup(int group)
Sets the dataset group.
void setMeshLayer(QgsMeshLayer *layer)
Sets the layer.
int rowCount(const QModelIndex &parent) const override
QVariant data(const QModelIndex &index, int role) const override
QgsMeshDatasetListModel(QObject *parent)
Constructor.
Represents a mesh layer supporting display of data on structured or unstructured meshes.