QGIS API Documentation 3.41.0-Master (25ec5511245)
|
Abstract base class for storage of elevation profiles which represent a continuous surface (e.g. More...
#include <qgsabstractprofilesurfacegenerator.h>
Public Member Functions | |
~QgsAbstractProfileSurfaceResults () override | |
QVector< QgsAbstractProfileResults::Feature > | asFeatures (Qgis::ProfileExportType type, QgsFeedback *feedback=nullptr) const override |
Returns a list of features representing the calculated elevation results. | |
QVector< QgsGeometry > | asGeometries () const override |
Returns a list of geometries representing the calculated elevation results. | |
void | copyPropertiesFromGenerator (const QgsAbstractProfileGenerator *generator) override |
Copies properties from specified generator to the results object. | |
QMap< double, double > | distanceToHeightMap () const override |
Returns the map of distance (chainage) to height. | |
QVector< QgsProfileIdentifyResults > | identify (const QgsProfilePoint &point, const QgsProfileIdentifyContext &context) override |
Identify results visible at the specified profile point. | |
void | renderResults (QgsProfileRenderContext &context) override |
Renders the results to the specified context. | |
QgsPointSequence | sampledPoints () const override |
Returns a list of sampled points, with their calculated elevation as the point z value. | |
QgsProfileSnapResult | snapPoint (const QgsProfilePoint &point, const QgsProfileSnapContext &context) override |
Snaps a point to the generated elevation profile. | |
QgsDoubleRange | zRange () const override |
Returns the range of the retrieved elevation values. | |
Public Member Functions inherited from QgsAbstractProfileResults | |
virtual | ~QgsAbstractProfileResults () |
virtual QVector< QgsProfileIdentifyResults > | identify (const QgsDoubleRange &distanceRange, const QgsDoubleRange &elevationRange, const QgsProfileIdentifyContext &context) |
Identify results visible within the specified ranges. | |
virtual QString | type () const =0 |
Returns the unique string identifier for the results type. | |
Public Attributes | |
double | maxZ = std::numeric_limits< double >::lowest() |
QMap< double, double > | mDistanceToHeightMap |
double | mElevationLimit = std::numeric_limits< double >::quiet_NaN() |
std::unique_ptr< QgsFillSymbol > | mFillSymbol |
QString | mId |
double | minZ = std::numeric_limits< double >::max() |
std::unique_ptr< QgsLineSymbol > | mLineSymbol |
std::unique_ptr< QgsCurve > | mProfileCurve |
QgsPointSequence | mRawPoints |
Qgis::ProfileSurfaceSymbology | symbology = Qgis::ProfileSurfaceSymbology::Line |
Abstract base class for storage of elevation profiles which represent a continuous surface (e.g.
mesh layers and raster layers).
Definition at line 40 of file qgsabstractprofilesurfacegenerator.h.
|
overridedefault |
|
overridevirtual |
Returns a list of features representing the calculated elevation results.
The default implementation returns an empty list.
Reimplemented from QgsAbstractProfileResults.
Reimplemented in QgsVectorLayerProfileResults.
Definition at line 58 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Returns a list of geometries representing the calculated elevation results.
Implements QgsAbstractProfileResults.
Reimplemented in QgsVectorLayerProfileResults.
Definition at line 48 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
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 from QgsAbstractProfileResults.
Reimplemented in QgsVectorLayerProfileResults.
Definition at line 365 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Returns the map of distance (chainage) to height.
Implements QgsAbstractProfileResults.
Definition at line 33 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Identify results visible at the specified profile point.
Reimplemented from QgsAbstractProfileResults.
Reimplemented in QgsMeshLayerProfileResults, QgsRasterLayerProfileResults, and QgsVectorLayerProfileResults.
Definition at line 201 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Renders the results to the specified context.
Implements QgsAbstractProfileResults.
Reimplemented in QgsVectorLayerProfileResults.
Definition at line 240 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Returns a list of sampled points, with their calculated elevation as the point z value.
Implements QgsAbstractProfileResults.
Definition at line 38 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Snaps a point to the generated elevation profile.
Reimplemented from QgsAbstractProfileResults.
Reimplemented in QgsVectorLayerProfileResults.
Definition at line 172 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Returns the range of the retrieved elevation values.
Implements QgsAbstractProfileResults.
Definition at line 43 of file qgsabstractprofilesurfacegenerator.cpp.
double QgsAbstractProfileSurfaceResults::maxZ = std::numeric_limits< double >::lowest() |
Definition at line 50 of file qgsabstractprofilesurfacegenerator.h.
QMap< double, double > QgsAbstractProfileSurfaceResults::mDistanceToHeightMap |
Definition at line 48 of file qgsabstractprofilesurfacegenerator.h.
double QgsAbstractProfileSurfaceResults::mElevationLimit = std::numeric_limits< double >::quiet_NaN() |
Definition at line 55 of file qgsabstractprofilesurfacegenerator.h.
std::unique_ptr< QgsFillSymbol > QgsAbstractProfileSurfaceResults::mFillSymbol |
Definition at line 54 of file qgsabstractprofilesurfacegenerator.h.
QString QgsAbstractProfileSurfaceResults::mId |
Definition at line 46 of file qgsabstractprofilesurfacegenerator.h.
double QgsAbstractProfileSurfaceResults::minZ = std::numeric_limits< double >::max() |
Definition at line 49 of file qgsabstractprofilesurfacegenerator.h.
std::unique_ptr< QgsLineSymbol > QgsAbstractProfileSurfaceResults::mLineSymbol |
Definition at line 53 of file qgsabstractprofilesurfacegenerator.h.
std::unique_ptr< QgsCurve > QgsAbstractProfileSurfaceResults::mProfileCurve |
Definition at line 57 of file qgsabstractprofilesurfacegenerator.h.
QgsPointSequence QgsAbstractProfileSurfaceResults::mRawPoints |
Definition at line 47 of file qgsabstractprofilesurfacegenerator.h.
Qgis::ProfileSurfaceSymbology QgsAbstractProfileSurfaceResults::symbology = Qgis::ProfileSurfaceSymbology::Line |
Definition at line 52 of file qgsabstractprofilesurfacegenerator.h.