QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGSALGORITHMDRAPE_H
19 #define QGSALGORITHMDRAPE_H
36 QString
group()
const override;
37 QString
groupId()
const override;
38 void initParameters(
const QVariantMap &configuration = QVariantMap() )
override;
47 virtual void prepareGeometry(
QgsGeometry &geometry,
double defaultVal )
const = 0;
48 virtual QgsPoint drapeVertex(
const QgsPoint &vertex,
double rasterVal )
const = 0;
51 bool mDynamicNoData =
false;
55 bool mDynamicScale =
false;
58 std::unique_ptr< QgsRasterDataProvider > mRasterProvider;
61 bool mCreatedTransform =
false;
66 class QgsDrapeToZAlgorithm :
public QgsDrapeAlgorithmBase
70 QString name()
const override;
71 QString displayName()
const override;
72 QStringList tags()
const override;
73 QString shortHelpString()
const override;
74 QString shortDescription()
const override;
75 QgsDrapeToZAlgorithm *createInstance() const override
SIP_FACTORY;
76 bool supportInPlaceEdit( const
QgsMapLayer *layer ) const override;
83 void prepareGeometry(
QgsGeometry &geometry,
double defaultVal ) const override;
84 QgsPoint drapeVertex( const
QgsPoint &vertex,
double rasterVal ) const override;
90 class QgsDrapeToMAlgorithm : public QgsDrapeAlgorithmBase
94 QString name()
const override;
95 QString displayName()
const override;
96 QStringList tags()
const override;
97 QString shortHelpString()
const override;
98 QString shortDescription()
const override;
99 QgsDrapeToMAlgorithm *createInstance() const override
SIP_FACTORY;
100 bool supportInPlaceEdit( const
QgsMapLayer *layer ) const override;
107 void prepareGeometry(
QgsGeometry &geometry,
double defaultVal ) const override;
108 QgsPoint drapeVertex( const
QgsPoint &vertex,
double rasterVal ) const override;
114 #endif // QGSALGORITHMDRAPE_H
A store for object properties.
Point geometry type, with support for z-dimension and m-values.
Base class for providing feedback from a processing algorithm.
virtual void initParameters(const QVariantMap &configuration=QVariantMap())
Initializes any extra parameters added by the algorithm subclass.
virtual QString groupId() const
Returns the unique ID of the group this algorithm belongs to.
virtual bool prepareAlgorithm(const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException)
Prepares the algorithm to run using the specified parameters.
A rectangle specified with double values.
An abstract QgsProcessingAlgorithm base class for processing algorithms which operate "feature-by-fea...
virtual QgsFeatureList processFeature(const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException)=0
Processes an individual input feature from the source.
Contains information about the context in which a processing algorithm is executed.
QList< QgsFeature > QgsFeatureList
virtual QString outputName() const =0
Returns the translated, user visible name for any layers created by this algorithm.
A geometry is the spatial representation of a feature.
Base class for all map layer types. This is the base class for all map layer types (vector,...
virtual QString group() const
Returns the name of the group this algorithm belongs to.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Handles storage of information regarding WKB types and their properties.