QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Implementation of QgsAbstractProfileResults for point cloud layers. More...
#include <qgspointcloudlayerprofilegenerator.h>
Classes | |
struct | PointResult |
Public Member Functions | |
QgsPointCloudLayerProfileResults () | |
~QgsPointCloudLayerProfileResults () 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. | |
void | finalize (QgsFeedback *feedback) |
Finalizes results – should be called after last point is added. | |
QVector< QgsProfileIdentifyResults > | identify (const QgsDoubleRange &distanceRange, const QgsDoubleRange &elevationRange, const QgsProfileIdentifyContext &context) override |
Identify results visible within the specified ranges. | |
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. | |
QString | type () const override |
Returns the unique string identifier for the results type. | |
QgsDoubleRange | zRange () const override |
Returns the range of the retrieved elevation values. | |
Public Member Functions inherited from QgsAbstractProfileResults | |
virtual | ~QgsAbstractProfileResults () |
Public Attributes | |
double | maxZ = std::numeric_limits< double >::lowest() |
double | minZ = std::numeric_limits< double >::max() |
bool | opacityByDistanceEffect = false |
QColor | pointColor |
double | pointSize = 1 |
Qgis::RenderUnit | pointSizeUnit = Qgis::RenderUnit::Millimeters |
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 36 of file qgspointcloudlayerprofilegenerator.cpp.
|
override |
Definition at line 41 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Returns a list of features representing the calculated elevation results.
The default implementation returns an empty list.
Reimplemented from QgsAbstractProfileResults.
Definition at line 105 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Returns a list of geometries representing the calculated elevation results.
Implements QgsAbstractProfileResults.
Definition at line 93 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 317 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Returns the map of distance (chainage) to height.
Implements QgsAbstractProfileResults.
Definition at line 70 of file qgspointcloudlayerprofilegenerator.cpp.
void QgsPointCloudLayerProfileResults::finalize | ( | QgsFeedback * | feedback | ) |
Finalizes results – should be called after last point is added.
Definition at line 47 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Identify results visible within the specified ranges.
Reimplemented from QgsAbstractProfileResults.
Definition at line 285 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Identify results visible at the specified profile point.
Reimplemented from QgsAbstractProfileResults.
Definition at line 279 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Renders the results to the specified context.
Implements QgsAbstractProfileResults.
Definition at line 168 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 81 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Snaps a point to the generated elevation profile.
Reimplemented from QgsAbstractProfileResults.
Definition at line 237 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Returns the unique string identifier for the results type.
Implements QgsAbstractProfileResults.
Definition at line 65 of file qgspointcloudlayerprofilegenerator.cpp.
|
overridevirtual |
Returns the range of the retrieved elevation values.
Implements QgsAbstractProfileResults.
Definition at line 163 of file qgspointcloudlayerprofilegenerator.cpp.
|
friend |
Definition at line 117 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.
Qgis::RenderUnit QgsPointCloudLayerProfileResults::pointSizeUnit = Qgis::RenderUnit::Millimeters |
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.