18#ifndef QGSTILEDSCENEWIREFRAMERENDERER_H
19#define QGSTILEDSCENEWIREFRAMERENDERER_H
44 QString
type()
const override;
122 std::unique_ptr< QgsFillSymbol> mFillSymbol;
123 std::unique_ptr< QgsLineSymbol> mLineSymbol;
124 bool mUseTextureColors =
false;
QFlags< TiledSceneRendererFlag > TiledSceneRendererFlags
Flags which control how tiled scene 2D renderers behave.
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
A line symbol type, for rendering LineString and MultiLineString geometries.
A container for the context for various read/write operations on objects.
Encapsulates the render context for a 2D tiled scene rendering operation.
virtual void stopRender(QgsTiledSceneRenderContext &context)
Must be called when a render cycle has finished, to allow the renderer to clean up.
virtual QString type() const =0
Returns the identifier of the renderer type.
virtual QDomElement save(QDomDocument &doc, const QgsReadWriteContext &context) const =0
Saves the renderer configuration to an XML element.
virtual QgsTiledSceneRenderer * clone() const =0
Create a deep copy of this renderer.
QgsTiledSceneRenderer()=default
virtual void renderTriangle(QgsTiledSceneRenderContext &context, const QPolygonF &triangle)=0
Renders a triangle.
virtual void renderLine(QgsTiledSceneRenderContext &context, const QPolygonF &line)=0
Renders a line.
virtual void startRender(QgsTiledSceneRenderContext &context)
Must be called when a new render cycle is started.
virtual Qgis::TiledSceneRendererFlags flags() const
Returns flags which control how the renderer behaves.
~QgsTiledSceneWireframeRenderer() override
void setFillSymbol(QgsFillSymbol *symbol)
Sets the fill symbol used to render triangles in the wireframe.
static std::unique_ptr< QgsLineSymbol > createDefaultLineSymbol()
Returns a copy of the default line symbol used to render lines in the wireframe.
static QgsTiledSceneRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Creates a textured renderer from an XML element.
void setLineSymbol(QgsLineSymbol *symbol)
Sets the line symbol used to render lines in the wireframe.
static std::unique_ptr< QgsFillSymbol > createDefaultFillSymbol()
Returns a copy of the default fill symbol used to render triangles in the wireframe.
QgsTiledSceneWireframeRenderer()
Constructor for QgsTiledSceneWireframeRenderer.
QgsFillSymbol * fillSymbol() const
Returns the fill symbol used to render triangles in the wireframe.
QgsLineSymbol * lineSymbol() const
Returns 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 re...
bool useTextureColors() const
Returns true if representative colors from the textures will be used to recolor the symbols used to r...