|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
Encapsulates settings relating to a raster layer input to a processing algorithm. More...
#include <qgsprocessingparameters.h>
Public Member Functions | |
| QgsProcessingRasterLayerDefinition (const QgsProperty &source, const double referenceScale=0, const int dpi=96) | |
| Constructor for QgsProcessingRasterLayerDefinition, accepting a QgsProperty source. | |
| QgsProcessingRasterLayerDefinition (const QString &source=QString(), const double referenceScale=0, const int dpi=96) | |
| Constructor for QgsProcessingRasterLayerDefinition, accepting a static string source. | |
| bool | loadVariant (const QVariantMap &map) |
| Loads this raster layer definition from a QVariantMap, wrapped in a QVariant. | |
| operator QVariant () const | |
| Allows direct construction of QVariants. | |
| bool | operator!= (const QgsProcessingRasterLayerDefinition &other) const |
| bool | operator== (const QgsProcessingRasterLayerDefinition &other) const |
| QVariant | toVariant () const |
| Saves this raster layer definition to a QVariantMap, wrapped in a QVariant. | |
Public Attributes | |
| int | dpi = 96 |
| Indicates the resolution of the raster source (e.g., a WMS server). | |
| double | referenceScale = 0 |
| If set to a value > 0, sets a scale at which a raster (e.g., a WMS) should be requested or rendered. | |
| QgsProperty | source |
| Source definition. | |
Encapsulates settings relating to a raster layer input to a processing algorithm.
Definition at line 205 of file qgsprocessingparameters.h.
|
inline |
Constructor for QgsProcessingRasterLayerDefinition, accepting a static string source.
The optional referenceScale can be set to a value > 0 to indicate the reference scale at which a raster layer should be requested or rendered. For instance, a WMS image.
The optional dpi argument can be used to specify the resolution a raster provider (e.g., a WMS server) is using to generate the raster.
Definition at line 218 of file qgsprocessingparameters.h.
|
inline |
Constructor for QgsProcessingRasterLayerDefinition, accepting a QgsProperty source.
The optional referenceScale can be set to a value > 0 to indicate the reference scale at which a raster layer should be requested or rendered. For instance, a WMS image.
The optional dpi argument can be used to specify the resolution a raster provider (e.g., a WMS server) is using to generate the raster.
Definition at line 233 of file qgsprocessingparameters.h.
| bool QgsProcessingRasterLayerDefinition::loadVariant | ( | const QVariantMap & | map | ) |
Loads this raster layer definition from a QVariantMap, wrapped in a QVariant.
You can use QgsXmlUtils::readVariant to load it from an XML document.
Definition at line 86 of file qgsprocessingparameters.cpp.
|
inline |
Allows direct construction of QVariants.
Definition at line 282 of file qgsprocessingparameters.h.
|
inline |
Definition at line 276 of file qgsprocessingparameters.h.
|
inline |
Definition at line 269 of file qgsprocessingparameters.h.
| QVariant QgsProcessingRasterLayerDefinition::toVariant | ( | ) | const |
Saves this raster layer definition to a QVariantMap, wrapped in a QVariant.
You can use QgsXmlUtils::writeVariant to save it to an XML document.
Definition at line 77 of file qgsprocessingparameters.cpp.
| int QgsProcessingRasterLayerDefinition::dpi = 96 |
Indicates the resolution of the raster source (e.g., a WMS server).
By default 96 DPI.
Definition at line 252 of file qgsprocessingparameters.h.
| double QgsProcessingRasterLayerDefinition::referenceScale = 0 |
If set to a value > 0, sets a scale at which a raster (e.g., a WMS) should be requested or rendered.
Definition at line 247 of file qgsprocessingparameters.h.
| QgsProperty QgsProcessingRasterLayerDefinition::source |
Source definition.
Usually a static property set to a source layer's ID or file name.
Definition at line 242 of file qgsprocessingparameters.h.