QGIS API Documentation
3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
src
3d
qgsabstractvectorlayer3drenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsabstractvectorlayer3drenderer.h
3
--------------------------------------
4
Date : January 2020
5
Copyright : (C) 2020 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 QGSABSTRACTVECTORLAYER3DRENDERER_H
17
#define QGSABSTRACTVECTORLAYER3DRENDERER_H
18
19
#include "qgis_3d.h"
20
#include "
qgis_sip.h
"
21
22
#include "
qgsabstract3drenderer.h
"
23
#include "
qgsmaplayerref.h
"
24
25
class
QgsVectorLayer
;
26
37
class
_3D_EXPORT
QgsVectorLayer3DTilingSettings
38
{
39
public
:
47
int
zoomLevelsCount
()
const
{
return
mZoomLevelsCount; }
48
52
void
setZoomLevelsCount
(
int
count ) { mZoomLevelsCount = count; }
53
55
void
setShowBoundingBoxes
(
bool
enabled ) { mShowBoundingBoxes = enabled; }
57
bool
showBoundingBoxes
()
const
{
return
mShowBoundingBoxes; }
58
60
void
writeXml( QDomElement &elem )
const
;
62
void
readXml(
const
QDomElement &elem );
63
64
private
:
65
int
mZoomLevelsCount = 3;
66
bool
mShowBoundingBoxes =
false
;
67
};
68
69
76
class
_3D_EXPORT
QgsAbstractVectorLayer3DRenderer
:
public
QgsAbstract3DRenderer
SIP_ABSTRACT
77
{
78
public
:
79
QgsAbstractVectorLayer3DRenderer
();
80
82
void
setLayer(
QgsVectorLayer
*layer );
84
QgsVectorLayer
*layer()
const
;
85
87
void
setTilingSettings
(
const
QgsVectorLayer3DTilingSettings
&settings ) { mTilingSettings = settings; }
89
QgsVectorLayer3DTilingSettings
tilingSettings
()
const
{
return
mTilingSettings; }
90
91
void
resolveReferences(
const
QgsProject
&project )
override
;
92
93
protected
:
95
void
copyBaseProperties(
QgsAbstractVectorLayer3DRenderer
*r )
const
;
97
void
writeXmlBaseProperties( QDomElement &elem,
const
QgsReadWriteContext
&context )
const
;
99
void
readXmlBaseProperties(
const
QDomElement &elem,
const
QgsReadWriteContext
&context );
100
101
private
:
102
QgsMapLayerRef
mLayerRef;
103
QgsVectorLayer3DTilingSettings
mTilingSettings;
104
};
105
106
#endif
// QGSABSTRACTVECTORLAYER3DRENDERER_H
QgsAbstract3DRenderer
Base class for all renderers that may to participate in 3D view.
Definition
qgsabstract3drenderer.h:48
QgsAbstractVectorLayer3DRenderer
3
Definition
qgsabstractvectorlayer3drenderer.h:77
QgsAbstractVectorLayer3DRenderer::setTilingSettings
void setTilingSettings(const QgsVectorLayer3DTilingSettings &settings)
Sets tiling settings of the renderer.
Definition
qgsabstractvectorlayer3drenderer.h:87
QgsAbstractVectorLayer3DRenderer::QgsAbstractVectorLayer3DRenderer
QgsAbstractVectorLayer3DRenderer()
QgsAbstractVectorLayer3DRenderer::tilingSettings
QgsVectorLayer3DTilingSettings tilingSettings() const
Returns tiling settings of the renderer.
Definition
qgsabstractvectorlayer3drenderer.h:89
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
QgsVectorLayer3DTilingSettings
3
Definition
qgsabstractvectorlayer3drenderer.h:38
QgsVectorLayer3DTilingSettings::zoomLevelsCount
int zoomLevelsCount() const
Returns number of zoom levels.
Definition
qgsabstractvectorlayer3drenderer.h:47
QgsVectorLayer3DTilingSettings::setZoomLevelsCount
void setZoomLevelsCount(int count)
Sets number of zoom levels.
Definition
qgsabstractvectorlayer3drenderer.h:52
QgsVectorLayer3DTilingSettings::setShowBoundingBoxes
void setShowBoundingBoxes(bool enabled)
Sets whether to display bounding boxes of entity's tiles (for debugging)
Definition
qgsabstractvectorlayer3drenderer.h:55
QgsVectorLayer3DTilingSettings::showBoundingBoxes
bool showBoundingBoxes() const
Returns whether to display bounding boxes of entity's tiles (for debugging)
Definition
qgsabstractvectorlayer3drenderer.h:57
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition
qgsvectorlayer.h:401
qgis_sip.h
SIP_ABSTRACT
#define SIP_ABSTRACT
Definition
qgis_sip.h:213
qgsabstract3drenderer.h
qgsmaplayerref.h
_LayerRef< QgsMapLayer >
Generated on Sun Dec 15 2024 01:32:01 for QGIS API Documentation by
1.9.8