QGIS API Documentation
3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
src
3d
terrain
qgsonlinedemterrainsettings.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsonlinedemterrainsettings.h
3
--------------------------------------
4
Date : August 2024
5
Copyright : (C) 2024 by Nyall Dawson
6
Email : nyall dot dawson 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 QGSONLINEDEMTERRAINSETTINGS_H
17
#define QGSONLINEDEMTERRAINSETTINGS_H
18
19
#include "qgis_3d.h"
20
#include "
qgis_sip.h
"
21
#include "
qgsabstractterrainsettings.h
"
22
#include "
qgsrectangle.h
"
23
33
class
_3D_EXPORT
QgsOnlineDemTerrainSettings
:
public
QgsAbstractTerrainSettings
34
{
35
public
:
39
static
QgsAbstractTerrainSettings
*create()
SIP_FACTORY
;
40
41
QgsOnlineDemTerrainSettings
*
clone
()
const
final
SIP_FACTORY
;
42
QString
type
()
const
final
;
43
void
readXml
(
const
QDomElement &element,
const
QgsReadWriteContext
&context )
final
;
44
void
writeXml
( QDomElement &element,
const
QgsReadWriteContext
&context )
const
final
;
45
bool
equals
(
const
QgsAbstractTerrainSettings
*other )
const
final
;
46
std::unique_ptr<QgsTerrainGenerator>
createTerrainGenerator
(
const
Qgs3DRenderContext
&context )
const
override
SIP_SKIP
;
47
53
void
setResolution
(
int
resolution ) { mResolution = resolution; }
54
60
int
resolution
()
const
{
return
mResolution; }
61
69
void
setSkirtHeight
(
double
height ) { mSkirtHeight = height; }
70
78
double
skirtHeight
()
const
{
return
mSkirtHeight; }
79
80
private
:
82
int
mResolution = 16;
84
double
mSkirtHeight = 10.;
85
};
86
87
88
#endif
// QGSONLINEDEMTERRAINSETTINGS_H
Qgs3DRenderContext
3
Definition
qgs3drendercontext.h:48
QgsAbstractTerrainSettings
3
Definition
qgsabstractterrainsettings.h:43
QgsAbstractTerrainSettings::readXml
virtual void readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads settings from a DOM element.
QgsAbstractTerrainSettings::createTerrainGenerator
virtual std::unique_ptr< QgsTerrainGenerator > createTerrainGenerator(const Qgs3DRenderContext &context) const =0
Creates a new instance of a terrain generator which matches the terrain settings.
QgsAbstractTerrainSettings::clone
virtual QgsAbstractTerrainSettings * clone() const =0
Returns a copy of the terrain settings.
QgsAbstractTerrainSettings::equals
virtual bool equals(const QgsAbstractTerrainSettings *other) const =0
Returns true if this settings is exactly equal to another other settings.
QgsAbstractTerrainSettings::type
virtual QString type() const =0
Returns the unique type name for the terrain generator.
QgsAbstractTerrainSettings::writeXml
virtual void writeXml(QDomElement &element, const QgsReadWriteContext &context) const =0
Writes settings to a DOM element.
QgsOnlineDemTerrainSettings
3
Definition
qgsonlinedemterrainsettings.h:34
QgsOnlineDemTerrainSettings::resolution
int resolution() const
Returns the resolution of the terrain (how many elevation samples are taken on one side of a terrain ...
Definition
qgsonlinedemterrainsettings.h:60
QgsOnlineDemTerrainSettings::skirtHeight
double skirtHeight() const
Returns the skirt height (in world units).
Definition
qgsonlinedemterrainsettings.h:78
QgsOnlineDemTerrainSettings::setResolution
void setResolution(int resolution)
Sets the resolution of the terrain (how many elevation samples are taken on one side of a terrain til...
Definition
qgsonlinedemterrainsettings.h:53
QgsOnlineDemTerrainSettings::setSkirtHeight
void setSkirtHeight(double height)
Sets the skirt height (in world units).
Definition
qgsonlinedemterrainsettings.h:69
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition
qgsreadwritecontext.h:34
qgis_sip.h
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:126
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
qgsabstractterrainsettings.h
qgsrectangle.h
Generated on Thu Dec 26 2024 02:19:01 for QGIS API Documentation by
1.9.8