QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Implementation of QgsAbstractProfileResults for vector layers. More...
#include <qgsvectorlayerprofilegenerator.h>
Classes | |
struct | Feature |
Public Member Functions | |
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... | |
QVector< QgsProfileIdentifyResults > | identify (const QgsDoubleRange &distanceRange, const QgsDoubleRange &elevationRange, const QgsProfileIdentifyContext &context) override |
Identify results visible within the specified ranges. 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... | |
QgsProfileSnapResult | snapPoint (const QgsProfilePoint &point, const QgsProfileSnapContext &context) override |
Snaps a point to the generated elevation profile. More... | |
QString | type () const override |
Returns the unique string identifier for the results type. More... | |
Public Member Functions inherited from QgsAbstractProfileSurfaceResults | |
~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< QgsGeometry > | asGeometries () const =0 |
Returns a list of geometries representing the calculated elevation results. More... | |
virtual void | copyPropertiesFromGenerator (const QgsAbstractProfileGenerator *generator) |
Copies properties from specified generator to the results object. More... | |
virtual QMap< double, double > | distanceToHeightMap () const =0 |
Returns the map of distance (chainage) to height. More... | |
virtual QVector< QgsProfileIdentifyResults > | identify (const QgsDoubleRange &distanceRange, const QgsDoubleRange &elevationRange, const QgsProfileIdentifyContext &context) |
Identify results visible within the specified ranges. More... | |
virtual QVector< QgsProfileIdentifyResults > | identify (const QgsProfilePoint &point, const QgsProfileIdentifyContext &context) |
Identify results visible at the specified profile point. More... | |
virtual void | renderResults (QgsProfileRenderContext &context)=0 |
Renders the results to the specified context. More... | |
virtual QgsPointSequence | sampledPoints () const =0 |
Returns a list of sampled points, with their calculated elevation as the point z value. More... | |
virtual QgsProfileSnapResult | snapPoint (const QgsProfilePoint &point, const QgsProfileSnapContext &context) |
Snaps a point to the generated elevation profile. More... | |
virtual QString | type () const =0 |
Returns the unique string identifier for the results type. More... | |
virtual QgsDoubleRange | zRange () const =0 |
Returns the range of the retrieved elevation values. More... | |
Public Attributes | |
QHash< QgsFeatureId, QVector< Feature > > | features |
QPointer< QgsVectorLayer > | mLayer |
std::unique_ptr< QgsMarkerSymbol > | mMarkerSymbol |
bool | mShowMarkerSymbolInSurfacePlots = false |
Qgis::VectorProfileType | profileType = Qgis::VectorProfileType::IndividualFeatures |
bool | respectLayerSymbology = true |
Public Attributes inherited from QgsAbstractProfileSurfaceResults | |
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 |
Implementation of QgsAbstractProfileResults for vector layers.
Definition at line 53 of file qgsvectorlayerprofilegenerator.h.
|
overridevirtual |
Returns a list of geometries representing the calculated elevation results.
Reimplemented from QgsAbstractProfileSurfaceResults.
Definition at line 49 of file qgsvectorlayerprofilegenerator.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 QgsAbstractProfileSurfaceResults.
Definition at line 601 of file qgsvectorlayerprofilegenerator.cpp.
|
overridevirtual |
Identify results visible within the specified ranges.
Reimplemented from QgsAbstractProfileResults.
Definition at line 76 of file qgsvectorlayerprofilegenerator.cpp.
|
overridevirtual |
Identify results visible at the specified profile point.
Reimplemented from QgsAbstractProfileSurfaceResults.
Definition at line 95 of file qgsvectorlayerprofilegenerator.cpp.
|
overridevirtual |
Renders the results to the specified context.
Reimplemented from QgsAbstractProfileSurfaceResults.
Definition at line 371 of file qgsvectorlayerprofilegenerator.cpp.
|
overridevirtual |
Snaps a point to the generated elevation profile.
Reimplemented from QgsAbstractProfileSurfaceResults.
Definition at line 63 of file qgsvectorlayerprofilegenerator.cpp.
|
overridevirtual |
Returns the unique string identifier for the results type.
Implements QgsAbstractProfileResults.
Definition at line 44 of file qgsvectorlayerprofilegenerator.cpp.
QHash< QgsFeatureId, QVector< Feature > > QgsVectorLayerProfileResults::features |
Definition at line 67 of file qgsvectorlayerprofilegenerator.h.
QPointer< QgsVectorLayer > QgsVectorLayerProfileResults::mLayer |
Definition at line 68 of file qgsvectorlayerprofilegenerator.h.
std::unique_ptr< QgsMarkerSymbol > QgsVectorLayerProfileResults::mMarkerSymbol |
Definition at line 72 of file qgsvectorlayerprofilegenerator.h.
bool QgsVectorLayerProfileResults::mShowMarkerSymbolInSurfacePlots = false |
Definition at line 73 of file qgsvectorlayerprofilegenerator.h.
Qgis::VectorProfileType QgsVectorLayerProfileResults::profileType = Qgis::VectorProfileType::IndividualFeatures |
Definition at line 70 of file qgsvectorlayerprofilegenerator.h.
bool QgsVectorLayerProfileResults::respectLayerSymbology = true |
Definition at line 71 of file qgsvectorlayerprofilegenerator.h.