QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
Public Types | Signals | Public Member Functions | List of all members
QgsMeshRendererMeshSettingsWidget Class Reference

A widget for setup of the mesh frame settings of the mesh layer. More...

#include <qgsmeshrenderermeshsettingswidget.h>

Inheritance diagram for QgsMeshRendererMeshSettingsWidget:
Inheritance graph
[legend]

Public Types

enum  MeshType { Native , Triangular , Edge }
 

Signals

void widgetChanged ()
 Mesh rendering settings changed.
 

Public Member Functions

 QgsMeshRendererMeshSettingsWidget (QWidget *parent=nullptr)
 A widget to hold the renderer mesh settings for a mesh layer.
 
void setLayer (QgsMeshLayer *layer, MeshType meshType)
 Associates mesh layer with the widget.
 
QgsMeshRendererMeshSettings settings () const
 Returns the mesh rendering settings (native or triangular or edge)
 
void syncToLayer ()
 Synchronizes widgets state with associated mesh layer.
 

Detailed Description

A widget for setup of the mesh frame settings of the mesh layer.

Can be used for native, triangular and edge mesh renderer settings.

Definition at line 37 of file qgsmeshrenderermeshsettingswidget.h.

Member Enumeration Documentation

◆ MeshType

Enumerator
Native 
Triangular 
Edge 

Definition at line 43 of file qgsmeshrenderermeshsettingswidget.h.

Constructor & Destructor Documentation

◆ QgsMeshRendererMeshSettingsWidget()

QgsMeshRendererMeshSettingsWidget::QgsMeshRendererMeshSettingsWidget ( QWidget *  parent = nullptr)

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

Parameters
parentParent object

Definition at line 24 of file qgsmeshrenderermeshsettingswidget.cpp.

Member Function Documentation

◆ setLayer()

void QgsMeshRendererMeshSettingsWidget::setLayer ( QgsMeshLayer layer,
MeshType  meshType 
)

Associates mesh layer with the widget.

Parameters
layermesh layer that contains mesh frame
meshTypewhether use settings for triangular mesh or native mesh or edge mesh

Definition at line 46 of file qgsmeshrenderermeshsettingswidget.cpp.

◆ settings()

QgsMeshRendererMeshSettings QgsMeshRendererMeshSettingsWidget::settings ( ) const

Returns the mesh rendering settings (native or triangular or edge)

Definition at line 52 of file qgsmeshrenderermeshsettingswidget.cpp.

◆ syncToLayer()

void QgsMeshRendererMeshSettingsWidget::syncToLayer ( )

Synchronizes widgets state with associated mesh layer.

Definition at line 61 of file qgsmeshrenderermeshsettingswidget.cpp.

◆ widgetChanged

void QgsMeshRendererMeshSettingsWidget::widgetChanged ( )
signal

Mesh rendering settings changed.


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