|
| QgsWmsRenderContext (const QgsProject *project, QgsServerInterface *interface) |
| Constructor for QgsWmsRenderContext. More...
|
|
| ~QgsWmsRenderContext () |
| Destructor for QgsWmsRenderContext. More...
|
|
qreal | dotsPerMm () const |
| Returns default dots per mm according to the current configuration. More...
|
|
QStringList | flattenedQueryLayers (const QStringList &layerNames) const |
| Returns a list of query layer names where group names are replaced by the names of their layer components. More...
|
|
int | imageQuality () const |
| Returns the image quality to use for rendering according to the current configuration. More...
|
|
bool | isExternalLayer (const QString &name) const |
| Returns true if the layer is an external layer, false otherwise. More...
|
|
bool | isValidGroup (const QString &name) const |
| Returns true if name is a group. More...
|
|
bool | isValidLayer (const QString &nickname) const |
| Returns true if the layer has to be rendered, false otherwise. More...
|
|
bool | isValidWidthHeight () const |
| Returns true if width and height are valid according to the maximum values defined within the project, false otherwise. More...
|
|
bool | isValidWidthHeight (int width, int height) const |
| Returns true if width and height are valid according to the maximum image width/height. More...
|
|
QgsMapLayer * | layer (const QString &nickname) const |
| Returns the layer corresponding to the nickname, or a nullptr if not found or if the layer do not need to be rendered. More...
|
|
QMap< QString, QList< QgsMapLayer * > > | layerGroups () const |
| Returns a map having layer group names as keys and a list of layers as values. More...
|
|
QString | layerNickname (const QgsMapLayer &layer) const |
| Returns the nickname (short name, id or name) of the layer according to the current configuration. More...
|
|
QList< QgsMapLayer * > | layers () const |
| Returns a list of all layers read from the project. More...
|
|
QList< QgsMapLayer * > | layersFromGroup (const QString &nickname) const |
| Returns the group's layers list corresponding to the nickname, or an empty list if not found. More...
|
|
QList< QgsMapLayer * > | layersToRender () const |
| Returns a list of all layers to actually render according to the current configuration. More...
|
|
int | mapHeight () const |
| Returns HEIGHT or SRCHEIGHT according to UseSrcWidthHeight flag. More...
|
|
QSize | mapSize (bool aspectRatio=true) const |
| Returns the size (in pixels) of the map to render, according to width and height WMS parameters as well as the aspectRatio option. More...
|
|
double | mapTileBuffer (int mapWidth) const |
| Returns the tile buffer in geographical units for the given map width in pixels. More...
|
|
int | mapWidth () const |
| Returns WIDTH or SRCWIDTH according to UseSrcWidthHeight flag. More...
|
|
QgsWmsParameters | parameters () const |
| Returns WMS parameters. More...
|
|
QgsWmsParametersLayer | parameters (const QgsMapLayer &layer) const |
| Returns WMS parameters for a specific layer. More...
|
|
int | precision () const |
| Returns the precision to use according to the current configuration. More...
|
|
const QgsProject * | project () const |
| Returns the project. More...
|
|
bool | renderMapTiles () const |
| Returns true if WMS requests should use the QgsMapSettings::RenderMapTile flag, so that no visible artifacts are visible between adjacent tiles. More...
|
|
double | scaleDenominator () const |
| Returns the scale denominator to use for rendering according to the current configuration. More...
|
|
void | setFlag (Flag flag, bool on=true) |
| Sets or unsets a rendering flag according to the on value. More...
|
|
void | setParameters (const QgsWmsParameters ¶meters) |
| Sets WMS parameters. More...
|
|
void | setScaleDenominator (double scaleDenominator) |
| Sets a custom scale denominator. More...
|
|
const QgsServerSettings & | settings () const |
| Returns settings of the server. More...
|
|
QDomElement | sld (const QgsMapLayer &layer) const |
| Returns a SLD document for a specific layer. More...
|
|
QString | style (const QgsMapLayer &layer) const |
| Returns a style's name for a specific layer. More...
|
|
bool | testFlag (Flag flag) const |
| Returns the status of a rendering flag. More...
|
|
int | tileBuffer () const |
| Returns the tile buffer value to use for rendering according to the current configuration. More...
|
|
bool | updateExtent () const |
| Returns true if the extent has to be updated before the rendering, false otherwise. More...
|
|