QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
|
Map renderer for WMS requests. More...
#include <qgswmsrenderer.h>
Public Types | |
typedef QHash< QgsVectorLayer *, SymbolSet > | HitTest |
typedef QSet< QString > | SymbolSet |
Public Member Functions | |
QgsRenderer (const QgsWmsRenderContext &context) | |
Constructor for QgsRenderer. More... | |
~QgsRenderer () | |
Destructor for QgsRenderer. More... | |
void | configureLayers (QList< QgsMapLayer *> &layers, QgsMapSettings *settings=nullptr) |
Configures layers for rendering optionally considering the map settings. More... | |
QgsDxfExport | getDxf () |
Returns the map as DXF data. More... | |
QByteArray | getFeatureInfo (const QString &version="1.3.0") |
Creates an xml document that describes the result of the getFeatureInfo request. More... | |
QImage * | getLegendGraphics (QgsLayerTreeModel &model) |
Returns the map legend as an image (or nullptr in case of error). More... | |
QImage * | getLegendGraphics (QgsLayerTreeModelLegendNode &nodeModel) |
Returns the map legend as an image (or nullptr in case of error). More... | |
QImage * | getMap () |
Returns the map as an image (or nullptr in case of error). More... | |
QByteArray | getPrint () |
Returns printed page as binary. More... | |
HitTest | symbols () |
Returns the hit test according to the current context. More... | |
typedef QHash<QgsVectorLayer *, SymbolSet> QgsWms::QgsRenderer::HitTest |
Definition at line 98 of file qgswmsrenderer.h.
typedef QSet<QString> QgsWms::QgsRenderer::SymbolSet |
Definition at line 97 of file qgswmsrenderer.h.
QgsWms::QgsRenderer::QgsRenderer | ( | const QgsWmsRenderContext & | context | ) |
Constructor for QgsRenderer.
context | The rendering context. |
Definition at line 98 of file qgswmsrenderer.cpp.
QgsWms::QgsRenderer::~QgsRenderer | ( | ) |
Destructor for QgsRenderer.
Definition at line 107 of file qgswmsrenderer.cpp.
void QgsWms::QgsRenderer::configureLayers | ( | QList< QgsMapLayer *> & | layers, |
QgsMapSettings * | settings = nullptr |
||
) |
Configures layers for rendering optionally considering the map settings.
Definition at line 3046 of file qgswmsrenderer.cpp.
QgsDxfExport QgsWms::QgsRenderer::getDxf | ( | ) |
Returns the map as DXF data.
Definition at line 785 of file qgswmsrenderer.cpp.
QByteArray QgsWms::QgsRenderer::getFeatureInfo | ( | const QString & | version = "1.3.0" | ) |
Creates an xml document that describes the result of the getFeatureInfo request.
May throw an exception
Definition at line 857 of file qgswmsrenderer.cpp.
QImage * QgsWms::QgsRenderer::getLegendGraphics | ( | QgsLayerTreeModel & | model | ) |
Returns the map legend as an image (or nullptr
in case of error).
The caller takes ownership of the image object.
model | The layer tree model to use for building the legend |
Definition at line 112 of file qgswmsrenderer.cpp.
QImage * QgsWms::QgsRenderer::getLegendGraphics | ( | QgsLayerTreeModelLegendNode & | nodeModel | ) |
Returns the map legend as an image (or nullptr
in case of error).
The caller takes ownership of the image object.
nodeModel | The node model to use for building the legend |
Definition at line 146 of file qgswmsrenderer.cpp.
QImage * QgsWms::QgsRenderer::getMap | ( | ) |
Returns the map as an image (or nullptr
in case of error).
The caller takes ownership of the image object).
Definition at line 737 of file qgswmsrenderer.cpp.
QByteArray QgsWms::QgsRenderer::getPrint | ( | ) |
Returns printed page as binary.
Definition at line 261 of file qgswmsrenderer.cpp.
QgsRenderer::HitTest QgsWms::QgsRenderer::symbols | ( | ) |
Returns the hit test according to the current context.
Definition at line 225 of file qgswmsrenderer.cpp.