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

Represents all mesh renderer settings. More...

#include <qgsmeshrenderersettings.h>

Public Member Functions

 QgsMeshRendererSettings ()
 Constructs renderer with default single layer averaging method.
 
 ~QgsMeshRendererSettings ()
 
int activeScalarDatasetGroup () const
 Returns the active scalar dataset group.
 
int activeVectorDatasetGroup () const
 Returns the active vector dataset group.
 
QgsMesh3DAveragingMethodaveragingMethod () const
 Returns averaging method for conversion of 3d stacked mesh data to 2d data.
 
QgsMeshRendererMeshSettings edgeMeshSettings () const
 Returns edge mesh renderer settings.
 
bool hasScalarSettings (int groupIndex) const
 Returns whether groupIndex has existing scalar settings.
 
bool hasSettings (int datasetGroupIndex) const
 Returns whether the group with index has render settings (scalar or vector)
 
bool hasVectorSettings (int groupIndex) const
 Returns whether groupIndex has existing vector settings.
 
QgsMeshRendererMeshSettings nativeMeshSettings () const
 Returns native mesh renderer settings.
 
void readXml (const QDomElement &elem, const QgsReadWriteContext &context=QgsReadWriteContext())
 Reads configuration from the given DOM element.
 
bool removeScalarSettings (int groupIndex)
 Removes scalar settings with groupIndex.
 
bool removeVectorSettings (int groupIndex)
 Removes vector settings for groupIndex.
 
QgsMeshRendererScalarSettings scalarSettings (int groupIndex) const
 Returns renderer settings.
 
void setActiveScalarDatasetGroup (int activeScalarDatasetGroup)
 Sets the active scalar dataset group.
 
void setActiveVectorDatasetGroup (int activeVectorDatasetGroup)
 Sets the active vector dataset group.
 
void setAveragingMethod (QgsMesh3DAveragingMethod *method)
 Sets averaging method for conversion of 3d stacked mesh data to 2d data.
 
void setEdgeMeshSettings (const QgsMeshRendererMeshSettings &settings)
 Sets new edge mesh renderer settings.
 
void setNativeMeshSettings (const QgsMeshRendererMeshSettings &settings)
 Sets new native mesh renderer settings, triggers repaint.
 
void setScalarSettings (int groupIndex, const QgsMeshRendererScalarSettings &settings)
 Sets new renderer settings.
 
void setTriangularMeshSettings (const QgsMeshRendererMeshSettings &settings)
 Sets new triangular mesh renderer settings.
 
void setVectorSettings (int groupIndex, const QgsMeshRendererVectorSettings &settings)
 Sets new renderer settings.
 
QgsMeshRendererMeshSettings triangularMeshSettings () const
 Returns triangular mesh renderer settings.
 
QgsMeshRendererVectorSettings vectorSettings (int groupIndex) const
 Returns renderer settings.
 
QDomElement writeXml (QDomDocument &doc, const QgsReadWriteContext &context=QgsReadWriteContext()) const
 Writes configuration to a new DOM element.
 

Detailed Description

Represents all mesh renderer settings.

Note
The API is considered EXPERIMENTAL and can be changed without a notice
Since
QGIS 3.4

Definition at line 682 of file qgsmeshrenderersettings.h.

Constructor & Destructor Documentation

◆ QgsMeshRendererSettings()

QgsMeshRendererSettings::QgsMeshRendererSettings ( )

Constructs renderer with default single layer averaging method.

Definition at line 387 of file qgsmeshrenderersettings.cpp.

◆ ~QgsMeshRendererSettings()

QgsMeshRendererSettings::~QgsMeshRendererSettings ( )
default

Member Function Documentation

◆ activeScalarDatasetGroup()

int QgsMeshRendererSettings::activeScalarDatasetGroup ( ) const

Returns the active scalar dataset group.

Since
QGIS 3.14

Definition at line 507 of file qgsmeshrenderersettings.cpp.

◆ activeVectorDatasetGroup()

int QgsMeshRendererSettings::activeVectorDatasetGroup ( ) const

Returns the active vector dataset group.

Since
QGIS 3.14

Definition at line 517 of file qgsmeshrenderersettings.cpp.

◆ averagingMethod()

QgsMesh3DAveragingMethod * QgsMeshRendererSettings::averagingMethod ( ) const

Returns averaging method for conversion of 3d stacked mesh data to 2d data.

Caller does not own the resulting pointer

Definition at line 394 of file qgsmeshrenderersettings.cpp.

◆ edgeMeshSettings()

QgsMeshRendererMeshSettings QgsMeshRendererSettings::edgeMeshSettings ( ) const
inline

Returns edge mesh renderer settings.

Since
QGIS 3.14

Definition at line 706 of file qgsmeshrenderersettings.h.

◆ hasScalarSettings()

bool QgsMeshRendererSettings::hasScalarSettings ( int  groupIndex) const
inline

Returns whether groupIndex has existing scalar settings.

Since
QGIS 3.30.2

