QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgselevationutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgselevationutils.h
3
------------------
4
Date : November 2020
5
Copyright : (C) 2020 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 QGSELEVATIONUTILS_H
17
#define QGSELEVATIONUTILS_H
18
19
#include "qgis_core.h"
20
#include "
qgsrange.h
"
21
22
class
QgsProject
;
23
class
QgsMapLayer
;
24
32
class
CORE_EXPORT
QgsElevationUtils
33
{
34
public
:
41
static
QgsDoubleRange
calculateZRangeForProject
(
QgsProject
*project );
42
51
static
QgsDoubleRange
calculateZRangeForLayers
(
const
QList< QgsMapLayer * > &layers );
52
61
static
QList< double >
significantZValuesForProject
(
QgsProject
*project );
62
70
static
QList< double >
significantZValuesForLayers
(
const
QList< QgsMapLayer * > &layers );
71
77
static
bool
canEnableElevationForLayer
(
QgsMapLayer
*layer );
78
86
static
bool
enableElevationForLayer
(
QgsMapLayer
*layer );
87
};
88
89
90
#endif
// QGSELEVATIONUTILS_H
QgsDoubleRange
QgsRange which stores a range of double values.
Definition
qgsrange.h:217
QgsElevationUtils
Contains utility methods for working with elevation from layers and projects.
Definition
qgselevationutils.h:33
QgsElevationUtils::significantZValuesForLayers
static QList< double > significantZValuesForLayers(const QList< QgsMapLayer * > &layers)
Returns a list of significant elevation/z-values for the specified layers.
Definition
qgselevationutils.cpp:79
QgsElevationUtils::calculateZRangeForProject
static QgsDoubleRange calculateZRangeForProject(QgsProject *project)
Calculates the elevation range for a project.
Definition
qgselevationutils.cpp:22
QgsElevationUtils::enableElevationForLayer
static bool enableElevationForLayer(QgsMapLayer *layer)
Automatically enables elevation for a map layer, using reasonable defaults.
Definition
qgselevationutils.cpp:105
QgsElevationUtils::significantZValuesForProject
static QList< double > significantZValuesForProject(QgsProject *project)
Returns a list of significant elevation/z-values for the specified project, using the values from lay...
Definition
qgselevationutils.cpp:66
QgsElevationUtils::calculateZRangeForLayers
static QgsDoubleRange calculateZRangeForLayers(const QList< QgsMapLayer * > &layers)
Calculates the elevation range for the specified layers.
Definition
qgselevationutils.cpp:36
QgsElevationUtils::canEnableElevationForLayer
static bool canEnableElevationForLayer(QgsMapLayer *layer)
Returns true if elevation can be enabled for a map layer.
Definition
qgselevationutils.cpp:100
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsProject
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition
qgsproject.h:114
qgsrange.h
Generated on
for QGIS API Documentation by
1.17.0