QGIS API Documentation 3.39.0-Master (bca3cdb6021)
|
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. | |
QgsMesh3DAveragingMethod * | averagingMethod () 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. | |
Represents all mesh renderer settings.
Definition at line 678 of file qgsmeshrenderersettings.h.
QgsMeshRendererSettings::QgsMeshRendererSettings | ( | ) |
Constructs renderer with default single layer averaging method.
Definition at line 387 of file qgsmeshrenderersettings.cpp.
|
default |
int QgsMeshRendererSettings::activeScalarDatasetGroup | ( | ) | const |
Returns the active scalar dataset group.
Definition at line 507 of file qgsmeshrenderersettings.cpp.
int QgsMeshRendererSettings::activeVectorDatasetGroup | ( | ) | const |
Returns the active vector dataset group.
Definition at line 517 of file qgsmeshrenderersettings.cpp.
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.
|
inline |
Returns edge mesh renderer settings.
Definition at line 702 of file qgsmeshrenderersettings.h.
|
inline |
Returns whether groupIndex has existing scalar settings.
Definition at line 720 of file qgsmeshrenderersettings.h.
bool QgsMeshRendererSettings::hasSettings | ( | int | datasetGroupIndex | ) | const |
Returns whether the group with index has render settings (scalar or vector)
Definition at line 748 of file qgsmeshrenderersettings.cpp.
|
inline |
Returns whether groupIndex has existing vector settings.
Definition at line 737 of file qgsmeshrenderersettings.h.
|
inline |
Returns native mesh renderer settings.
Definition at line 689 of file qgsmeshrenderersettings.h.
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.
|
inline |
Removes scalar settings with groupIndex.
Definition at line 726 of file qgsmeshrenderersettings.h.
|
inline |
Removes vector settings for groupIndex.
Definition at line 743 of file qgsmeshrenderersettings.h.
|
inline |
Returns renderer settings.
Definition at line 711 of file qgsmeshrenderersettings.h.
void QgsMeshRendererSettings::setActiveScalarDatasetGroup | ( | int | activeScalarDatasetGroup | ) |
Sets the active scalar dataset group.
Definition at line 512 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererSettings::setActiveVectorDatasetGroup | ( | int | activeVectorDatasetGroup | ) |
Sets the active vector dataset group.
Definition at line 522 of file qgsmeshrenderersettings.cpp.
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.
|
inline |
Sets new edge mesh renderer settings.
Definition at line 708 of file qgsmeshrenderersettings.h.
|
inline |
Sets new native mesh renderer settings, triggers repaint.
Definition at line 691 of file qgsmeshrenderersettings.h.
|
inline |
Sets new renderer settings.
Definition at line 714 of file qgsmeshrenderersettings.h.
|
inline |
Sets new triangular mesh renderer settings.
Definition at line 696 of file qgsmeshrenderersettings.h.
|
inline |
Sets new renderer settings.
Definition at line 731 of file qgsmeshrenderersettings.h.
|
inline |
Returns triangular mesh renderer settings.
Definition at line 694 of file qgsmeshrenderersettings.h.
|
inline |
Returns renderer settings.
Definition at line 729 of file qgsmeshrenderersettings.h.
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.