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 virtual QString outputName() const =0
Returns the translated, user visible name for any layers created by this algorithm.
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.
Base class for all map layer types.
Base class for providing feedback from a processing algorithm.
virtual QgsFeatureList processFeature(const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback) SIP_THROW(QgsProcessingException)=0
Processes an individual input feature from the source.
QList< QgsFeature > QgsFeatureList
virtual QString group() const
Returns the name of the group this algorithm belongs to.
A geometry is the spatial representation of a feature.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Type
The WKB type describes the number of dimensions a geometry has.
A store for object properties.
Point geometry type, with support for z-dimension and m-values.
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.
An abstract QgsProcessingAlgorithm base class for processing algorithms which operate "feature-by-fea...
Contains information about the context in which a processing algorithm is executed.