mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
to use when scenes have no textures available for some primitives Since there's no way to determine in advance whether or not a scene will actually have textures, this prevents the non-ideal situation arising where no content is shown on the map because we default to the texture renderer and don't have any textures to draw.
86 lines
2.7 KiB
Plaintext
86 lines
2.7 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/tiledscene/qgstiledscenetexturerenderer.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsTiledSceneTextureRenderer : QgsTiledSceneRenderer
|
|
{
|
|
%Docstring(signature="appended")
|
|
Renders tiled scene layers using textures.
|
|
|
|
.. versionadded:: 3.34
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgstiledscenetexturerenderer.h"
|
|
%End
|
|
public:
|
|
|
|
QgsTiledSceneTextureRenderer();
|
|
%Docstring
|
|
Constructor for QgsTiledSceneTextureRenderer.
|
|
%End
|
|
~QgsTiledSceneTextureRenderer();
|
|
|
|
virtual QString type() const;
|
|
|
|
virtual QgsTiledSceneRenderer *clone() const;
|
|
|
|
virtual QDomElement save( QDomDocument &doc, const QgsReadWriteContext &context ) const;
|
|
|
|
virtual Qgis::TiledSceneRendererFlags flags() const;
|
|
|
|
virtual void renderTriangle( QgsTiledSceneRenderContext &context, const QPolygonF &triangle );
|
|
|
|
virtual void renderLine( QgsTiledSceneRenderContext &context, const QPolygonF &line );
|
|
|
|
virtual void startRender( QgsTiledSceneRenderContext &context );
|
|
|
|
virtual void stopRender( QgsTiledSceneRenderContext &context );
|
|
|
|
|
|
static QgsTiledSceneRenderer *create( QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
|
|
%Docstring
|
|
Creates a textured renderer from an XML ``element``.
|
|
%End
|
|
|
|
static QgsFillSymbol *createDefaultFillSymbol() /Factory/;
|
|
%Docstring
|
|
Returns a copy of the default fill symbol used to render triangles without textures.
|
|
|
|
.. seealso:: :py:func:`setFillSymbol`
|
|
%End
|
|
|
|
QgsFillSymbol *fillSymbol() const;
|
|
%Docstring
|
|
Returns the fill symbol used to render triangles without textures.
|
|
|
|
.. seealso:: :py:func:`setFillSymbol`
|
|
%End
|
|
|
|
void setFillSymbol( QgsFillSymbol *symbol /Transfer/ );
|
|
%Docstring
|
|
Sets the fill ``symbol`` used to render triangles without textures.
|
|
|
|
Ownership of ``symbol`` is transferred.
|
|
|
|
.. seealso:: :py:func:`fillSymbol`
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/tiledscene/qgstiledscenetexturerenderer.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|