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;
59 bool mDynamicOffset =
false;
62 std::unique_ptr< QgsRasterDataProvider > mRasterProvider;
65 bool mCreatedTransform =
false;
70class QgsDrapeToZAlgorithm :
public QgsDrapeAlgorithmBase
74 QString name()
const override;
75 QString displayName()
const override;
76 QStringList tags()
const override;
77 QString shortHelpString()
const override;
78 QString shortDescription()
const override;
79 QgsDrapeToZAlgorithm *createInstance() const override
SIP_FACTORY;
80 bool supportInPlaceEdit( const
QgsMapLayer *layer ) const override;
87 void prepareGeometry(
QgsGeometry &geometry,
double defaultVal ) const override;
88 QgsPoint drapeVertex( const
QgsPoint &vertex,
double rasterVal ) const override;
94class QgsDrapeToMAlgorithm : public QgsDrapeAlgorithmBase
98 QString name()
const override;
99 QString displayName()
const override;
100 QStringList tags()
const override;
101 QString shortHelpString()
const override;
102 QString shortDescription()
const override;
103 QgsDrapeToMAlgorithm *createInstance() const override
SIP_FACTORY;
104 bool supportInPlaceEdit( const
QgsMapLayer *layer ) const override;
111 void prepareGeometry(
QgsGeometry &geometry,
double defaultVal ) const override;
112 QgsPoint drapeVertex( const
QgsPoint &vertex,
double rasterVal ) const override;
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 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.
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 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.
virtual QgsFeatureList processFeature(const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException)=0
Processes an individual input feature from the source.
Base class for providing feedback from a processing algorithm.
A store for object properties.
A rectangle specified with double values.
Handles storage of information regarding WKB types and their properties.
QList< QgsFeature > QgsFeatureList