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