QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
QgsMeshLayerProfileGenerator Class Reference

Implementation of QgsAbstractProfileGenerator for mesh layers. More...

#include <qgsmeshlayerprofilegenerator.h>

Inheritance diagram for QgsMeshLayerProfileGenerator:
Inheritance graph
[legend]

Public Member Functions

 QgsMeshLayerProfileGenerator (QgsMeshLayer *layer, const QgsProfileRequest &request)
 Constructor for QgsMeshLayerProfileGenerator.
 
 ~QgsMeshLayerProfileGenerator () override
 
QgsFeedbackfeedback () const override
 Access to feedback object of the generator (may be nullptr)
 
bool generateProfile (const QgsProfileGenerationContext &context=QgsProfileGenerationContext()) 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.
 
- Public Member Functions inherited from QgsAbstractProfileSurfaceGenerator
 QgsAbstractProfileSurfaceGenerator (const QgsProfileRequest &request)
 Constructor for QgsAbstractProfileSurfaceGenerator.
 
 ~QgsAbstractProfileSurfaceGenerator () override
 
double elevationLimit () const
 Returns the elevation limit, which is used when symbology() is Qgis::ProfileSurfaceSymbology::FillBelow or Qgis::ProfileSurfaceSymbology::FillAbove to limit the fill to a specific elevation range.
 
QgsFillSymbolfillSymbol () const
 Returns the fill symbol to be used for rendering the results.
 
QgsLineSymbollineSymbol () const
 Returns the line symbol to be used for rendering the results.
 
void setElevationLimit (double limit)
 Sets the elevation limit, which is used when symbology() is Qgis::ProfileSurfaceSymbology::FillBelow or Qgis::ProfileSurfaceSymbology::FillAbove to limit the fill to a specific elevation range.
 
Qgis::ProfileSurfaceSymbology symbology () const
 Returns the symbology type for rendering the results.
 
- Public Member Functions inherited from QgsAbstractProfileGenerator
virtual ~QgsAbstractProfileGenerator ()
 
virtual Qgis::ProfileGeneratorFlags flags () const
 Returns flags which reflect how the profile generator operates.
 

Friends

class QgsMeshLayerProfileResults
 

Additional Inherited Members

- Protected Attributes inherited from QgsAbstractProfileSurfaceGenerator
double mElevationLimit = std::numeric_limits< double >::quiet_NaN()
 
std::unique_ptr< QgsFillSymbolmFillSymbol
 
std::unique_ptr< QgsLineSymbolmLineSymbol
 
std::unique_ptr< QgsCurvemProfileCurve
 
Qgis::ProfileSurfaceSymbology mSymbology = Qgis::ProfileSurfaceSymbology::Line
 

Detailed Description

Implementation of QgsAbstractProfileGenerator for mesh layers.

Note
Not available in Python bindings
Since
QGIS 3.26

Definition at line 69 of file qgsmeshlayerprofilegenerator.h.

Constructor & Destructor Documentation

◆ QgsMeshLayerProfileGenerator()

QgsMeshLayerProfileGenerator::QgsMeshLayerProfileGenerator ( QgsMeshLayer layer,
const QgsProfileRequest request 
)

Constructor for QgsMeshLayerProfileGenerator.

Definition at line 58 of file qgsmeshlayerprofilegenerator.cpp.

◆ ~QgsMeshLayerProfileGenerator()

QgsMeshLayerProfileGenerator::~QgsMeshLayerProfileGenerator ( )
overridedefault

Member Function Documentation

◆ feedback()

QgsFeedback * QgsMeshLayerProfileGenerator::feedback ( ) const
overridevirtual

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

Implements QgsAbstractProfileGenerator.

Definition at line 174 of file qgsmeshlayerprofilegenerator.cpp.

◆ generateProfile()

bool QgsMeshLayerProfileGenerator::generateProfile ( const QgsProfileGenerationContext context = QgsProfileGenerationContext())
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 87 of file qgsmeshlayerprofilegenerator.cpp.

◆ sourceId()

QString QgsMeshLayerProfileGenerator::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 80 of file qgsmeshlayerprofilegenerator.cpp.

◆ takeResults()

QgsAbstractProfileResults * QgsMeshLayerProfileGenerator::takeResults ( )
overridevirtual

Takes results from the generator.

Ownership is transferred to the caller.

Implements QgsAbstractProfileGenerator.

Definition at line 169 of file qgsmeshlayerprofilegenerator.cpp.

Friends And Related Symbol Documentation

◆ QgsMeshLayerProfileResults

friend class QgsMeshLayerProfileResults
friend

Definition at line 111 of file qgsmeshlayerprofilegenerator.h.


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