QGIS API Documentation 3.41.0-Master (25ec5511245)
|
Abstract base class for storage of elevation profiles. More...
#include <qgsabstractprofilegenerator.h>
Classes | |
struct | Feature |
Encapsulates information about a feature exported from the profile results. More... | |
Public Member Functions | |
virtual | ~QgsAbstractProfileResults () |
virtual QVector< QgsAbstractProfileResults::Feature > | asFeatures (Qgis::ProfileExportType type, QgsFeedback *feedback=nullptr) const |
Returns a list of features representing the calculated elevation results. | |
virtual QVector< QgsGeometry > | asGeometries () const =0 |
Returns a list of geometries representing the calculated elevation results. | |
virtual void | copyPropertiesFromGenerator (const QgsAbstractProfileGenerator *generator) |
Copies properties from specified generator to the results object. | |
virtual QMap< double, double > | distanceToHeightMap () const =0 |
Returns the map of distance (chainage) to height. | |
virtual QVector< QgsProfileIdentifyResults > | identify (const QgsDoubleRange &distanceRange, const QgsDoubleRange &elevationRange, const QgsProfileIdentifyContext &context) |
Identify results visible within the specified ranges. | |
virtual QVector< QgsProfileIdentifyResults > | identify (const QgsProfilePoint &point, const QgsProfileIdentifyContext &context) |
Identify results visible at the specified profile point. | |
virtual void | renderResults (QgsProfileRenderContext &context)=0 |
Renders the results to the specified context. | |
virtual QgsPointSequence | sampledPoints () const =0 |
Returns a list of sampled points, with their calculated elevation as the point z value. | |
virtual QgsProfileSnapResult | snapPoint (const QgsProfilePoint &point, const QgsProfileSnapContext &context) |
Snaps a point to the generated elevation profile. | |
virtual QString | type () const =0 |
Returns the unique string identifier for the results type. | |
virtual QgsDoubleRange | zRange () const =0 |
Returns the range of the retrieved elevation values. | |
Abstract base class for storage of elevation profiles.
Definition at line 192 of file qgsabstractprofilegenerator.h.
|
virtualdefault |
|
virtual |
Returns a list of features representing the calculated elevation results.
The default implementation returns an empty list.
Reimplemented in QgsAbstractProfileSurfaceResults, QgsPointCloudLayerProfileResults, and QgsVectorLayerProfileResults.
Definition at line 62 of file qgsabstractprofilegenerator.cpp.
|
pure virtual |
Returns a list of geometries representing the calculated elevation results.
Implemented in QgsAbstractProfileSurfaceResults, QgsPointCloudLayerProfileResults, and QgsVectorLayerProfileResults.
|
virtual |
Copies properties from specified generator to the results object.
For instance, this method can be used to copy any properties relating to rendering the gathered results to reflect the generator's current properties.
The base class method does nothing.
Reimplemented in QgsAbstractProfileSurfaceResults, QgsPointCloudLayerProfileResults, and QgsVectorLayerProfileResults.
Definition at line 82 of file qgsabstractprofilegenerator.cpp.
|
pure virtual |
Returns the map of distance (chainage) to height.
Implemented in QgsAbstractProfileSurfaceResults, and QgsPointCloudLayerProfileResults.
|
virtual |
Identify results visible within the specified ranges.
Reimplemented in QgsPointCloudLayerProfileResults, and QgsVectorLayerProfileResults.
Definition at line 77 of file qgsabstractprofilegenerator.cpp.
|
virtual |
Identify results visible at the specified profile point.
Reimplemented in QgsAbstractProfileSurfaceResults, QgsMeshLayerProfileResults, QgsPointCloudLayerProfileResults, QgsRasterLayerProfileResults, and QgsVectorLayerProfileResults.
Definition at line 72 of file qgsabstractprofilegenerator.cpp.
|
pure virtual |
Renders the results to the specified context.
Implemented in QgsAbstractProfileSurfaceResults, QgsPointCloudLayerProfileResults, and QgsVectorLayerProfileResults.
|
pure virtual |
Returns a list of sampled points, with their calculated elevation as the point z value.
Implemented in QgsAbstractProfileSurfaceResults, and QgsPointCloudLayerProfileResults.
|
virtual |
Snaps a point to the generated elevation profile.
Reimplemented in QgsAbstractProfileSurfaceResults, QgsPointCloudLayerProfileResults, and QgsVectorLayerProfileResults.
Definition at line 67 of file qgsabstractprofilegenerator.cpp.
|
pure virtual |
Returns the unique string identifier for the results type.
Implemented in QgsMeshLayerProfileResults, QgsPointCloudLayerProfileResults, QgsRasterLayerProfileResults, and QgsVectorLayerProfileResults.
|
pure virtual |
Returns the range of the retrieved elevation values.
Implemented in QgsAbstractProfileSurfaceResults, and QgsPointCloudLayerProfileResults.