|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
Interface for classes which can generate elevation profiles. More...
#include <qgsabstractprofilesource.h>

Public Member Functions | |
| virtual | ~QgsAbstractProfileSource () |
| virtual QgsAbstractProfileGenerator * | createProfileGenerator (const QgsProfileRequest &request)=0 |
| Given a profile request, returns a new profile generator ready for generating elevation profiles. | |
| virtual QString | profileSourceId () const |
| Returns a unique identifier for this profile source. | |
| virtual QString | profileSourceName () const |
| Returns a name for displaying this profile source in the elevation profile layer tree. | |
Interface for classes which can generate elevation profiles.
Definition at line 34 of file qgsabstractprofilesource.h.
|
virtualdefault |
|
pure virtual |
Given a profile request, returns a new profile generator ready for generating elevation profiles.
The caller takes ownership of the returned generator.
May return nullptr if the source cannot generate a profile at this time.
Implemented in QgsMeshLayer, QgsPointCloudLayer, QgsRasterLayer, and QgsVectorLayer.
|
inlinevirtual |
Returns a unique identifier for this profile source.
For map layer sources, the source ID will match the layer's QgsMapLayer::id(). Other (non-map-layer) sources will have a different unique ID with its own custom interpretation.
Reimplemented in QgsMeshLayer, QgsPointCloudLayer, QgsRasterLayer, and QgsVectorLayer.
Definition at line 59 of file qgsabstractprofilesource.h.
|
inlinevirtual |
Returns a name for displaying this profile source in the elevation profile layer tree.
For map layer sources, the name displayed in the elevation profile tree will be taken from and synchronized to the layer's name.
Reimplemented in QgsMeshLayer, QgsPointCloudLayer, QgsRasterLayer, and QgsVectorLayer.
Definition at line 68 of file qgsabstractprofilesource.h.