18#ifndef QGSALGORITHMDRAPE_H
19#define QGSALGORITHMDRAPE_H
34 QString
group()
const override;
35 QString
groupId()
const override;
36 void initParameters(
const QVariantMap &configuration = QVariantMap() )
override;
44 virtual void prepareGeometry(
QgsGeometry &geometry,
double defaultVal )
const = 0;
45 virtual QgsPoint drapeVertex(
const QgsPoint &vertex,
double rasterVal )
const = 0;
48 bool mDynamicNoData =
false;
52 bool mDynamicScale =
false;
56 bool mDynamicOffset =
false;
59 std::unique_ptr<QgsRasterDataProvider> mRasterProvider;
62 bool mCreatedTransform =
false;
66class QgsDrapeToZAlgorithm :
public QgsDrapeAlgorithmBase
69 QString name()
const override;
70 QString displayName()
const override;
71 QStringList tags()
const override;
72 QString shortHelpString()
const override;
73 QString shortDescription()
const override;
74 QgsDrapeToZAlgorithm *createInstance() const override
SIP_FACTORY;
75 bool supportInPlaceEdit( const
QgsMapLayer *layer ) const override;
78 Qgis::WkbType outputWkbType(
Qgis::WkbType inputWkbType ) const override;
81 void prepareGeometry(
QgsGeometry &geometry,
double defaultVal ) const override;
82 QgsPoint drapeVertex( const
QgsPoint &vertex,
double rasterVal ) const override;
86class QgsDrapeToMAlgorithm : public QgsDrapeAlgorithmBase
89 QString name()
const override;
90 QString displayName()
const override;
91 QStringList tags()
const override;
92 QString shortHelpString()
const override;
93 QString shortDescription()
const override;
94 QgsDrapeToMAlgorithm *createInstance() const override
SIP_FACTORY;
95 bool supportInPlaceEdit( const
QgsMapLayer *layer ) const override;
98 Qgis::WkbType outputWkbType(
Qgis::WkbType inputWkbType ) const override;
101 void prepareGeometry(
QgsGeometry &geometry,
double defaultVal ) const override;
102 QgsPoint drapeVertex( const
QgsPoint &vertex,
double rasterVal ) const override;
The Qgis class provides global constants for use throughout the application.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
A geometry is the spatial representation of a feature.
Base class for all map layer types.
Point geometry type, with support for z-dimension and m-values.
virtual QString group() const
Returns the name of the group this algorithm belongs to.
virtual bool prepareAlgorithm(const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback)
Prepares the algorithm to run using the specified parameters.
virtual QString groupId() const
Returns the unique ID of the group this algorithm belongs to.
Contains information about the context in which a processing algorithm is executed.
An abstract QgsProcessingAlgorithm base class for processing algorithms which operate "feature-by-fea...
virtual QgsFeatureList processFeature(const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback)=0
Processes an individual input feature from the source.
virtual void initParameters(const QVariantMap &configuration=QVariantMap())
Initializes any extra parameters added by the algorithm subclass.
virtual QString outputName() const =0
Returns the translated, user visible name for any layers created by this algorithm.
Base class for providing feedback from a processing algorithm.
A store for object properties.
A rectangle specified with double values.
QList< QgsFeature > QgsFeatureList