QGIS API Documentation 4.3.0-Master (901db8dfa85)
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.
QgsFillSymbol * fillSymbol () const
 Returns the fill symbol to be used for rendering the results.
QgsLineSymbol * lineSymbol () 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 QgsFeedback * feedback () 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 QgsAbstractProfileResults * takeResults ()=0
 Takes results from the generator.
virtual QString type () const =0
 Returns the unique string identifier for the results type.

Protected Attributes

double mElevationLimit = std::numeric_limits< double >::quiet_NaN()
std::unique_ptr< QgsFillSymbol > mFillSymbol
std::unique_ptr< QgsLineSymbol > mLineSymbol
std::unique_ptr< QgsCurve > mProfileCurve
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 87 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 394 of file qgsabstractprofilesurfacegenerator.cpp.

◆ fillSymbol()

QgsFillSymbol * QgsAbstractProfileSurfaceGenerator::fillSymbol ( ) const

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

Definition at line 389 of file qgsabstractprofilesurfacegenerator.cpp.

◆ lineSymbol()

QgsLineSymbol * QgsAbstractProfileSurfaceGenerator::lineSymbol ( ) const

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

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

◆ symbology()

Qgis::ProfileSurfaceSymbology QgsAbstractProfileSurfaceGenerator::symbology ( ) const

Returns the symbology type for rendering the results.

Definition at line 379 of file qgsabstractprofilesurfacegenerator.cpp.

◆ QgsAbstractProfileSurfaceResults

friend class QgsAbstractProfileSurfaceResults
friend

Definition at line 144 of file qgsabstractprofilesurfacegenerator.h.

Member Data Documentation

◆ mElevationLimit

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

Definition at line 140 of file qgsabstractprofilesurfacegenerator.h.

◆ mFillSymbol

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

Definition at line 139 of file qgsabstractprofilesurfacegenerator.h.

◆ mLineSymbol

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

Definition at line 138 of file qgsabstractprofilesurfacegenerator.h.

◆ mProfileCurve

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

Definition at line 142 of file qgsabstractprofilesurfacegenerator.h.

◆ mSymbology

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

Definition at line 137 of file qgsabstractprofilesurfacegenerator.h.


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