QGIS API Documentation
3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
src
core
tiledscene
qgstiledscenetexturerenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgstiledscenetexturerenderer.h
3
--------------------
4
begin : August 2023
5
copyright : (C) 2023 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSTILEDSCENETEXTURERENDERER_H
19
#define QGSTILEDSCENETEXTURERENDERER_H
20
21
#include "
qgstiledscenerenderer.h
"
22
#include "qgis_core.h"
23
#include "
qgis_sip.h
"
24
25
class
QgsFillSymbol
;
26
33
class
CORE_EXPORT
QgsTiledSceneTextureRenderer
:
public
QgsTiledSceneRenderer
34
{
35
public
:
36
40
QgsTiledSceneTextureRenderer
();
41
~QgsTiledSceneTextureRenderer
();
42
43
QString
type
()
const override
;
44
QgsTiledSceneRenderer
*
clone
()
const override
;
45
QDomElement
save
( QDomDocument &doc,
const
QgsReadWriteContext
&context )
const override
;
46
Qgis::TiledSceneRendererFlags
flags
()
const override
;
47
void
renderTriangle
(
QgsTiledSceneRenderContext
&context,
const
QPolygonF &triangle )
override
;
48
void
renderLine
(
QgsTiledSceneRenderContext
&context,
const
QPolygonF &line )
override
;
49
void
startRender
(
QgsTiledSceneRenderContext
&context )
override
;
50
void
stopRender
(
QgsTiledSceneRenderContext
&context )
override
;
51
55
static
QgsTiledSceneRenderer
*create( QDomElement &element,
const
QgsReadWriteContext
&context )
SIP_FACTORY
;
56
62
static
QgsFillSymbol
*createDefaultFillSymbol()
SIP_FACTORY
;
63
69
QgsFillSymbol
*fillSymbol() const;
70
78
void
setFillSymbol(
QgsFillSymbol
*symbol
SIP_TRANSFER
);
79
80
private:
81
std::unique_ptr<
QgsFillSymbol
> mFillSymbol;
82
};
83
84
#endif
// QGSTILEDSCENETEXTURERENDERER_H
Qgis::TiledSceneRendererFlags
QFlags< TiledSceneRendererFlag > TiledSceneRendererFlags
Flags which control how tiled scene 2D renderers behave.
Definition
qgis.h:5311
QgsFillSymbol
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Definition
qgsfillsymbol.h:30
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition
qgsreadwritecontext.h:34
QgsTiledSceneRenderContext
Encapsulates the render context for a 2D tiled scene rendering operation.
Definition
qgstiledscenerenderer.h:38
QgsTiledSceneRenderer
Abstract base class for 2d tiled scene renderers.
Definition
qgstiledscenerenderer.h:120
QgsTiledSceneRenderer::stopRender
virtual void stopRender(QgsTiledSceneRenderContext &context)
Must be called when a render cycle has finished, to allow the renderer to clean up.
Definition
qgstiledscenerenderer.cpp:105
QgsTiledSceneRenderer::type
virtual QString type() const =0
Returns the identifier of the renderer type.
QgsTiledSceneRenderer::save
virtual QDomElement save(QDomDocument &doc, const QgsReadWriteContext &context) const =0
Saves the renderer configuration to an XML element.
QgsTiledSceneRenderer::clone
virtual QgsTiledSceneRenderer * clone() const =0
Create a deep copy of this renderer.
QgsTiledSceneRenderer::renderTriangle
virtual void renderTriangle(QgsTiledSceneRenderContext &context, const QPolygonF &triangle)=0
Renders a triangle.
QgsTiledSceneRenderer::renderLine
virtual void renderLine(QgsTiledSceneRenderContext &context, const QPolygonF &line)=0
Renders a line.
QgsTiledSceneRenderer::startRender
virtual void startRender(QgsTiledSceneRenderContext &context)
Must be called when a new render cycle is started.
Definition
qgstiledscenerenderer.cpp:91
QgsTiledSceneRenderer::flags
virtual Qgis::TiledSceneRendererFlags flags() const
Returns flags which control how the renderer behaves.
Definition
qgstiledscenerenderer.cpp:70
QgsTiledSceneTextureRenderer
Renders tiled scene layers using textures.
Definition
qgstiledscenetexturerenderer.h:34
QgsTiledSceneTextureRenderer::~QgsTiledSceneTextureRenderer
~QgsTiledSceneTextureRenderer()
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:36
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
qgstiledscenerenderer.h
Generated on Sat Nov 23 2024 09:26:05 for QGIS API Documentation by
1.9.8