QGIS API Documentation
3.99.0-Master (357b655ed83)
Loading...
Searching...
No Matches
src
analysis
processing
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
#define SIP_NO_FILE
22
23
#include "
qgis_sip.h
"
24
#include "
qgsalgorithmtransectbase.h
"
25
27
31
class
QgsTransectFixedDistanceAlgorithm :
public
QgsTransectAlgorithmBase
32
{
33
public
:
34
QgsTransectFixedDistanceAlgorithm() =
default
;
35
QString name()
const override
;
36
QString displayName()
const override
;
37
QStringList tags()
const override
;
38
QString shortHelpString()
const override
;
39
QString shortDescription()
const override
;
40
QgsTransectFixedDistanceAlgorithm *
41
createInstance()
const
override
SIP_FACTORY
;
42
43
protected
:
44
void
addAlgorithmParams()
override
;
45
bool
46
prepareAlgorithmTransectParameters(
const
QVariantMap ¶meters,
QgsProcessingContext
&context,
QgsProcessingFeedback
*feedback )
override
;
47
std::vector<QgsPoint>
48
generateSamplingPoints(
const
QgsLineString
&line,
const
QVariantMap ¶meters,
QgsProcessingContext
&context )
override
;
49
double
calculateAzimuth(
const
QgsLineString
&line,
const
QgsPoint
&point,
int
pointIndex )
override
;
50
51
private
:
52
double
mInterval = 10.0;
53
bool
mIncludeStartPoint =
true
;
54
};
55
57
58
#endif
// QGSALGORITHMTRANSECTFIXEDDISTANCE_H
QgsLineString
Line string geometry type, with support for z-dimension and m-values.
Definition
qgslinestring.h:48
QgsPoint
Point geometry type, with support for z-dimension and m-values.
Definition
qgspoint.h:53
QgsProcessingContext
Contains information about the context in which a processing algorithm is executed.
Definition
qgsprocessingcontext.h:45
QgsProcessingFeedback
Base class for providing feedback from a processing algorithm.
Definition
qgsprocessingfeedback.h:38
qgis_sip.h
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:84
qgsalgorithmtransectbase.h
Generated on
for QGIS API Documentation by
1.15.0