QGIS API Documentation
3.41.0-Master (57ec4277f5e)
Loading...
Searching...
No Matches
src
3d
terrain
qgsmeshterrainsettings.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmeshterrainsettings.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 QGSMESHTERRAINSETTINGS_H
17
#define QGSMESHTERRAINSETTINGS_H
18
19
#include "qgis_3d.h"
20
#include "
qgis_sip.h
"
21
#include "
qgsabstractterrainsettings.h
"
22
#include "
qgsmaplayerref.h
"
23
24
class
QDomElement;
25
class
QgsReadWriteContext
;
26
class
QgsProject
;
27
class
QgsMeshLayer
;
28
class
QgsMesh3DSymbol
;
29
39
class
_3D_EXPORT
QgsMeshTerrainSettings
:
public
QgsAbstractTerrainSettings
40
{
41
public
:
45
static
QgsAbstractTerrainSettings
*create()
SIP_FACTORY
;
46
47
QgsMeshTerrainSettings
();
48
~QgsMeshTerrainSettings
()
override
;
49
QgsMeshTerrainSettings
*
clone
() const final
SIP_FACTORY
;
50
QString type() const final;
51
void
readXml( const QDomElement &element, const
QgsReadWriteContext
&context ) final;
52
void
writeXml( QDomElement &element, const
QgsReadWriteContext
&context ) const final;
53
void
resolveReferences( const
QgsProject
*project ) final;
54
bool
equals( const
QgsAbstractTerrainSettings
*other ) const final;
55
std::unique_ptr<
QgsTerrainGenerator
> createTerrainGenerator( const
Qgs3DRenderContext
&context ) const override
SIP_SKIP
;
56
61
void
setLayer(
QgsMeshLayer
*layer );
62
68
QgsMeshLayer
*layer() const;
69
75
QgsMesh3DSymbol
*symbol() const;
76
82
void
setSymbol(
QgsMesh3DSymbol
*symbol
SIP_TRANSFER
);
83
84
private:
85
#ifdef SIP_RUN
86
QgsMeshTerrainSettings
(
const
QgsMeshTerrainSettings
& );
87
#endif
88
QgsMapLayerRef
mLayer;
89
std::unique_ptr<QgsMesh3DSymbol> mSymbol;
90
};
91
92
93
#endif
// QGSMESHTERRAINSETTINGS_H
Qgs3DRenderContext
3
Definition
qgs3drendercontext.h:48
QgsAbstractTerrainSettings
3
Definition
qgsabstractterrainsettings.h:43
QgsAbstractTerrainSettings::clone
virtual QgsAbstractTerrainSettings * clone() const =0
Returns a copy of the terrain settings.
QgsMesh3DSymbol
3
Definition
qgsmesh3dsymbol.h:39
QgsMeshLayer
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Definition
qgsmeshlayer.h:101
QgsMeshTerrainSettings
3
Definition
qgsmeshterrainsettings.h:40
QgsMeshTerrainSettings::~QgsMeshTerrainSettings
~QgsMeshTerrainSettings() override
QgsProject
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition
qgsproject.h:107
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition
qgsreadwritecontext.h:34
QgsTerrainGenerator
3
Definition
qgsterraingenerator.h:50
qgis_sip.h
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:126
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:36
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
qgsabstractterrainsettings.h
qgsmaplayerref.h
_LayerRef< QgsMapLayer >
Generated on Sun Dec 29 2024 04:59:01 for QGIS API Documentation by
1.9.8