QGIS API Documentation 3.99.0-Master (c22de0620c0)
Loading...
Searching...
No Matches
qgsalgorithmtransectfixeddistance.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsalgorithmtransectfixeddistance.h
3 ------------------------------------
4 begin : September 2025
5 copyright : (C) 2025 by Loïc Bartoletti
6 email : loic dot bartoletti at oslandia dot com
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 QGSALGORITHMTRANSECTFIXEDDISTANCE_H
19#define QGSALGORITHMTRANSECTFIXEDDISTANCE_H
20
21
22#include "qgis_sip.h"
24
25#define SIP_NO_FILE
26
28
32class QgsTransectFixedDistanceAlgorithm : public QgsTransectAlgorithmBase
33{
34 public:
35 QgsTransectFixedDistanceAlgorithm() = default;
36 QString name() const override;
37 QString displayName() const override;
38 QStringList tags() const override;
39 QString shortHelpString() const override;
40 QString shortDescription() const override;
41 QgsTransectFixedDistanceAlgorithm *
42 createInstance() const override SIP_FACTORY;
43
44 protected:
45 void addAlgorithmParams() override;
46 bool
47 prepareAlgorithmTransectParameters( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override;
48 std::vector<QgsPoint>
49 generateSamplingPoints( const QgsLineString &line, const QVariantMap &parameters, QgsProcessingContext &context ) override;
50 double calculateAzimuth( const QgsLineString &line, const QgsPoint &point, int pointIndex ) override;
51
52 private:
53 double mInterval = 10.0;
54 bool mIncludeStartPoint = true;
55};
56
58
59#endif // QGSALGORITHMTRANSECTFIXEDDISTANCE_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:83