1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgselevationutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsElevationUtils
{
%Docstring(signature="appended")
Contains utility methods for working with elevation from layers and
projects.
.. versionadded:: 3.18
%End
%TypeHeaderCode
#include "qgselevationutils.h"
%End
public:
static QgsDoubleRange calculateZRangeForProject( QgsProject *project );
%Docstring
Calculates the elevation range for a ``project``.
This method considers the elevation (or z) range available from layers
contained within the project and returns the maximal combined elevation
range of these layers.
%End
static QList< double > significantZValuesForProject( QgsProject *project );
%Docstring
Returns a list of significant elevation/z-values for the specified
``project``, using the values from layers contained by the project.
These values will be highlighted in elevation related widgets for the
project.
.. versionadded:: 3.38
%End
static QList< double > significantZValuesForLayers( const QList< QgsMapLayer * > &layers );
%Docstring
Returns a list of significant elevation/z-values for the specified
``layers``.
These values will be highlighted in elevation related widgets for the
project.
.. versionadded:: 3.38
%End
static bool canEnableElevationForLayer( QgsMapLayer *layer );
%Docstring
Returns ``True`` if elevation can be enabled for a map ``layer``.
.. versionadded:: 3.32
%End
static bool enableElevationForLayer( QgsMapLayer *layer );
%Docstring
Automatically enables elevation for a map ``layer``, using reasonable
defaults.
Returns ``True`` if the elevation was enabled successfully.
.. versionadded:: 3.32
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgselevationutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|