QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
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< QgsGeometry > | asGeometries () const override |
Returns a list of geometries representing the calculated elevation results. More... | |
void | copyPropertiesFromGenerator (const QgsAbstractProfileGenerator *generator) override |
Copies properties from specified generator to the results object. More... | |
QMap< double, double > | distanceToHeightMap () const override |
Returns the map of distance (chainage) to height. More... | |
QVector< QgsProfileIdentifyResults > | identify (const QgsProfilePoint &point, const QgsProfileIdentifyContext &context) override |
Identify results visible at the specified profile point. More... | |
void | renderResults (QgsProfileRenderContext &context) override |
Renders the results to the specified context. More... | |
QgsPointSequence | sampledPoints () const override |
Returns a list of sampled points, with their calculated elevation as the point z value. More... | |
QgsProfileSnapResult | snapPoint (const QgsProfilePoint &point, const QgsProfileSnapContext &context) override |
Snaps a point to the generated elevation profile. More... | |
QgsDoubleRange | zRange () const override |
Returns the range of the retrieved elevation values. More... | |
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. More... | |
virtual QString | type () const =0 |
Returns the unique string identifier for the results type. More... | |
Public Attributes | |
double | maxZ = std::numeric_limits< double >::lowest() |
QMap< double, double > | mDistanceToHeightMap |
std::unique_ptr< QgsFillSymbol > | mFillSymbol |
double | minZ = std::numeric_limits< double >::max() |
std::unique_ptr< QgsLineSymbol > | mLineSymbol |
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 37 of file qgsabstractprofilesurfacegenerator.h.
|
overridedefault |
|
overridevirtual |
Returns a list of geometries representing the calculated elevation results.
Implements QgsAbstractProfileResults.
Reimplemented in QgsVectorLayerProfileResults.
Definition at line 46 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 217 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Returns the map of distance (chainage) to height.
Implements QgsAbstractProfileResults.
Definition at line 31 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Identify results visible at the specified profile point.
Reimplemented from QgsAbstractProfileResults.
Reimplemented in QgsVectorLayerProfileResults, QgsMeshLayerProfileResults, and QgsRasterLayerProfileResults.
Definition at line 85 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Renders the results to the specified context.
Implements QgsAbstractProfileResults.
Reimplemented in QgsVectorLayerProfileResults.
Definition at line 124 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 36 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Snaps a point to the generated elevation profile.
Reimplemented from QgsAbstractProfileResults.
Reimplemented in QgsVectorLayerProfileResults.
Definition at line 56 of file qgsabstractprofilesurfacegenerator.cpp.
|
overridevirtual |
Returns the range of the retrieved elevation values.
Implements QgsAbstractProfileResults.
Definition at line 41 of file qgsabstractprofilesurfacegenerator.cpp.
double QgsAbstractProfileSurfaceResults::maxZ = std::numeric_limits< double >::lowest() |
Definition at line 46 of file qgsabstractprofilesurfacegenerator.h.
QMap< double, double > QgsAbstractProfileSurfaceResults::mDistanceToHeightMap |
Definition at line 44 of file qgsabstractprofilesurfacegenerator.h.
std::unique_ptr< QgsFillSymbol > QgsAbstractProfileSurfaceResults::mFillSymbol |
Definition at line 50 of file qgsabstractprofilesurfacegenerator.h.
double QgsAbstractProfileSurfaceResults::minZ = std::numeric_limits< double >::max() |
Definition at line 45 of file qgsabstractprofilesurfacegenerator.h.
std::unique_ptr< QgsLineSymbol > QgsAbstractProfileSurfaceResults::mLineSymbol |
Definition at line 49 of file qgsabstractprofilesurfacegenerator.h.
QgsPointSequence QgsAbstractProfileSurfaceResults::mRawPoints |
Definition at line 43 of file qgsabstractprofilesurfacegenerator.h.
Qgis::ProfileSurfaceSymbology QgsAbstractProfileSurfaceResults::symbology = Qgis::ProfileSurfaceSymbology::Line |
Definition at line 48 of file qgsabstractprofilesurfacegenerator.h.