QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsAbstractProfileSurfaceGenerator Class Reference

Abstract base class for objects which generate elevation profiles which represent a continuous surface (e.g. More...

#include <qgsabstractprofilesurfacegenerator.h>

Inheritance diagram for QgsAbstractProfileSurfaceGenerator:

Public Member Functions

 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 QgsFeedbackfeedback () const =0
 Access to feedback object of the generator (may be nullptr).
virtual Qgis::ProfileGeneratorFlags flags () const
 Returns flags which reflect how the profile generator operates.
virtual bool generateProfile (const QgsProfileGenerationContext &context=QgsProfileGenerationContext())=0
 Generate the profile (based on data stored in the class).
virtual QString sourceId () const =0
 Returns a unique identifier representing the source of the profile.
virtual QgsAbstractProfileResultstakeResults ()=0
 Takes results from the generator.

Protected Attributes

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

Friends

class QgsAbstractProfileSurfaceResults

Detailed Description

Abstract base class for objects which generate elevation profiles which represent a continuous surface (e.g.

mesh layers and raster layers).

Note
Not available in Python bindings
Since
QGIS 3.26

Definition at line 76 of file qgsabstractprofilesurfacegenerator.h.

Constructor & Destructor Documentation

◆ QgsAbstractProfileSurfaceGenerator()

QgsAbstractProfileSurfaceGenerator::QgsAbstractProfileSurfaceGenerator ( const QgsProfileRequest & request)

◆ ~QgsAbstractProfileSurfaceGenerator()

QgsAbstractProfileSurfaceGenerator::~QgsAbstractProfileSurfaceGenerator ( )
overridedefault

Member Function Documentation

◆ elevationLimit()

double QgsAbstractProfileSurfaceGenerator::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.

By default this is NaN, which indicates that there is no elevation limit.

See also
setElevationLimit()
Since
QGIS 3.32

Definition at line 406 of file qgsabstractprofilesurfacegenerator.cpp.

◆ fillSymbol()

QgsFillSymbol * QgsAbstractProfileSurfaceGenerator::fillSymbol ( ) const

Returns the fill symbol to be used for rendering the results.

Definition at line 401 of file qgsabstractprofilesurfacegenerator.cpp.

◆ lineSymbol()

QgsLineSymbol * QgsAbstractProfileSurfaceGenerator::lineSymbol ( ) const

Returns the line symbol to be used for rendering the results.

Definition at line 396 of file qgsabstractprofilesurfacegenerator.cpp.

◆ setElevationLimit()

void QgsAbstractProfileSurfaceGenerator::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.

Set to NaN to indicate that there is no elevation limit.

See also
elevationLimit()
Since
QGIS 3.32

Definition at line 411 of file qgsabstractprofilesurfacegenerator.cpp.

◆ symbology()

Qgis::ProfileSurfaceSymbology QgsAbstractProfileSurfaceGenerator::symbology ( ) const

Returns the symbology type for rendering the results.

Definition at line 391 of file qgsabstractprofilesurfacegenerator.cpp.

◆ QgsAbstractProfileSurfaceResults

friend class QgsAbstractProfileSurfaceResults
friend

Definition at line 135 of file qgsabstractprofilesurfacegenerator.h.

Member Data Documentation

◆ mElevationLimit

double QgsAbstractProfileSurfaceGenerator::mElevationLimit = std::numeric_limits< double >::quiet_NaN()
protected

Definition at line 131 of file qgsabstractprofilesurfacegenerator.h.

◆ mFillSymbol

std::unique_ptr< QgsFillSymbol > QgsAbstractProfileSurfaceGenerator::mFillSymbol
protected

Definition at line 130 of file qgsabstractprofilesurfacegenerator.h.

◆ mLineSymbol

std::unique_ptr< QgsLineSymbol > QgsAbstractProfileSurfaceGenerator::mLineSymbol
protected

Definition at line 129 of file qgsabstractprofilesurfacegenerator.h.

◆ mProfileCurve

std::unique_ptr< QgsCurve > QgsAbstractProfileSurfaceGenerator::mProfileCurve
protected

Definition at line 133 of file qgsabstractprofilesurfacegenerator.h.

◆ mSymbology

Qgis::ProfileSurfaceSymbology QgsAbstractProfileSurfaceGenerator::mSymbology = Qgis::ProfileSurfaceSymbology::Line
protected

Definition at line 128 of file qgsabstractprofilesurfacegenerator.h.


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