QGIS API Documentation
3.34.0-Prizren (ffbdd678812)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
core
tiledscene
qgstiledscenewireframerenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgstiledscenewireframerenderer.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 QGSTILEDSCENEWIREFRAMERENDERER_H
19
#define QGSTILEDSCENEWIREFRAMERENDERER_H
20
21
#include "
qgstiledscenerenderer.h
"
22
#include "qgis_core.h"
23
#include "
qgis_sip.h
"
24
25
class
QgsFillSymbol
;
26
class
QgsLineSymbol
;
27
34
class
CORE_EXPORT
QgsTiledSceneWireframeRenderer
:
public
QgsTiledSceneRenderer
35
{
36
public
:
37
41
QgsTiledSceneWireframeRenderer
();
42
~QgsTiledSceneWireframeRenderer
();
43
44
QString
type
()
const override
;
45
QgsTiledSceneRenderer
*
clone
()
const override
;
46
QDomElement
save
( QDomDocument &doc,
const
QgsReadWriteContext
&context )
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
Qgis::TiledSceneRendererFlags
flags
()
const override
;
52
56
static
QgsTiledSceneRenderer
*create( QDomElement &element,
const
QgsReadWriteContext
&context )
SIP_FACTORY
;
57
63
static
QgsFillSymbol
*createDefaultFillSymbol()
SIP_FACTORY
;
64
70
QgsFillSymbol
*fillSymbol() const;
71
79
void
setFillSymbol(
QgsFillSymbol
*symbol
SIP_TRANSFER
);
80
86
static
QgsLineSymbol
*createDefaultLineSymbol()
SIP_FACTORY
;
87
93
QgsLineSymbol
*lineSymbol() const;
94
102
void
setLineSymbol(
QgsLineSymbol
*symbol
SIP_TRANSFER
);
103
110
bool
useTextureColors() const;
111
118
void
setUseTextureColors(
bool
enabled );
119
120
private:
121
122
std::unique_ptr<
QgsFillSymbol
> mFillSymbol;
123
std::unique_ptr<
QgsLineSymbol
> mLineSymbol;
124
bool
mUseTextureColors = false;
125
126
};
34
class
CORE_EXPORT
QgsTiledSceneWireframeRenderer
:
public
QgsTiledSceneRenderer
{
…
};
127
128
#endif
// QGSTILEDSCENEWIREFRAMERENDERER_H
QgsFillSymbol
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Definition
qgsfillsymbol.h:30
QgsLineSymbol
A line symbol type, for rendering LineString and MultiLineString geometries.
Definition
qgslinesymbol.h:30
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition
qgsreadwritecontext.h:35
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:123
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
QgsTiledSceneWireframeRenderer
Renders tiled scene layers using the raw primitive wireframes.
Definition
qgstiledscenewireframerenderer.h:35
QgsTiledSceneWireframeRenderer::~QgsTiledSceneWireframeRenderer
~QgsTiledSceneWireframeRenderer()
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 Mon Oct 30 2023 18:42:25 for QGIS API Documentation by
1.9.8