QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Contains elevation properties for a QgsProject. More...
#include <qgsprojectelevationproperties.h>
Public Slots | |
void | setElevationFilterRangeSize (double size) |
Sets the fixed size for elevation range filtering in the project, used when interactively filtering by elevation. | |
void | setElevationRange (const QgsDoubleRange &range) |
Sets the project's elevation range, which indicates the upper and lower elevation limits associated with the project. | |
void | setInvertElevationFilter (bool invert) |
Sets whether the elevation range filter slider should be inverted for this project. | |
Signals | |
void | changed () |
Emitted when the elevation properties change. | |
void | elevationRangeChanged (const QgsDoubleRange &range) |
Emitted when the project's elevation is changed. | |
Public Member Functions | |
QgsProjectElevationProperties (QObject *parent=nullptr) | |
Constructor for QgsProjectElevationProperties with the specified parent object. | |
~QgsProjectElevationProperties () override | |
double | elevationFilterRangeSize () const |
Returns the fixed size for elevation range filtering in the project, used when interactively filtering by elevation. | |
QgsDoubleRange | elevationRange () const |
Returns the project's elevation range, which indicates the upper and lower elevation limits associated with the project. | |
bool | invertElevationFilter () const |
Returns true if the elevation range filter slider should be inverted for this project. | |
bool | readXml (const QDomElement &element, const QgsReadWriteContext &context) |
Reads the property state from a DOM element. | |
void | reset () |
Resets the properties to a default state. | |
void | resolveReferences (const QgsProject *project) |
Resolves reference to layers from stored layer ID. | |
void | setTerrainProvider (QgsAbstractTerrainProvider *provider) |
Sets the project's terrain provider. | |
QgsAbstractTerrainProvider * | terrainProvider () |
Returns the project's terrain provider. | |
QDomElement | writeXml (QDomDocument &document, const QgsReadWriteContext &context) const |
Returns a DOM element representing the properties. | |
Contains elevation properties for a QgsProject.
Definition at line 38 of file qgsprojectelevationproperties.h.
QgsProjectElevationProperties::QgsProjectElevationProperties | ( | QObject * | parent = nullptr | ) |
Constructor for QgsProjectElevationProperties with the specified parent object.
Definition at line 24 of file qgsprojectelevationproperties.cpp.
|
overridedefault |
|
signal |
Emitted when the elevation properties change.
|
inline |
Returns the fixed size for elevation range filtering in the project, used when interactively filtering by elevation.
Returns -1 if no fixed elevation range size is desired.
A fixed size forces the selected elevation range to have a matching difference between the upper and lower elevation.
Definition at line 115 of file qgsprojectelevationproperties.h.
|
inline |
Returns the project's elevation range, which indicates the upper and lower elevation limits associated with the project.
Definition at line 101 of file qgsprojectelevationproperties.h.
|
signal |
Emitted when the project's elevation is changed.
|
inline |
Returns true
if the elevation range filter slider should be inverted for this project.
Definition at line 124 of file qgsprojectelevationproperties.h.
bool QgsProjectElevationProperties::readXml | ( | const QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) |
Reads the property state from a DOM element.
Definition at line 47 of file qgsprojectelevationproperties.cpp.
void QgsProjectElevationProperties::reset | ( | ) |
Resets the properties to a default state.
Definition at line 33 of file qgsprojectelevationproperties.cpp.
void QgsProjectElevationProperties::resolveReferences | ( | const QgsProject * | project | ) |
Resolves reference to layers from stored layer ID.
Definition at line 41 of file qgsprojectelevationproperties.cpp.
|
slot |
Sets the fixed size for elevation range filtering in the project, used when interactively filtering by elevation.
Set to -1 if no fixed elevation range size is desired.
A fixed size forces the selected elevation range to have a matching difference between the upper and lower elevation.
Definition at line 134 of file qgsprojectelevationproperties.cpp.
|
slot |
Sets the project's elevation range, which indicates the upper and lower elevation limits associated with the project.
Definition at line 152 of file qgsprojectelevationproperties.cpp.
|
slot |
Sets whether the elevation range filter slider should be inverted for this project.
Definition at line 143 of file qgsprojectelevationproperties.cpp.
void QgsProjectElevationProperties::setTerrainProvider | ( | QgsAbstractTerrainProvider * | provider | ) |
Sets the project's terrain provider.
Ownership of provider is transferred to this object.
Definition at line 122 of file qgsprojectelevationproperties.cpp.
QgsAbstractTerrainProvider * QgsProjectElevationProperties::terrainProvider | ( | ) |
Returns the project's terrain provider.
Definition at line 117 of file qgsprojectelevationproperties.cpp.
QDomElement QgsProjectElevationProperties::writeXml | ( | QDomDocument & | document, |
const QgsReadWriteContext & | context | ||
) | const |
Returns a DOM element representing the properties.
Definition at line 91 of file qgsprojectelevationproperties.cpp.