QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Implementation of QgsAbstractProfileResults for point cloud layers. More...
#include <qgspointcloudlayerprofilegenerator.h>
Classes | |
struct | PointResult |
Public Member Functions | |
QgsPointCloudLayerProfileResults () | |
~QgsPointCloudLayerProfileResults () 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... | |
void | finalize (QgsFeedback *feedback) |
Finalizes results – should be called after last point is added. 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... | |
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... | |
QString | type () const override |
Returns the unique string identifier for the results type. 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 | |
double | maxZ = std::numeric_limits< double >::lowest() |
double | minZ = std::numeric_limits< double >::max() |
bool | opacityByDistanceEffect = false |
QColor | pointColor |
double | pointSize = 1 |
QgsUnitTypes::RenderUnit | pointSizeUnit = QgsUnitTypes::RenderMillimeters |
Qgis::PointCloudSymbol | pointSymbol = Qgis::PointCloudSymbol::Square |
bool | respectLayerColors = true |
std::vector< PointResult > | results |
double | tolerance = 0 |
Friends | |
class | QgsPointCloudLayerProfileGenerator |
Implementation of QgsAbstractProfileResults for point cloud layers.
Definition at line 57 of file qgspointcloudlayerprofilegenerator.h.
QgsPointCloudLayerProfileResults::QgsPointCloudLayerProfileResults | ( | ) |
Definition at line 38 of file qgspointcloudlayerprofilegenerator.cpp.
|
override |
Definition at line 43 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Returns a list of geometries representing the calculated elevation results.
Implements QgsAbstractProfileResults.
Definition at line 95 of file qgspointcloudlayerprofilegenerator.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.
Definition at line 261 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Returns the map of distance (chainage) to height.
Implements QgsAbstractProfileResults.
Definition at line 72 of file qgspointcloudlayerprofilegenerator.cpp.
void QgsPointCloudLayerProfileResults::finalize | ( | QgsFeedback * | feedback | ) |
Finalizes results – should be called after last point is added.
Definition at line 49 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Identify results visible within the specified ranges.
Reimplemented from QgsAbstractProfileResults.
Definition at line 229 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Identify results visible at the specified profile point.
Reimplemented from QgsAbstractProfileResults.
Definition at line 223 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Renders the results to the specified context.
Implements QgsAbstractProfileResults.
Definition at line 112 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Returns a list of sampled points, with their calculated elevation as the point z value.
Implements QgsAbstractProfileResults.
Definition at line 83 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Snaps a point to the generated elevation profile.
Reimplemented from QgsAbstractProfileResults.
Definition at line 181 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Returns the unique string identifier for the results type.
Implements QgsAbstractProfileResults.
Definition at line 67 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Returns the range of the retrieved elevation values.
Implements QgsAbstractProfileResults.
Definition at line 107 of file qgspointcloudlayerprofilegenerator.cpp.
|
friend |
Definition at line 115 of file qgspointcloudlayerprofilegenerator.h.
double QgsPointCloudLayerProfileResults::maxZ = std::numeric_limits< double >::lowest() |
Definition at line 84 of file qgspointcloudlayerprofilegenerator.h.
double QgsPointCloudLayerProfileResults::minZ = std::numeric_limits< double >::max() |
Definition at line 83 of file qgspointcloudlayerprofilegenerator.h.
bool QgsPointCloudLayerProfileResults::opacityByDistanceEffect = false |
Definition at line 91 of file qgspointcloudlayerprofilegenerator.h.
QColor QgsPointCloudLayerProfileResults::pointColor |
Definition at line 90 of file qgspointcloudlayerprofilegenerator.h.
double QgsPointCloudLayerProfileResults::pointSize = 1 |
Definition at line 86 of file qgspointcloudlayerprofilegenerator.h.
QgsUnitTypes::RenderUnit QgsPointCloudLayerProfileResults::pointSizeUnit = QgsUnitTypes::RenderMillimeters |
Definition at line 87 of file qgspointcloudlayerprofilegenerator.h.
Qgis::PointCloudSymbol QgsPointCloudLayerProfileResults::pointSymbol = Qgis::PointCloudSymbol::Square |
Definition at line 88 of file qgspointcloudlayerprofilegenerator.h.
bool QgsPointCloudLayerProfileResults::respectLayerColors = true |
Definition at line 89 of file qgspointcloudlayerprofilegenerator.h.
std::vector< PointResult > QgsPointCloudLayerProfileResults::results |
Definition at line 80 of file qgspointcloudlayerprofilegenerator.h.
double QgsPointCloudLayerProfileResults::tolerance = 0 |
Definition at line 81 of file qgspointcloudlayerprofilegenerator.h.