QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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  Q_OBJECT
29 
30  public:
32 
34  void setBaseTileFromExtent( const QgsRectangle &extentInTerrainCrs );
35 
37  void quadTreeTileToBaseTile( int x, int y, int z, int &tx, int &ty, int &tz ) const;
38 
39  QgsTerrainGenerator::Type type() const override;
40  QgsRectangle extent() const override;
41  void writeXml( QDomElement &elem ) const override;
42  void readXml( const QDomElement &elem ) override;
43 
44  QgsChunkLoader *createChunkLoader( QgsChunkNode *node ) const override SIP_FACTORY;
45 
47 };
48 
49 
50 #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:59
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
A rectangle specified with double values.
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
Base class for generators of terrain.
Definition: qgsterraingenerator.h:49
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:55
QuantizedMeshTerrainGenerator::terrainBaseY
int terrainBaseY
Definition: quantizedmeshterraingenerator.h:59
QuantizedMeshTerrainGenerator::terrainBaseX
int terrainBaseX
Definition: quantizedmeshterraingenerator.h:59
QuantizedMeshTerrainGenerator
Terrain generator using downloaded terrain tiles using quantized mesh specification.
Definition: quantizedmeshterraingenerator.h:26