mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-10 00:04:23 -04:00
This provides a user-friendly why of adding new layers to a plot - clicking it will show a filtered list of possible layers which can be added to the plot, but which currently aren't in the plot. (I.e it will include all raster layers from the project which aren't marked as having elevation data.) Selecting layers will cause them to automatically be marked as having elevation data and immediately added to the plot.
59 lines
2.0 KiB
Plaintext
59 lines
2.0 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgselevationutils.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl 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 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.pl again *
|
|
************************************************************************/
|