QGIS API Documentation 4.3.0-Master (16eddb2670e)
Loading...
Searching...
No Matches
qgsonlineterraingenerator.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsonlineterraingenerator.h
3 --------------------------------------
4 Date : March 2019
5 Copyright : (C) 2019 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
16#ifndef QGSONLINETERRAINGENERATOR_H
17#define QGSONLINETERRAINGENERATOR_H
18
19#include "qgis_3d.h"
22#include "qgsterraingenerator.h"
23
24#define SIP_NO_FILE
25
26class QgsDemHeightMapGenerator;
27
28
42{
43 Q_OBJECT
44 public:
45 // cppcheck-suppress duplInheritedMember
50
53
54 Type type() const override;
55 QgsTerrainGenerator *clone() const override SIP_FACTORY;
56
57 protected:
58 void updateGenerator() override;
59
60 private:
61 // Hide layer getter/setter, mLayer is always nullptr with online terrain.
62 using QgsDemTerrainGenerator::layer;
63 using QgsDemTerrainGenerator::setLayer;
64};
65
66#endif // QGSONLINETERRAINGENERATOR_H
static QgsTerrainGenerator * create()
Creates a new instance of a QgsDemTerrainGenerator object.
Type type() const override
What texture generator implementation is this.
QgsTerrainGenerator * clone() const override
Makes a copy of the current instance.
~QgsOnlineTerrainGenerator() override
void updateGenerator() override
(Re-)creates mHeightMapGenerator based on current params
Type
Enumeration of the available terrain generators.
QgsTerrainGenerator()
Create new terrain generator.
#define SIP_FACTORY
Definition qgis_sip.h:83