QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Friends | List of all members
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:
Inheritance graph
[legend]

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 77 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 404 of file qgsabstractprofilesurfacegenerator.cpp.

◆ fillSymbol()

QgsFillSymbol * QgsAbstractProfileSurfaceGenerator::fillSymbol ( ) const

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

Definition at line 399 of file qgsabstractprofilesurfacegenerator.cpp.

◆ lineSymbol()

QgsLineSymbol * QgsAbstractProfileSurfaceGenerator::lineSymbol ( ) const

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

Definition at line 394 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 409 of file qgsabstractprofilesurfacegenerator.cpp.

◆ symbology()

Qgis::ProfileSurfaceSymbology QgsAbstractProfileSurfaceGenerator::symbology ( ) const

Returns the symbology type for rendering the results.

Definition at line 389 of file qgsabstractprofilesurfacegenerator.cpp.

Friends And Related Symbol Documentation

◆ QgsAbstractProfileSurfaceResults

friend class QgsAbstractProfileSurfaceResults
friend

Definition at line 136 of file qgsabstractprofilesurfacegenerator.h.

Member Data Documentation

◆ mElevationLimit

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

Definition at line 132 of file qgsabstractprofilesurfacegenerator.h.

◆ mFillSymbol

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

Definition at line 131 of file qgsabstractprofilesurfacegenerator.h.

◆ mLineSymbol

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

Definition at line 130 of file qgsabstractprofilesurfacegenerator.h.

◆ mProfileCurve

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

Definition at line 134 of file qgsabstractprofilesurfacegenerator.h.

◆ mSymbology

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

Definition at line 129 of file qgsabstractprofilesurfacegenerator.h.


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