QGIS API Documentation
3.14.0-Pi (9f7028fd23)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
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
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 Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
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
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
3d
terrain
quantizedmeshterraingenerator.h
Go to the documentation of this file.
1
/***************************************************************************
2
quantizedmeshterraingenerator.h
3
---------------------
4
begin : July 2017
5
copyright : (C) 2017 by Martin Dobias
6
email : wonder dot sk at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
#ifndef QUANTIZEDMESHTERRAINGENERATOR_H
16
#define QUANTIZEDMESHTERRAINGENERATOR_H
17
18
#include "
qgsterraingenerator.h
"
19
20
26
class
QuantizedMeshTerrainGenerator
:
public
QgsTerrainGenerator
27
{
28
public
:
29
QuantizedMeshTerrainGenerator
();
30
32
void
setBaseTileFromExtent
(
const
QgsRectangle
&extentInTerrainCrs );
33
35
void
quadTreeTileToBaseTile
(
int
x,
int
y,
int
z,
int
&tx,
int
&ty,
int
&tz )
const
;
36
37
QgsTerrainGenerator::Type
type
()
const override
;
38
QgsRectangle
extent
()
const override
;
39
void
writeXml
( QDomElement &elem )
const override
;
40
void
readXml
(
const
QDomElement &elem )
override
;
41
42
QgsChunkLoader *
createChunkLoader
( QgsChunkNode *node )
const
override
SIP_FACTORY
;
43
44
int
terrainBaseX
,
terrainBaseY
,
terrainBaseZ
;
45
};
46
47
48
#endif // QUANTIZEDMESHTERRAINGENERATOR_H
QuantizedMeshTerrainGenerator::setBaseTileFromExtent
void setBaseTileFromExtent(const QgsRectangle &extentInTerrainCrs)
Determines base tile from map extent.
Definition:
quantizedmeshterraingenerator.cpp:119
QuantizedMeshTerrainGenerator::readXml
void readXml(const QDomElement &elem) override
Read terrain generator's configuration from XML.
Definition:
quantizedmeshterraingenerator.cpp:150
QuantizedMeshTerrainGenerator::terrainBaseZ
int terrainBaseZ
Coordinates of the base tile.
Definition:
quantizedmeshterraingenerator.h:57
QuantizedMeshTerrainGenerator::QuantizedMeshTerrainGenerator
QuantizedMeshTerrainGenerator()
Definition:
quantizedmeshterraingenerator.cpp:113
QuantizedMeshTerrainGenerator::type
QgsTerrainGenerator::Type type() const override
What texture generator implementation is this.
Definition:
quantizedmeshterraingenerator.cpp:133
QuantizedMeshTerrainGenerator::createChunkLoader
QgsChunkLoader * createChunkLoader(QgsChunkNode *node) const override SIP_FACTORY
Definition:
quantizedmeshterraingenerator.cpp:158
QuantizedMeshTerrainGenerator::quadTreeTileToBaseTile
void quadTreeTileToBaseTile(int x, int y, int z, int &tx, int &ty, int &tz) const
Converts tile coordinates (x,y,z) in our quadtree to tile coordinates of quantized mesh tree.
Definition:
quantizedmeshterraingenerator.cpp:124
QgsRectangle
Definition:
qgsrectangle.h:41
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QuantizedMeshTerrainGenerator::extent
QgsRectangle extent() const override
extent of the terrain in terrain's CRS
Definition:
quantizedmeshterraingenerator.cpp:138
QgsTerrainGenerator
Definition:
qgsterraingenerator.h:47
qgsterraingenerator.h
QuantizedMeshTerrainGenerator::writeXml
void writeXml(QDomElement &elem) const override
Write terrain generator's configuration to XML.
Definition:
quantizedmeshterraingenerator.cpp:143
QgsTerrainGenerator::Type
Type
Enumeration of the available terrain generators.
Definition:
qgsterraingenerator.h:52
QuantizedMeshTerrainGenerator::terrainBaseY
int terrainBaseY
Definition:
quantizedmeshterraingenerator.h:57
QuantizedMeshTerrainGenerator::terrainBaseX
int terrainBaseX
Definition:
quantizedmeshterraingenerator.h:57
QuantizedMeshTerrainGenerator
Definition:
quantizedmeshterraingenerator.h:26
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17