Abstract base class for terrain providers.
More...
#include <qgsterrainprovider.h>
|
virtual | ~QgsAbstractTerrainProvider () |
|
virtual QgsAbstractTerrainProvider * | clone () const =0 |
| Creates a clone of the provider and returns the new object.
|
|
virtual QgsCoordinateReferenceSystem | crs () const =0 |
| Returns the native coordinate reference system of the terrain provider.
|
|
virtual bool | equals (const QgsAbstractTerrainProvider *other) const =0 |
| Returns true if the provider is equal to other.
|
|
virtual double | heightAt (double x, double y) const =0 |
| Returns the height at the point (x,y) in the terrain provider's native crs().
|
|
double | offset () const |
| Returns the vertical offset value, used for adjusting the heights from the terrain provider.
|
|
QgsAbstractTerrainProvider & | operator= (const QgsAbstractTerrainProvider &other)=delete |
|
virtual void | prepare ()=0 |
| Called on the main thread prior to accessing the provider from a background thread.
|
|
virtual bool | readXml (const QDomElement &element, const QgsReadWriteContext &context)=0 |
| Reads the terrain provider state from a DOM element.
|
|
virtual void | resolveReferences (const QgsProject *project) |
| Resolves reference to layers from stored layer ID (if it has not been resolved already)
|
|
double | scale () const |
| Returns the vertical scale factor, which can be used to exaggerate vertical heights.
|
|
void | setOffset (double offset) |
| Returns the vertical offset value, used for adjusting the heights from the terrain provider.
|
|
void | setScale (double scale) |
| Sets the vertical scale factor, which can be used to exaggerate vertical heights.
|
|
virtual QString | type () const =0 |
| Returns the unique type ID string for the provider.
|
|
virtual QDomElement | writeXml (QDomDocument &document, const QgsReadWriteContext &context) const =0 |
| Returns a DOM element representing the state of the terrain provider.
|
|
|
double | mOffset = 0.0 |
| Offset amount.
|
|
double | mScale = 1.0 |
| Scale factor.
|
|
Abstract base class for terrain providers.
- Since
- QGIS 3.26
Definition at line 40 of file qgsterrainprovider.h.
◆ ~QgsAbstractTerrainProvider()
QgsAbstractTerrainProvider::~QgsAbstractTerrainProvider |
( |
| ) |
|
|
virtualdefault |
◆ QgsAbstractTerrainProvider() [1/2]
QgsAbstractTerrainProvider::QgsAbstractTerrainProvider |
( |
| ) |
|
|
protecteddefault |
◆ QgsAbstractTerrainProvider() [2/2]
◆ clone()
◆ crs()
◆ equals()
◆ heightAt()
virtual double QgsAbstractTerrainProvider::heightAt |
( |
double |
x, |
|
|
double |
y |
|
) |
| const |
|
pure virtual |
◆ offset()
double QgsAbstractTerrainProvider::offset |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ prepare()
virtual void QgsAbstractTerrainProvider::prepare |
( |
| ) |
|
|
pure virtual |
◆ readCommonProperties()
void QgsAbstractTerrainProvider::readCommonProperties |
( |
const QDomElement & |
element, |
|
|
const QgsReadWriteContext & |
context |
|
) |
| |
|
protected |
◆ readXml()
virtual bool QgsAbstractTerrainProvider::readXml |
( |
const QDomElement & |
element, |
|
|
const QgsReadWriteContext & |
context |
|
) |
| |
|
pure virtual |
◆ resolveReferences()
void QgsAbstractTerrainProvider::resolveReferences |
( |
const QgsProject * |
project | ) |
|
|
virtual |
◆ scale()
double QgsAbstractTerrainProvider::scale |
( |
| ) |
const |
|
inline |
◆ setOffset()
void QgsAbstractTerrainProvider::setOffset |
( |
double |
offset | ) |
|
|
inline |
◆ setScale()
void QgsAbstractTerrainProvider::setScale |
( |
double |
scale | ) |
|
|
inline |
◆ type()
virtual QString QgsAbstractTerrainProvider::type |
( |
| ) |
const |
|
pure virtual |
◆ writeCommonProperties()
void QgsAbstractTerrainProvider::writeCommonProperties |
( |
QDomElement & |
element, |
|
|
const QgsReadWriteContext & |
context |
|
) |
| const |
|
protected |
◆ writeXml()
virtual QDomElement QgsAbstractTerrainProvider::writeXml |
( |
QDomDocument & |
document, |
|
|
const QgsReadWriteContext & |
context |
|
) |
| const |
|
pure virtual |
◆ mOffset
double QgsAbstractTerrainProvider::mOffset = 0.0 |
|
protected |
◆ mScale
double QgsAbstractTerrainProvider::mScale = 1.0 |
|
protected |
The documentation for this class was generated from the following files: