QGIS API Documentation 3.99.0-Master (e9821da5c6b)
Loading...
Searching...
No Matches
QgsTriangulatedPointCloudLayerProfileGenerator Class Reference

Implementation of QgsAbstractProfileGenerator for triangulated point cloud layers. More...

#include <qgspointcloudlayerprofilegenerator.h>

Inheritance diagram for QgsTriangulatedPointCloudLayerProfileGenerator:

Public Member Functions

 QgsTriangulatedPointCloudLayerProfileGenerator (QgsPointCloudLayer *layer, const QgsProfileRequest &request)
 Constructor for QgsTriangulatedPointCloudLayerProfileGenerator.
 ~QgsTriangulatedPointCloudLayerProfileGenerator () override
QgsFeedbackfeedback () const override
 Access to feedback object of the generator (may be nullptr).
bool generateProfile (const QgsProfileGenerationContext &context) override
 Generate the profile (based on data stored in the class).
QString sourceId () const override
 Returns a unique identifier representing the source of the profile.
QgsAbstractProfileResultstakeResults () override
 Takes results from the generator.
QString type () const override
 Returns the unique string identifier for the results type.
Public Member Functions inherited from QgsPointCloudLayerProfileGeneratorBase
 QgsPointCloudLayerProfileGeneratorBase (QgsPointCloudLayer *layer, const QgsProfileRequest &request)
 Constructor for QgsPointCloudLayerProfileGeneratorBase.
virtual ~QgsPointCloudLayerProfileGeneratorBase () override
Public Member Functions inherited from QgsAbstractProfileGenerator
virtual ~QgsAbstractProfileGenerator ()
virtual Qgis::ProfileGeneratorFlags flags () const
 Returns flags which reflect how the profile generator operates.

Friends

class QgsTriangulatedPointCloudLayerProfileResults

Additional Inherited Members

Protected Member Functions inherited from QgsPointCloudLayerProfileGeneratorBase
bool collectData (QgsGeos &curve, const double mapUnitsPerPixel, const double maximumErrorPixels, const QgsDoubleRange &zRange, double &maxErrorInLayerCrs)
 Collects point cloud data along a curve within the specified range and tolerance.
void gatherPoints (QgsPointCloudIndex &pc, QgsPointCloudRequest &request, double maxErrorPixels, double nodeErrorPixels, const QgsDoubleRange &zRange, const QgsRectangle &searchExtent)
 Collects points from the point cloud index within the given extent and Z range.
QVector< QgsPointCloudNodeIdtraverseTree (QgsPointCloudIndex &pc, QgsPointCloudNodeId n, double maxErrorPixels, double nodeErrorPixels, const QgsDoubleRange &zRange, const QgsRectangle &searchExtent)
 Recursively traverses the point cloud node tree to gather visible nodes.
int visitNodesAsync (const QVector< QgsPointCloudNodeId > &nodes, QgsPointCloudIndex &pc, QgsPointCloudRequest &request, const QgsDoubleRange &zRange)
 Asynchronously visits point cloud nodes, loading their data and processing valid blocks.
int visitNodesSync (const QVector< QgsPointCloudNodeId > &nodes, QgsPointCloudIndex &pc, QgsPointCloudRequest &request, const QgsDoubleRange &zRange)
 Synchronously visits point cloud nodes and processes their data.
Protected Attributes inherited from QgsPointCloudLayerProfileGeneratorBase
std::unique_ptr< QgsFeedbackmFeedback = nullptr
QString mId
QgsPointCloudIndex mIndex
QPointer< QgsPointCloudLayermLayer
QgsPointCloudAttributeCollection mLayerAttributes
QgsCoordinateTransform mLayerToTargetTransform
double mMaximumScreenError = 0.3
Qgis::RenderUnit mMaximumScreenErrorUnit = Qgis::RenderUnit::Millimeters
std::unique_ptr< QgsPreparedPointCloudRendererDatamPreparedRendererData
std::unique_ptr< QgsCurvemProfileCurve
std::unique_ptr< QgsPointCloudRenderermRenderer
std::unique_ptr< QgsGeosmSearchGeometryInLayerCrsGeometryEngine
QgsCoordinateReferenceSystem mSourceCrs
double mStepDistance = std::numeric_limits<double>::quiet_NaN()
const QVector< QgsPointCloudSubIndex > mSubIndexes
QgsCoordinateReferenceSystem mTargetCrs
double mTolerance = 0
QgsCoordinateTransformContext mTransformContext
double mZOffset = 0
double mZScale = 1.0

Detailed Description

Implementation of QgsAbstractProfileGenerator for triangulated point cloud layers.

Note
Not available in Python bindings
Since
QGIS 4.0

Definition at line 341 of file qgspointcloudlayerprofilegenerator.h.

Constructor & Destructor Documentation

◆ QgsTriangulatedPointCloudLayerProfileGenerator()

QgsTriangulatedPointCloudLayerProfileGenerator::QgsTriangulatedPointCloudLayerProfileGenerator ( QgsPointCloudLayer * layer,
const QgsProfileRequest & request )

◆ ~QgsTriangulatedPointCloudLayerProfileGenerator()

QgsTriangulatedPointCloudLayerProfileGenerator::~QgsTriangulatedPointCloudLayerProfileGenerator ( )
overridedefault

Member Function Documentation

◆ feedback()

QgsFeedback * QgsTriangulatedPointCloudLayerProfileGenerator::feedback ( ) const
overridevirtual

Access to feedback object of the generator (may be nullptr).

Implements QgsAbstractProfileGenerator.

Definition at line 1048 of file qgspointcloudlayerprofilegenerator.cpp.

◆ generateProfile()

bool QgsTriangulatedPointCloudLayerProfileGenerator::generateProfile ( const QgsProfileGenerationContext & context)
overridevirtual

Generate the profile (based on data stored in the class).

Returns true if the profile was generated successfully (i.e. the generation was not canceled early).

Implements QgsAbstractProfileGenerator.

Definition at line 922 of file qgspointcloudlayerprofilegenerator.cpp.

◆ sourceId()

QString QgsTriangulatedPointCloudLayerProfileGenerator::sourceId ( ) const
overridevirtual

Returns a unique identifier representing the source of the profile.

For generators associated with a map layer the source ID will match the layer's QgsMapLayer::id(). Other (non-map-layer) sources will have a different unique ID with its own custom interpretation.gen

Implements QgsAbstractProfileGenerator.

Definition at line 910 of file qgspointcloudlayerprofilegenerator.cpp.

◆ takeResults()

QgsAbstractProfileResults * QgsTriangulatedPointCloudLayerProfileGenerator::takeResults ( )
overridevirtual

Takes results from the generator.

Ownership is transferred to the caller.

Implements QgsAbstractProfileGenerator.

Definition at line 1043 of file qgspointcloudlayerprofilegenerator.cpp.

◆ type()

QString QgsTriangulatedPointCloudLayerProfileGenerator::type ( ) const
overridevirtual

Returns the unique string identifier for the results type.

Implements QgsAbstractProfileGenerator.

Definition at line 915 of file qgspointcloudlayerprofilegenerator.cpp.

◆ QgsTriangulatedPointCloudLayerProfileResults


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