QGIS API Documentation 3.99.0-Master (09f76ad7019)
Loading...
Searching...
No Matches
qgsalgorithmtransect.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsalgorithmtransect.h
3 -------------------------
4 begin : October 2017
5 copyright : (C) 2017 by Loïc Bartoletti
6 email : lituus at free dot fr
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSALGORITHMTRANSECT_H
19#define QGSALGORITHMTRANSECT_H
20
21#define SIP_NO_FILE
22
23#include "qgis_sip.h"
25
27
31class QgsTransectAlgorithm : public QgsTransectAlgorithmBase
32{
33 public:
34 QgsTransectAlgorithm() = default;
35 QString name() const override;
36 QString displayName() const override;
37 QString shortHelpString() const override;
38 QgsTransectAlgorithm *createInstance() const override SIP_FACTORY;
39
40 private:
41 void addAlgorithmParams() override;
42 bool
43 prepareAlgorithmTransectParameters( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override;
44 std::vector<QgsPoint>
45 generateSamplingPoints( const QgsLineString &line, const QVariantMap &parameters, QgsProcessingContext &context ) override;
46 double calculateAzimuth( const QgsLineString &line, const QgsPoint &point, int pointIndex ) override;
47};
48
50
51#endif // QGSALGORITHMTRANSECT_H
Line string geometry type, with support for z-dimension and m-values.
Point geometry type, with support for z-dimension and m-values.
Definition qgspoint.h:53
Contains information about the context in which a processing algorithm is executed.
Base class for providing feedback from a processing algorithm.
#define SIP_FACTORY
Definition qgis_sip.h:84