|
QGIS API Documentation 3.99.0-Master (357b655ed83)
|
Implementation of QgsAbstractProfileGenerator for mesh layers. More...
#include <qgsmeshlayerprofilegenerator.h>

Public Member Functions | |
| QgsMeshLayerProfileGenerator (QgsMeshLayer *layer, const QgsProfileRequest &request) | |
| Constructor for QgsMeshLayerProfileGenerator. | |
| ~QgsMeshLayerProfileGenerator () override | |
| QgsFeedback * | feedback () 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. | |
| QgsAbstractProfileResults * | takeResults () override |
| Takes results from the generator. | |
| QString | type () const override |
| Returns the unique string identifier for the results type. | |
| 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. | |
| 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 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< QgsFillSymbol > | mFillSymbol |
| std::unique_ptr< QgsLineSymbol > | mLineSymbol |
| std::unique_ptr< QgsCurve > | mProfileCurve |
| Qgis::ProfileSurfaceSymbology | mSymbology = Qgis::ProfileSurfaceSymbology::Line |
Implementation of QgsAbstractProfileGenerator for mesh layers.
Definition at line 70 of file qgsmeshlayerprofilegenerator.h.
| QgsMeshLayerProfileGenerator::QgsMeshLayerProfileGenerator | ( | QgsMeshLayer * | layer, |
| const QgsProfileRequest & | request ) |
Constructor for QgsMeshLayerProfileGenerator.
Definition at line 63 of file qgsmeshlayerprofilegenerator.cpp.
|
overridedefault |
|
overridevirtual |
Access to feedback object of the generator (may be nullptr).
Implements QgsAbstractProfileGenerator.
Definition at line 184 of file qgsmeshlayerprofilegenerator.cpp.
|
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 97 of file qgsmeshlayerprofilegenerator.cpp.
|
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 85 of file qgsmeshlayerprofilegenerator.cpp.
|
overridevirtual |
Takes results from the generator.
Ownership is transferred to the caller.
Implements QgsAbstractProfileGenerator.
Definition at line 179 of file qgsmeshlayerprofilegenerator.cpp.
|
overridevirtual |
Returns the unique string identifier for the results type.
Implements QgsAbstractProfileGenerator.
Definition at line 90 of file qgsmeshlayerprofilegenerator.cpp.
|
friend |
Definition at line 113 of file qgsmeshlayerprofilegenerator.h.