QGIS API Documentation  3.6.0-Noosa (5873452)
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
A rectangle specified with double values.
Definition: qgsrectangle.h:41
void readXml(const QDomElement &elem) override
Read terrain generator's configuration from XML.
QgsChunkLoader * createChunkLoader(QgsChunkNode *node) const override SIP_FACTORY
QgsRectangle extent() const override
extent of the terrain in terrain's CRS
QgsTerrainGenerator::Type type() const override
What texture generator implementation is this.
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...
3 Terrain generator using downloaded terrain tiles using quantized mesh specification ...
#define SIP_FACTORY
Definition: qgis_sip.h:69
void writeXml(QDomElement &elem) const override
Write terrain generator's configuration to XML.
Type
Enumeration of the available terrain generators.
3 Base class for generators of terrain.
void setBaseTileFromExtent(const QgsRectangle &extentInTerrainCrs)
Determines base tile from map extent.
int terrainBaseZ
Coordinates of the base tile.