QGIS API Documentation  3.14.0-Pi (9f7028fd23)
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 
27 {
28  public:
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 
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