QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
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
A rectangle specified with double values.
Definition: qgsrectangle.h:42
Type
Enumeration of the available terrain generators.
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.
int terrainBaseZ
Coordinates of the base tile.
QgsChunkLoader * createChunkLoader(QgsChunkNode *node) const override SIP_FACTORY
void readXml(const QDomElement &elem) override
Read terrain generator's configuration from XML.
void setBaseTileFromExtent(const QgsRectangle &extentInTerrainCrs)
Determines base tile from map extent.
void writeXml(QDomElement &elem) const override
Write terrain generator's configuration to XML.
QgsRectangle extent() const override
extent of the terrain in terrain's CRS, might be non-square and smaller than rootChunkExtent()
#define SIP_FACTORY
Definition: qgis_sip.h:76