QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
Signals | Public Member Functions | List of all members
QgsMeshRendererScalarSettingsWidget Class Reference

A widget for setup of the scalar dataset renderer settings of a mesh layer. More...

#include <qgsmeshrendererscalarsettingswidget.h>

Inheritance diagram for QgsMeshRendererScalarSettingsWidget:
Inheritance graph
[legend]

Signals

void widgetChanged ()
 Mesh rendering settings changed. More...
 

Public Member Functions

 QgsMeshRendererScalarSettingsWidget (QWidget *parent=nullptr)
 A widget to hold the renderer scalar settings for a mesh layer. More...
 
void setActiveDatasetGroup (int groupIndex)
 Associates a dataset group with the widget (should be set before syncToLayer()) More...
 
void setLayer (QgsMeshLayer *layer)
 Associates mesh layer with the widget. More...
 
QgsMeshRendererScalarSettings settings () const
 Returns scalar settings. More...
 
void syncToLayer ()
 Synchronizes widgets state with associated mesh layer. More...
 

Detailed Description

A widget for setup of the scalar dataset renderer settings of a mesh layer.

The layer must be connected and an active dataset must be selected.

Definition at line 38 of file qgsmeshrendererscalarsettingswidget.h.

Constructor & Destructor Documentation

◆ QgsMeshRendererScalarSettingsWidget()

QgsMeshRendererScalarSettingsWidget::QgsMeshRendererScalarSettingsWidget ( QWidget *  parent = nullptr)

A widget to hold the renderer scalar settings for a mesh layer.

Parameters
parentParent object

Definition at line 28 of file qgsmeshrendererscalarsettingswidget.cpp.

Member Function Documentation

◆ setActiveDatasetGroup()

void QgsMeshRendererScalarSettingsWidget::setActiveDatasetGroup ( int  groupIndex)

Associates a dataset group with the widget (should be set before syncToLayer())

Definition at line 76 of file qgsmeshrendererscalarsettingswidget.cpp.

◆ setLayer()

void QgsMeshRendererScalarSettingsWidget::setLayer ( QgsMeshLayer layer)

Associates mesh layer with the widget.

Definition at line 70 of file qgsmeshrendererscalarsettingswidget.cpp.

◆ settings()

QgsMeshRendererScalarSettings QgsMeshRendererScalarSettingsWidget::settings ( ) const

Returns scalar settings.

Definition at line 82 of file qgsmeshrendererscalarsettingswidget.cpp.

◆ syncToLayer()

void QgsMeshRendererScalarSettingsWidget::syncToLayer ( )

Synchronizes widgets state with associated mesh layer.

Definition at line 104 of file qgsmeshrendererscalarsettingswidget.cpp.

◆ widgetChanged

void QgsMeshRendererScalarSettingsWidget::widgetChanged ( )
signal

Mesh rendering settings changed.


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