Definition at line 724 of file qgsmeshrenderersettings.h.

◆ hasSettings()

bool QgsMeshRendererSettings::hasSettings ( int  datasetGroupIndex) const

Returns whether the group with index has render settings (scalar or vector)

Since
QGIS 3.22

Definition at line 748 of file qgsmeshrenderersettings.cpp.

◆ hasVectorSettings()

bool QgsMeshRendererSettings::hasVectorSettings ( int  groupIndex) const
inline

Returns whether groupIndex has existing vector settings.

Since
QGIS 3.30.2

Definition at line 741 of file qgsmeshrenderersettings.h.

◆ nativeMeshSettings()

QgsMeshRendererMeshSettings QgsMeshRendererSettings::nativeMeshSettings ( ) const
inline

Returns native mesh renderer settings.

Definition at line 693 of file qgsmeshrenderersettings.h.

◆ readXml()

void QgsMeshRendererSettings::readXml ( const QDomElement &  elem,
const QgsReadWriteContext context = QgsReadWriteContext() 
)

Reads configuration from the given DOM element.

Definition at line 456 of file qgsmeshrenderersettings.cpp.

◆ removeScalarSettings()

bool QgsMeshRendererSettings::removeScalarSettings ( int  groupIndex)
inline

Removes scalar settings with groupIndex.

Since
QGIS 3.30.2

Definition at line 730 of file qgsmeshrenderersettings.h.

◆ removeVectorSettings()

bool QgsMeshRendererSettings::removeVectorSettings ( int  groupIndex)
inline

Removes vector settings for groupIndex.

Since
QGIS 3.30.2

Definition at line 747 of file qgsmeshrenderersettings.h.

◆ scalarSettings()

QgsMeshRendererScalarSettings QgsMeshRendererSettings::scalarSettings ( int  groupIndex) const
inline

Returns renderer settings.

Definition at line 715 of file qgsmeshrenderersettings.h.

◆ setActiveScalarDatasetGroup()

void QgsMeshRendererSettings::setActiveScalarDatasetGroup ( int  activeScalarDatasetGroup)

Sets the active scalar dataset group.

Since
QGIS 3.14

Definition at line 512 of file qgsmeshrenderersettings.cpp.

◆ setActiveVectorDatasetGroup()

void QgsMeshRendererSettings::setActiveVectorDatasetGroup ( int  activeVectorDatasetGroup)

Sets the active vector dataset group.

Since
QGIS 3.14

Definition at line 522 of file qgsmeshrenderersettings.cpp.

◆ setAveragingMethod()

void QgsMeshRendererSettings::setAveragingMethod ( QgsMesh3DAveragingMethod method)

Sets averaging method for conversion of 3d stacked mesh data to 2d data.

Ownership of the method is not transferred.

Definition at line 399 of file qgsmeshrenderersettings.cpp.

◆ setEdgeMeshSettings()

void QgsMeshRendererSettings::setEdgeMeshSettings ( const QgsMeshRendererMeshSettings settings)
inline

Sets new edge mesh renderer settings.

Since
QGIS 3.14

Definition at line 712 of file qgsmeshrenderersettings.h.

◆ setNativeMeshSettings()

void QgsMeshRendererSettings::setNativeMeshSettings ( const QgsMeshRendererMeshSettings settings)
inline

Sets new native mesh renderer settings, triggers repaint.

Definition at line 695 of file qgsmeshrenderersettings.h.

◆ setScalarSettings()

void QgsMeshRendererSettings::setScalarSettings ( int  groupIndex,
const QgsMeshRendererScalarSettings settings 
)
inline

Sets new renderer settings.

Definition at line 718 of file qgsmeshrenderersettings.h.

◆ setTriangularMeshSettings()

void QgsMeshRendererSettings::setTriangularMeshSettings ( const QgsMeshRendererMeshSettings settings)
inline

Sets new triangular mesh renderer settings.

Definition at line 700 of file qgsmeshrenderersettings.h.

◆ setVectorSettings()

void QgsMeshRendererSettings::setVectorSettings ( int  groupIndex,
const QgsMeshRendererVectorSettings settings 
)
inline

Sets new renderer settings.

Definition at line 735 of file qgsmeshrenderersettings.h.

◆ triangularMeshSettings()

QgsMeshRendererMeshSettings QgsMeshRendererSettings::triangularMeshSettings ( ) const
inline

Returns triangular mesh renderer settings.

Definition at line 698 of file qgsmeshrenderersettings.h.

◆ vectorSettings()

QgsMeshRendererVectorSettings QgsMeshRendererSettings::vectorSettings ( int  groupIndex) const
inline

Returns renderer settings.

Definition at line 733 of file qgsmeshrenderersettings.h.

◆ writeXml()

QDomElement QgsMeshRendererSettings::writeXml ( QDomDocument &  doc,
const QgsReadWriteContext context = QgsReadWriteContext() 
) const

Writes configuration to a new DOM element.

Definition at line 407 of file qgsmeshrenderersettings.cpp.


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