QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
QgsMeshDatasetGroupProxyModel Class Reference

#include <qgsmeshdatasetgrouptreeview.h>

Inheritance diagram for QgsMeshDatasetGroupProxyModel:
Inheritance graph
[legend]

Public Member Functions

 QgsMeshDatasetGroupProxyModel (QAbstractItemModel *sourceModel)
 
int activeScalarGroup () const
 Returns index of active group for contours.
 
int activeVectorGroup () const
 Returns index of active group for vectors.
 
QVariant data (const QModelIndex &index, int role) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
void setActiveScalarGroup (int group)
 Sets active group for contours.
 
void setActiveVectorGroup (int group)
 Sets active vector group.
 
void syncToLayer (QgsMeshLayer *layer)
 Add groups to the model from mesh layer.
 

Protected Member Functions

bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
 

Detailed Description

Definition at line 148 of file qgsmeshdatasetgrouptreeview.h.

Constructor & Destructor Documentation

◆ QgsMeshDatasetGroupProxyModel()

QgsMeshDatasetGroupProxyModel::QgsMeshDatasetGroupProxyModel ( QAbstractItemModel *  sourceModel)

Definition at line 244 of file qgsmeshdatasetgrouptreeview.cpp.

Member Function Documentation

◆ activeScalarGroup()

int QgsMeshDatasetGroupProxyModel::activeScalarGroup ( ) const

Returns index of active group for contours.

Definition at line 250 of file qgsmeshdatasetgrouptreeview.cpp.

◆ activeVectorGroup()

int QgsMeshDatasetGroupProxyModel::activeVectorGroup ( ) const

Returns index of active group for vectors.

Definition at line 267 of file qgsmeshdatasetgrouptreeview.cpp.

◆ data()

QVariant QgsMeshDatasetGroupProxyModel::data ( const QModelIndex &  index,
int  role 
) const
override

Definition at line 292 of file qgsmeshdatasetgrouptreeview.cpp.

◆ filterAcceptsRow()

bool QgsMeshDatasetGroupProxyModel::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
overrideprotected

Definition at line 327 of file qgsmeshdatasetgrouptreeview.cpp.

◆ flags()

Qt::ItemFlags QgsMeshDatasetGroupProxyModel::flags ( const QModelIndex &  index) const
override

Definition at line 284 of file qgsmeshdatasetgrouptreeview.cpp.

◆ setActiveScalarGroup()

void QgsMeshDatasetGroupProxyModel::setActiveScalarGroup ( int  group)

Sets active group for contours.

Definition at line 255 of file qgsmeshdatasetgrouptreeview.cpp.

◆ setActiveVectorGroup()

void QgsMeshDatasetGroupProxyModel::setActiveVectorGroup ( int  group)

Sets active vector group.

Definition at line 272 of file qgsmeshdatasetgrouptreeview.cpp.

◆ syncToLayer()

void QgsMeshDatasetGroupProxyModel::syncToLayer ( QgsMeshLayer layer)

Add groups to the model from mesh layer.

Definition at line 319 of file qgsmeshdatasetgrouptreeview.cpp.


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