QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
Renders tiled scene layers using the raw primitive wireframes. More...
#include <qgstiledscenewireframerenderer.h>
Public Member Functions | |
QgsTiledSceneWireframeRenderer () | |
Constructor for QgsTiledSceneWireframeRenderer. | |
~QgsTiledSceneWireframeRenderer () | |
QgsTiledSceneRenderer * | clone () const override |
Create a deep copy of this renderer. | |
QgsFillSymbol * | fillSymbol () const |
Returns the fill symbol used to render triangles in the wireframe. | |
Qgis::TiledSceneRendererFlags | flags () const override |
Returns flags which control how the renderer behaves. | |
QgsLineSymbol * | lineSymbol () const |
Returns the line symbol used to render lines in the wireframe. | |
void | renderLine (QgsTiledSceneRenderContext &context, const QPolygonF &line) override |
Renders a line. | |
void | renderTriangle (QgsTiledSceneRenderContext &context, const QPolygonF &triangle) override |
Renders a triangle. | |
QDomElement | save (QDomDocument &doc, const QgsReadWriteContext &context) const override |
Saves the renderer configuration to an XML element. | |
void | setFillSymbol (QgsFillSymbol *symbol) |
Sets the fill symbol used to render triangles in the wireframe. | |
void | setLineSymbol (QgsLineSymbol *symbol) |
Sets the line symbol used to render lines in the wireframe. | |
void | setUseTextureColors (bool enabled) |
Sets whether representative colors from the textures should be used to recolor the symbols used to render the wireframe. | |
void | startRender (QgsTiledSceneRenderContext &context) override |
Must be called when a new render cycle is started. | |
void | stopRender (QgsTiledSceneRenderContext &context) override |
Must be called when a render cycle has finished, to allow the renderer to clean up. | |
QString | type () const override |
Returns the identifier of the renderer type. | |
bool | useTextureColors () const |
Returns true if representative colors from the textures will be used to recolor the symbols used to render the wireframe. | |
Public Member Functions inherited from QgsTiledSceneRenderer | |
QgsTiledSceneRenderer ()=default | |
QgsTiledSceneRenderer (const QgsTiledSceneRenderer &other)=delete | |
QgsTiledSceneRenderer cannot be copied – use clone() instead. | |
virtual | ~QgsTiledSceneRenderer ()=default |
virtual QList< QgsLayerTreeModelLegendNode * > | createLegendNodes (QgsLayerTreeLayer *nodeLayer) |
Creates a set of legend nodes representing the renderer. | |
bool | isTileBorderRenderingEnabled () const |
Returns whether to render also borders of tiles. | |
virtual QStringList | legendRuleKeys () const |
Returns a list of all rule keys for legend nodes created by the renderer. | |
double | maximumScreenError () const |
Returns the maximum screen error allowed when rendering the tiled scene. | |
Qgis::RenderUnit | maximumScreenErrorUnit () const |
Returns the unit for the maximum screen error allowed when rendering the tiled scene. | |
QgsTiledSceneRenderer & | operator= (const QgsTiledSceneRenderer &other)=delete |
QgsTiledSceneRenderer cannot be copied – use clone() instead. | |
void | setMaximumScreenError (double error) |
Sets the maximum screen error allowed when rendering the tiled scene. | |
void | setMaximumScreenErrorUnit (Qgis::RenderUnit unit) |
Sets the unit for the maximum screen error allowed when rendering the tiled scene. | |
void | setTileBorderRenderingEnabled (bool enabled) |
Sets whether to render the borders of tiles. | |
Static Public Member Functions | |
static QgsTiledSceneRenderer * | create (QDomElement &element, const QgsReadWriteContext &context) |
Creates a textured renderer from an XML element. | |
static QgsFillSymbol * | createDefaultFillSymbol () |
Returns a copy of the default fill symbol used to render triangles in the wireframe. | |
static QgsLineSymbol * | createDefaultLineSymbol () |
Returns a copy of the default line symbol used to render lines in the wireframe. | |
Static Public Member Functions inherited from QgsTiledSceneRenderer | |
static QgsTiledSceneRenderer * | load (QDomElement &element, const QgsReadWriteContext &context) |
Creates a renderer from an XML element. | |
Additional Inherited Members | |
Protected Member Functions inherited from QgsTiledSceneRenderer | |
void | copyCommonProperties (QgsTiledSceneRenderer *destination) const |
Copies common tiled scene renderer properties (such as screen error) to the destination renderer. | |
void | restoreCommonProperties (const QDomElement &element, const QgsReadWriteContext &context) |
Restores common renderer properties (such as screen error) from the specified DOM element. | |
void | saveCommonProperties (QDomElement &element, const QgsReadWriteContext &context) const |
Saves common renderer properties (such as point size and screen error) to the specified DOM element. | |
Renders tiled scene layers using the raw primitive wireframes.
Definition at line 34 of file qgstiledscenewireframerenderer.h.
QgsTiledSceneWireframeRenderer::QgsTiledSceneWireframeRenderer | ( | ) |
Constructor for QgsTiledSceneWireframeRenderer.
Definition at line 23 of file qgstiledscenewireframerenderer.cpp.
|
default |
|
overridevirtual |
Create a deep copy of this renderer.
Should be implemented by all subclasses and generate a proper subclass.
Implements QgsTiledSceneRenderer.
Definition at line 36 of file qgstiledscenewireframerenderer.cpp.
|
static |
Creates a textured renderer from an XML element.
Definition at line 49 of file qgstiledscenewireframerenderer.cpp.
|
static |
Returns a copy of the default fill symbol used to render triangles in the wireframe.
Definition at line 79 of file qgstiledscenewireframerenderer.cpp.
|
static |
Returns a copy of the default line symbol used to render lines in the wireframe.
Definition at line 102 of file qgstiledscenewireframerenderer.cpp.
QgsFillSymbol * QgsTiledSceneWireframeRenderer::fillSymbol | ( | ) | const |
Returns the fill symbol used to render triangles in the wireframe.
Definition at line 92 of file qgstiledscenewireframerenderer.cpp.
|
overridevirtual |
Returns flags which control how the renderer behaves.
Reimplemented from QgsTiledSceneRenderer.
Definition at line 217 of file qgstiledscenewireframerenderer.cpp.
QgsLineSymbol * QgsTiledSceneWireframeRenderer::lineSymbol | ( | ) | const |
Returns the line symbol used to render lines in the wireframe.
Definition at line 110 of file qgstiledscenewireframerenderer.cpp.
|
overridevirtual |
Renders a line.
Implements QgsTiledSceneRenderer.
Definition at line 192 of file qgstiledscenewireframerenderer.cpp.
|
overridevirtual |
Renders a triangle.
Implements QgsTiledSceneRenderer.
Definition at line 160 of file qgstiledscenewireframerenderer.cpp.
|
overridevirtual |
Saves the renderer configuration to an XML element.
Implements QgsTiledSceneRenderer.
Definition at line 130 of file qgstiledscenewireframerenderer.cpp.
void QgsTiledSceneWireframeRenderer::setFillSymbol | ( | QgsFillSymbol * | symbol | ) |
Sets the fill symbol used to render triangles in the wireframe.
Ownership of symbol is transferred.
Definition at line 97 of file qgstiledscenewireframerenderer.cpp.
void QgsTiledSceneWireframeRenderer::setLineSymbol | ( | QgsLineSymbol * | symbol | ) |
Sets the line symbol used to render lines in the wireframe.
Ownership of symbol is transferred.
Definition at line 115 of file qgstiledscenewireframerenderer.cpp.
void QgsTiledSceneWireframeRenderer::setUseTextureColors | ( | bool | enabled | ) |
Sets whether representative colors from the textures should be used to recolor the symbols used to render the wireframe.
Definition at line 125 of file qgstiledscenewireframerenderer.cpp.
|
overridevirtual |
Must be called when a new render cycle is started.
A call to startRender() must always be followed by a corresponding call to stopRender() after all features have been rendered.
Reimplemented from QgsTiledSceneRenderer.
Definition at line 197 of file qgstiledscenewireframerenderer.cpp.
|
overridevirtual |
Must be called when a render cycle has finished, to allow the renderer to clean up.
Calls to stopRender() must always be preceded by a call to startRender().
Reimplemented from QgsTiledSceneRenderer.
Definition at line 207 of file qgstiledscenewireframerenderer.cpp.
|
overridevirtual |
Returns the identifier of the renderer type.
Implements QgsTiledSceneRenderer.
Definition at line 31 of file qgstiledscenewireframerenderer.cpp.
bool QgsTiledSceneWireframeRenderer::useTextureColors | ( | ) | const |
Returns true
if representative colors from the textures will be used to recolor the symbols used to render the wireframe.
Definition at line 120 of file qgstiledscenewireframerenderer.cpp.