QGIS API Documentation
3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
src
core
3d
qgsabstract3drenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsabstract3drenderer.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 QGSABSTRACT3DRENDERER_H
17
#define QGSABSTRACT3DRENDERER_H
18
19
#include "qgis_core.h"
20
#include "
qgis_sip.h
"
21
22
#include <QString>
23
24
class
QDomElement;
25
class
QgsProject
;
26
class
QgsReadWriteContext
;
27
class
Qgs3DMapSettings
;
28
29
#ifndef SIP_RUN
30
namespace
Qt3DCore
31
{
32
class
QEntity;
33
}
34
#endif
35
47
class
CORE_EXPORT
QgsAbstract3DRenderer
SIP_ABSTRACT
48
{
49
public
:
50
virtual
~QgsAbstract3DRenderer
() =
default
;
51
53
virtual
QString
type
()
const
= 0;
55
virtual
QgsAbstract3DRenderer
*
clone
()
const
= 0
SIP_FACTORY
;
57
virtual
Qt3DCore::QEntity *
createEntity
(
Qgs3DMapSettings
*map )
const
= 0
SIP_SKIP
;
58
60
virtual
void
writeXml
( QDomElement &elem,
const
QgsReadWriteContext
&context )
const
= 0;
62
virtual
void
readXml
(
const
QDomElement &elem,
const
QgsReadWriteContext
&context ) = 0;
64
virtual
void
resolveReferences(
const
QgsProject
&project );
65
66
protected
:
67
68
QgsAbstract3DRenderer
() =
default
;
69
70
private
:
71
#ifdef SIP_RUN
72
QgsAbstract3DRenderer
(
const
QgsAbstract3DRenderer
& );
73
QgsAbstract3DRenderer
&operator=(
const
QgsAbstract3DRenderer
& );
74
#endif
75
76
Q_DISABLE_COPY(
QgsAbstract3DRenderer
)
77
};
78
79
80
#endif
// QGSABSTRACT3DRENDERER_H
Qgs3DMapSettings
3
Definition
qgs3dmapsettings.h:55
QgsAbstract3DRenderer
Base class for all renderers that may to participate in 3D view.
Definition
qgsabstract3drenderer.h:48
QgsAbstract3DRenderer::QgsAbstract3DRenderer
QgsAbstract3DRenderer()=default
QgsAbstract3DRenderer::~QgsAbstract3DRenderer
virtual ~QgsAbstract3DRenderer()=default
QgsAbstract3DRenderer::type
virtual QString type() const =0
Returns unique identifier of the renderer class (used to identify subclass)
QgsAbstract3DRenderer::writeXml
virtual void writeXml(QDomElement &elem, const QgsReadWriteContext &context) const =0
Writes renderer's properties to given XML element.
QgsAbstract3DRenderer::readXml
virtual void readXml(const QDomElement &elem, const QgsReadWriteContext &context)=0
Reads renderer's properties from given XML element.
QgsAbstract3DRenderer::clone
virtual QgsAbstract3DRenderer * clone() const =0
Returns a cloned instance.
QgsAbstract3DRenderer::createEntity
virtual Qt3DCore::QEntity * createEntity(Qgs3DMapSettings *map) const =0
Returns a 3D entity that will be used to show renderer's data in 3D scene.
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
Qt3DCore
Definition
qgsabstract3drenderer.h:31
qgis_sip.h
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:126
SIP_ABSTRACT
#define SIP_ABSTRACT
Definition
qgis_sip.h:213
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:76
Generated on Tue Nov 19 2024 18:20:01 for QGIS API Documentation by
1.9.8