QGIS API Documentation
3.36.0-Maidenhead (09951dc0acf)
Loading...
Searching...
No Matches
src
3d
qgsvectorlayer3drenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvectorlayer3drenderer.h
3
--------------------------------------
4
Date : 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
16
#ifndef QGSVECTORLAYER3DRENDERER_H
17
#define QGSVECTORLAYER3DRENDERER_H
18
19
#include "qgis_3d.h"
20
#include "
qgis_sip.h
"
21
22
#include "
qgs3drendererregistry.h
"
23
#include "
qgsabstractvectorlayer3drenderer.h
"
24
#include "
qgsabstract3dsymbol.h
"
25
26
#include "
qgsphongmaterialsettings.h
"
27
28
#include "
qgsmaplayerref.h
"
29
30
#include <QObject>
31
32
class
QgsVectorLayer
;
33
42
class
_3D_EXPORT
QgsVectorLayer3DRendererMetadata
:
public
Qgs3DRendererAbstractMetadata
43
{
44
public
:
45
QgsVectorLayer3DRendererMetadata
();
46
48
QgsAbstract3DRenderer
*
createRenderer
( QDomElement &elem,
const
QgsReadWriteContext
&context )
override
SIP_FACTORY
;
49
};
50
51
57
class
_3D_EXPORT
QgsVectorLayer3DRenderer
:
public
QgsAbstractVectorLayer3DRenderer
58
{
59
public
:
61
explicit
QgsVectorLayer3DRenderer
(
QgsAbstract3DSymbol
*s
SIP_TRANSFER
=
nullptr
);
62
64
void
setSymbol(
QgsAbstract3DSymbol
*symbol
SIP_TRANSFER
);
66
const
QgsAbstract3DSymbol
*symbol()
const
;
67
68
QString
type
()
const override
{
return
"vector"
; }
69
QgsVectorLayer3DRenderer
*clone() const override
SIP_FACTORY
;
70
Qt3DCore
::QEntity *createEntity( const
Qgs3DMapSettings
&map ) const override
SIP_SKIP
;
71
72
void
writeXml( QDomElement &elem, const
QgsReadWriteContext
&context ) const override;
73
void
readXml( const QDomElement &elem, const
QgsReadWriteContext
&context ) override;
74
75
private:
76
std::unique_ptr<
QgsAbstract3DSymbol
> mSymbol;
77
78
private:
79
#ifdef SIP_RUN
80
QgsVectorLayer3DRenderer
(
const
QgsVectorLayer3DRenderer
& );
81
QgsVectorLayer3DRenderer
&operator=(
const
QgsVectorLayer3DRenderer
& );
82
#endif
83
};
84
85
86
#endif
// QGSVECTORLAYER3DRENDERER_H
Qgs3DMapSettings
3
Definition
qgs3dmapsettings.h:52
Qgs3DRendererAbstractMetadata
Base metadata class for 3D renderers.
Definition
qgs3drendererregistry.h:34
Qgs3DRendererAbstractMetadata::createRenderer
virtual QgsAbstract3DRenderer * createRenderer(QDomElement &elem, const QgsReadWriteContext &context)=0
Returns new instance of the renderer given the DOM element.
QgsAbstract3DRenderer
Base class for all renderers that may to participate in 3D view.
Definition
qgsabstract3drenderer.h:48
QgsAbstract3DSymbol
3
Definition
qgsabstract3dsymbol.h:46
QgsAbstractVectorLayer3DRenderer
3
Definition
qgsabstractvectorlayer3drenderer.h:78
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition
qgsreadwritecontext.h:34
QgsVectorLayer3DRendererMetadata
Metadata for vector layer 3D renderer to allow creation of its instances from XML.
Definition
qgsvectorlayer3drenderer.h:43
QgsVectorLayer3DRenderer
3D renderer that renders all features of a vector layer with the same 3D symbol.
Definition
qgsvectorlayer3drenderer.h:58
QgsVectorLayer3DRenderer::type
QString type() const override
Returns unique identifier of the renderer class (used to identify subclass)
Definition
qgsvectorlayer3drenderer.h:68
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition
qgsvectorlayer.h:400
Qt3DCore
Definition
qgsabstract3drenderer.h:31
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
qgs3drendererregistry.h
qgsabstract3dsymbol.h
qgsabstractvectorlayer3drenderer.h
qgsmaplayerref.h
qgsphongmaterialsettings.h
Generated on Mon Feb 26 2024 10:02:44 for QGIS API Documentation by
1.9.8