QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
qgsmaplayerelevationproperties.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsmaplayerelevationproperties.cpp
3  ---------------
4  begin : November 2020
5  copyright : (C) 2020 by Nyall Dawson
6  email : nyall dot dawson dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
19 
21  : QObject( parent )
22 {
23 }
24 
26 {
27  return false;
28 }
29 
31 {
32  return true;
33 }
34 
36 {
37  return QgsDoubleRange();
38 }
QgsRange which stores a range of double values.
Definition: qgsrange.h:203
QgsMapLayerElevationProperties(QObject *parent)
Constructor for QgsMapLayerElevationProperties, with the specified parent object.
virtual QgsDoubleRange calculateZRange(QgsMapLayer *layer) const
Attempts to calculate the overall elevation or z range for the specified layer, using the settings de...
virtual bool hasElevation() const
Returns true if the layer has an elevation or z component.
virtual bool isVisibleInZRange(const QgsDoubleRange &range) const
Returns true if the layer should be visible and rendered for the specified z range.
Base class for all map layer types.
Definition: qgsmaplayer.h:73