QGIS API Documentation  3.24.2-Tisler (13c1a02865)
Public Slots | Signals | Public Member Functions | List of all members
QgsMeshActiveDatasetGroupTreeView Class Reference

Tree widget for display of the mesh dataset groups. More...

#include <qgsmeshdatasetgrouptreeview.h>

Inheritance diagram for QgsMeshActiveDatasetGroupTreeView:
Inheritance graph
[legend]

Public Slots

void setActiveScalarGroup (int group)
 Sets active group for contours. More...
 
void setActiveVectorGroup (int group)
 Sets active vector group. More...
 

Signals

void activeScalarGroupChanged (int groupIndex)
 Selected dataset group for contours changed. -1 for invalid group. More...
 
void activeVectorGroupChanged (int groupIndex)
 Selected dataset group for vectors changed. -1 for invalid group. More...
 

Public Member Functions

 QgsMeshActiveDatasetGroupTreeView (QWidget *parent=nullptr)
 
int activeScalarGroup () const
 Returns index of active group for contours. More...
 
int activeVectorGroup () const
 Returns index of active group for vectors. More...
 
void mousePressEvent (QMouseEvent *event) override
 
void setLayer (QgsMeshLayer *layer)
 Associates mesh layer with the widget. More...
 
void syncToLayer ()
 Synchronize widgets state with associated mesh layer. More...
 

Detailed Description

Tree widget for display of the mesh dataset groups.

One dataset group is selected (active)

Definition at line 255 of file qgsmeshdatasetgrouptreeview.h.

Constructor & Destructor Documentation

◆ QgsMeshActiveDatasetGroupTreeView()

QgsMeshActiveDatasetGroupTreeView::QgsMeshActiveDatasetGroupTreeView ( QWidget *  parent = nullptr)

Definition at line 390 of file qgsmeshdatasetgrouptreeview.cpp.

Member Function Documentation

◆ activeScalarGroup()

int QgsMeshActiveDatasetGroupTreeView::activeScalarGroup ( ) const

Returns index of active group for contours.

Definition at line 407 of file qgsmeshdatasetgrouptreeview.cpp.

◆ activeScalarGroupChanged

void QgsMeshActiveDatasetGroupTreeView::activeScalarGroupChanged ( int  groupIndex)
signal

Selected dataset group for contours changed. -1 for invalid group.

◆ activeVectorGroup()

int QgsMeshActiveDatasetGroupTreeView::activeVectorGroup ( ) const

Returns index of active group for vectors.

Definition at line 422 of file qgsmeshdatasetgrouptreeview.cpp.

◆ activeVectorGroupChanged

void QgsMeshActiveDatasetGroupTreeView::activeVectorGroupChanged ( int  groupIndex)
signal

Selected dataset group for vectors changed. -1 for invalid group.

◆ mousePressEvent()

void QgsMeshActiveDatasetGroupTreeView::mousePressEvent ( QMouseEvent *  event)
override

Definition at line 443 of file qgsmeshdatasetgrouptreeview.cpp.

◆ setActiveScalarGroup

void QgsMeshActiveDatasetGroupTreeView::setActiveScalarGroup ( int  group)
slot

Sets active group for contours.

Definition at line 412 of file qgsmeshdatasetgrouptreeview.cpp.

◆ setActiveVectorGroup

void QgsMeshActiveDatasetGroupTreeView::setActiveVectorGroup ( int  group)
slot

Sets active vector group.

Definition at line 427 of file qgsmeshdatasetgrouptreeview.cpp.

◆ setLayer()

void QgsMeshActiveDatasetGroupTreeView::setLayer ( QgsMeshLayer layer)

Associates mesh layer with the widget.

Definition at line 399 of file qgsmeshdatasetgrouptreeview.cpp.

◆ syncToLayer()

void QgsMeshActiveDatasetGroupTreeView::syncToLayer ( )

Synchronize widgets state with associated mesh layer.

Definition at line 437 of file qgsmeshdatasetgrouptreeview.cpp.


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