QGIS API Documentation  3.25.0-Master (10b47c2603)
Public Member Functions | List of all members
QgsMeshAvailableDatasetGroupTreeModel Class Reference

#include <qgsmeshdatasetgrouptreeview.h>

Inheritance diagram for QgsMeshAvailableDatasetGroupTreeModel:
Inheritance graph
[legend]

Public Member Functions

 QgsMeshAvailableDatasetGroupTreeModel (QObject *parent=nullptr)
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
- Public Member Functions inherited from QgsMeshDatasetGroupTreeModel
 QgsMeshDatasetGroupTreeModel (QObject *parent=nullptr)
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QgsMeshDatasetGroupTreeItemdatasetGroupTreeItem (int groupIndex)
 Returns the dataset group tree item with index, keeps ownership. More...
 
QgsMeshDatasetGroupTreeItemdatasetGroupTreeItem (QModelIndex index)
 Returns the dataset group tree item corresponding to index, keeps ownership. More...
 
QgsMeshDatasetGroupTreeItemdatasetGroupTreeRootItem ()
 Returns the dataset group root tree item, keeps ownership. More...
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
bool isEnabled (const QModelIndex &index) const
 Returns whether the dataset groups related to the QModelIndex is set as enabled. More...
 
QModelIndex parent (const QModelIndex &index) const override
 
void removeItem (const QModelIndex &index)
 Removes an item from the tree. More...
 
void resetDefault (QgsMeshLayer *meshLayer)
 Resets all groups with default state from the mesh layer. More...
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
void setAllGroupsAsEnabled (bool isEnabled)
 Sets all groups as enabled. More...
 
void setPersistentDatasetGroup (const QModelIndex &index, const QString &uri)
 Sets the dataset group as persistent with specified uri and for specified index. More...
 
void syncToLayer (QgsMeshLayer *layer)
 Synchronizes groups to the model from mesh layer. More...
 

Additional Inherited Members

- Public Types inherited from QgsMeshDatasetGroupTreeModel
enum  Roles {
  Name = Qt::UserRole , IsVector , IsActiveScalarDatasetGroup , IsActiveVectorDatasetGroup ,
  DatasetGroupIndex
}
 

Detailed Description

Definition at line 127 of file qgsmeshdatasetgrouptreeview.h.

Constructor & Destructor Documentation

◆ QgsMeshAvailableDatasetGroupTreeModel()

QgsMeshAvailableDatasetGroupTreeModel::QgsMeshAvailableDatasetGroupTreeModel ( QObject *  parent = nullptr)

Definition at line 771 of file qgsmeshdatasetgrouptreeview.cpp.

Member Function Documentation

◆ columnCount()

int QgsMeshAvailableDatasetGroupTreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 848 of file qgsmeshdatasetgrouptreeview.cpp.

◆ data()

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

Definition at line 774 of file qgsmeshdatasetgrouptreeview.cpp.

◆ flags()

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

Definition at line 820 of file qgsmeshdatasetgrouptreeview.cpp.

◆ headerData()

QVariant QgsMeshAvailableDatasetGroupTreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

Definition at line 831 of file qgsmeshdatasetgrouptreeview.cpp.

◆ setData()

bool QgsMeshAvailableDatasetGroupTreeModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
override

Definition at line 795 of file qgsmeshdatasetgrouptreeview.cpp.


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