QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
|
Represents a mesh renderer settings for scalar datasets. More...
#include <qgsmeshrenderersettings.h>
Public Types | |
enum | DataResamplingMethod { None = 0 , NeighbourAverage } |
Resampling of value from dataset. More... | |
Public Member Functions | |
double | classificationMaximum () const |
Returns max value used for creation of the color ramp shader. More... | |
double | classificationMinimum () const |
Returns min value used for creation of the color ramp shader. More... | |
QgsColorRampShader | colorRampShader () const |
Returns color ramp shader function. More... | |
DataResamplingMethod | dataResamplingMethod () const |
Returns the type of interpolation to use to convert face defined datasets to values on vertices. More... | |
QgsInterpolatedLineWidth | edgeStrokeWidth () const |
Returns the stroke width used to render edges scalar dataset. More... | |
QgsUnitTypes::RenderUnit | edgeStrokeWidthUnit () const |
Returns the stroke width unit used to render edges scalar dataset. More... | |
double | opacity () const |
Returns opacity. More... | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context=QgsReadWriteContext()) |
Reads configuration from the given DOM element. More... | |
void | setClassificationMinimumMaximum (double minimum, double maximum) |
Sets min/max values used for creation of the color ramp shader. More... | |
void | setColorRampShader (const QgsColorRampShader &shader) |
Sets color ramp shader function. More... | |
void | setDataResamplingMethod (const DataResamplingMethod &dataResamplingMethod) |
Sets data interpolation method. More... | |
void | setEdgeStrokeWidth (const QgsInterpolatedLineWidth &strokeWidth) |
Sets the stroke width used to render edges scalar dataset. More... | |
void | setEdgeStrokeWidthUnit (const QgsUnitTypes::RenderUnit &edgeStrokeWidthUnit) |
Sets the stroke width unit used to render edges scalar dataset. More... | |
void | setOpacity (double opacity) |
Sets opacity. More... | |
QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context=QgsReadWriteContext()) const |
Writes configuration to a new DOM element. More... | |
Represents a mesh renderer settings for scalar datasets.
Definition at line 94 of file qgsmeshrenderersettings.h.
Resampling of value from dataset.
Enumerator | |
---|---|
None | Does not use resampling. |
NeighbourAverage | Does a simple average of values defined for all surrounding faces/vertices. |
Definition at line 105 of file qgsmeshrenderersettings.h.
double QgsMeshRendererScalarSettings::classificationMaximum | ( | ) | const |
Returns max value used for creation of the color ramp shader.
Definition at line 93 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererScalarSettings::classificationMinimum | ( | ) | const |
Returns min value used for creation of the color ramp shader.
Definition at line 91 of file qgsmeshrenderersettings.cpp.
QgsColorRampShader QgsMeshRendererScalarSettings::colorRampShader | ( | ) | const |
Returns color ramp shader function.
Definition at line 81 of file qgsmeshrenderersettings.cpp.
QgsMeshRendererScalarSettings::DataResamplingMethod QgsMeshRendererScalarSettings::dataResamplingMethod | ( | ) | const |
Returns the type of interpolation to use to convert face defined datasets to values on vertices.
Definition at line 105 of file qgsmeshrenderersettings.cpp.
QgsInterpolatedLineWidth QgsMeshRendererScalarSettings::edgeStrokeWidth | ( | ) | const |
Returns the stroke width used to render edges scalar dataset.
Definition at line 169 of file qgsmeshrenderersettings.cpp.
QgsUnitTypes::RenderUnit QgsMeshRendererScalarSettings::edgeStrokeWidthUnit | ( | ) | const |
Returns the stroke width unit used to render edges scalar dataset.
Definition at line 179 of file qgsmeshrenderersettings.cpp.
double QgsMeshRendererScalarSettings::opacity | ( | ) | const |
Returns opacity.
Definition at line 101 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererScalarSettings::readXml | ( | const QDomElement & | elem, |
const QgsReadWriteContext & | context = QgsReadWriteContext() |
||
) |
Reads configuration from the given DOM element.
Definition at line 144 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererScalarSettings::setClassificationMinimumMaximum | ( | double | minimum, |
double | maximum | ||
) |
Sets min/max values used for creation of the color ramp shader.
Definition at line 95 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererScalarSettings::setColorRampShader | ( | const QgsColorRampShader & | shader | ) |
Sets color ramp shader function.
Definition at line 86 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererScalarSettings::setDataResamplingMethod | ( | const DataResamplingMethod & | dataResamplingMethod | ) |
Sets data interpolation method.
Definition at line 110 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererScalarSettings::setEdgeStrokeWidth | ( | const QgsInterpolatedLineWidth & | strokeWidth | ) |
Sets the stroke width used to render edges scalar dataset.
Definition at line 174 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererScalarSettings::setEdgeStrokeWidthUnit | ( | const QgsUnitTypes::RenderUnit & | edgeStrokeWidthUnit | ) |
Sets the stroke width unit used to render edges scalar dataset.
Definition at line 184 of file qgsmeshrenderersettings.cpp.
void QgsMeshRendererScalarSettings::setOpacity | ( | double | opacity | ) |
Sets opacity.
Definition at line 103 of file qgsmeshrenderersettings.cpp.
QDomElement QgsMeshRendererScalarSettings::writeXml | ( | QDomDocument & | doc, |
const QgsReadWriteContext & | context = QgsReadWriteContext() |
||
) | const |
Writes configuration to a new DOM element.
Definition at line 115 of file qgsmeshrenderersettings.cpp.