QGIS API Documentation 3.39.0-Master (93ce9bf5c90)
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Friends | List of all members
QgsPointCloudLayerProfileResults Class Reference

Implementation of QgsAbstractProfileResults for point cloud layers. More...

#include <qgspointcloudlayerprofilegenerator.h>

Inheritance diagram for QgsPointCloudLayerProfileResults:
Inheritance graph
[legend]

Classes

struct  PointResult
 

Public Member Functions

 QgsPointCloudLayerProfileResults ()
 
 ~QgsPointCloudLayerProfileResults () override
 
QVector< QgsAbstractProfileResults::FeatureasFeatures (Qgis::ProfileExportType type, QgsFeedback *feedback=nullptr) const override
 Returns a list of features representing the calculated elevation results.
 
QVector< QgsGeometryasGeometries () 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< QgsProfileIdentifyResultsidentify (const QgsDoubleRange &distanceRange, const QgsDoubleRange &elevationRange, const QgsProfileIdentifyContext &context) override
 Identify results visible within the specified ranges.
 
QVector< QgsProfileIdentifyResultsidentify (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< PointResultresults
 
double tolerance = 0
 

Friends

class QgsPointCloudLayerProfileGenerator
 

Detailed Description

Implementation of QgsAbstractProfileResults for point cloud layers.

Note
Not available in Python bindings
Since
QGIS 3.26

Definition at line 57 of file qgspointcloudlayerprofilegenerator.h.

Constructor & Destructor Documentation

◆ QgsPointCloudLayerProfileResults()

QgsPointCloudLayerProfileResults::QgsPointCloudLayerProfileResults ( )

Definition at line 36 of file qgspointcloudlayerprofilegenerator.cpp.

◆ ~QgsPointCloudLayerProfileResults()

QgsPointCloudLayerProfileResults::~QgsPointCloudLayerProfileResults ( )
override

Definition at line 41 of file qgspointcloudlayerprofilegenerator.cpp.

Member Function Documentation

◆ asFeatures()

QVector< QgsAbstractProfileResults::Feature > QgsPointCloudLayerProfileResults::asFeatures ( Qgis::ProfileExportType  type,
QgsFeedback feedback = nullptr 
) const
overridevirtual

Returns a list of features representing the calculated elevation results.

The default implementation returns an empty list.

Since
QGIS 3.32

Reimplemented from QgsAbstractProfileResults.

Definition at line 105 of file qgspointcloudlayerprofilegenerator.cpp.

◆ asGeometries()

QVector< QgsGeometry > QgsPointCloudLayerProfileResults::asGeometries ( ) const
overridevirtual

Returns a list of geometries representing the calculated elevation results.

Implements QgsAbstractProfileResults.

Definition at line 93 of file qgspointcloudlayerprofilegenerator.cpp.

◆ copyPropertiesFromGenerator()

void QgsPointCloudLayerProfileResults::copyPropertiesFromGenerator ( const QgsAbstractProfileGenerator generator)
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.

◆ distanceToHeightMap()

QMap< double, double > QgsPointCloudLayerProfileResults::distanceToHeightMap ( ) const
overridevirtual

Returns the map of distance (chainage) to height.

Implements QgsAbstractProfileResults.

Definition at line 70 of file qgspointcloudlayerprofilegenerator.cpp.

◆ finalize()

void QgsPointCloudLayerProfileResults::finalize ( QgsFeedback feedback)

Finalizes results – should be called after last point is added.

Definition at line 47 of file qgspointcloudlayerprofilegenerator.cpp.

◆ identify() [1/2]

QVector< QgsProfileIdentifyResults > QgsPointCloudLayerProfileResults::identify ( const QgsDoubleRange distanceRange,
const QgsDoubleRange elevationRange,
const QgsProfileIdentifyContext context 
)
overridevirtual

Identify results visible within the specified ranges.

Reimplemented from QgsAbstractProfileResults.

Definition at line 285 of file qgspointcloudlayerprofilegenerator.cpp.

◆ identify() [2/2]

QVector< QgsProfileIdentifyResults > QgsPointCloudLayerProfileResults::identify ( const QgsProfilePoint point,
const QgsProfileIdentifyContext context 
)
overridevirtual

Identify results visible at the specified profile point.

Reimplemented from QgsAbstractProfileResults.

Definition at line 279 of file qgspointcloudlayerprofilegenerator.cpp.

◆ renderResults()

void QgsPointCloudLayerProfileResults::renderResults ( QgsProfileRenderContext context)
overridevirtual

Renders the results to the specified context.

Implements QgsAbstractProfileResults.

Definition at line 168 of file qgspointcloudlayerprofilegenerator.cpp.

◆ sampledPoints()

QgsPointSequence QgsPointCloudLayerProfileResults::sampledPoints ( ) const
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.

◆ snapPoint()

QgsProfileSnapResult QgsPointCloudLayerProfileResults::snapPoint ( const QgsProfilePoint point,
const QgsProfileSnapContext context 
)
overridevirtual

Snaps a point to the generated elevation profile.

Reimplemented from QgsAbstractProfileResults.

Definition at line 237 of file qgspointcloudlayerprofilegenerator.cpp.

◆ type()

QString QgsPointCloudLayerProfileResults::type ( ) const
overridevirtual

Returns the unique string identifier for the results type.

Implements QgsAbstractProfileResults.

Definition at line 65 of file qgspointcloudlayerprofilegenerator.cpp.

◆ zRange()

QgsDoubleRange QgsPointCloudLayerProfileResults::zRange ( ) const
overridevirtual

Returns the range of the retrieved elevation values.

Implements QgsAbstractProfileResults.

Definition at line 163 of file qgspointcloudlayerprofilegenerator.cpp.

Friends And Related Symbol Documentation

◆ QgsPointCloudLayerProfileGenerator

Definition at line 117 of file qgspointcloudlayerprofilegenerator.h.

Member Data Documentation

◆ maxZ

double QgsPointCloudLayerProfileResults::maxZ = std::numeric_limits< double >::lowest()

Definition at line 84 of file qgspointcloudlayerprofilegenerator.h.

◆ minZ

double QgsPointCloudLayerProfileResults::minZ = std::numeric_limits< double >::max()

Definition at line 83 of file qgspointcloudlayerprofilegenerator.h.

◆ opacityByDistanceEffect

bool QgsPointCloudLayerProfileResults::opacityByDistanceEffect = false

Definition at line 91 of file qgspointcloudlayerprofilegenerator.h.

◆ pointColor

QColor QgsPointCloudLayerProfileResults::pointColor

Definition at line 90 of file qgspointcloudlayerprofilegenerator.h.

◆ pointSize

double QgsPointCloudLayerProfileResults::pointSize = 1

Definition at line 86 of file qgspointcloudlayerprofilegenerator.h.

◆ pointSizeUnit

Qgis::RenderUnit QgsPointCloudLayerProfileResults::pointSizeUnit = Qgis::RenderUnit::Millimeters

Definition at line 87 of file qgspointcloudlayerprofilegenerator.h.

◆ pointSymbol

Qgis::PointCloudSymbol QgsPointCloudLayerProfileResults::pointSymbol = Qgis::PointCloudSymbol::Square

Definition at line 88 of file qgspointcloudlayerprofilegenerator.h.

◆ respectLayerColors

bool QgsPointCloudLayerProfileResults::respectLayerColors = true

Definition at line 89 of file qgspointcloudlayerprofilegenerator.h.

◆ results

std::vector< PointResult > QgsPointCloudLayerProfileResults::results

Definition at line 80 of file qgspointcloudlayerprofilegenerator.h.

◆ tolerance

double QgsPointCloudLayerProfileResults::tolerance = 0

Definition at line 81 of file qgspointcloudlayerprofilegenerator.h.


The documentation for this class was generated from the following files: