QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
elevation
qgsprofilesnapping.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprofilesnapping.h
3
---------------
4
begin : April 2022
5
copyright : (C) 2022 by Nyall Dawson
6
email : nyall dot dawson at gmail 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
#ifndef QGSPROFILESNAPPING_H
18
#define QGSPROFILESNAPPING_H
19
20
#include "
qgis.h
"
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
#include "
qgsprofilepoint.h
"
24
30
class
CORE_EXPORT
QgsProfileSnapContext
31
{
32
public
:
34
double
maximumSurfaceDistanceDelta
= 0;
35
37
double
maximumSurfaceElevationDelta
= 0;
38
40
double
maximumPointDistanceDelta
= 0;
41
43
double
maximumPointElevationDelta
= 0;
44
46
double
displayRatioElevationVsDistance
= 1;
47
};
48
54
class
CORE_EXPORT
QgsProfileSnapResult
55
{
56
public
:
58
QgsProfilePoint
snappedPoint
;
59
63
bool
isValid
()
const
{
return
!
snappedPoint
.isEmpty(); }
64
};
65
66
#endif
// QGSPROFILESNAPPING_H
QgsProfilePoint
Encapsulates a point on a distance-elevation profile.
Definition
qgsprofilepoint.h:35
QgsProfileSnapContext
Encapsulates the context of snapping a profile point.
Definition
qgsprofilesnapping.h:31
QgsProfileSnapContext::maximumPointDistanceDelta
double maximumPointDistanceDelta
Maximum allowed snapping delta for the distance values when snapping to a point.
Definition
qgsprofilesnapping.h:40
QgsProfileSnapContext::maximumSurfaceElevationDelta
double maximumSurfaceElevationDelta
Maximum allowed snapping delta for the elevation values when snapping to a continuous elevation surfa...
Definition
qgsprofilesnapping.h:37
QgsProfileSnapContext::maximumPointElevationDelta
double maximumPointElevationDelta
Maximum allowed snapping delta for the elevation values when snapping to a point.
Definition
qgsprofilesnapping.h:43
QgsProfileSnapContext::maximumSurfaceDistanceDelta
double maximumSurfaceDistanceDelta
Maximum allowed snapping delta for the distance values when snapping to a continuous elevation surfac...
Definition
qgsprofilesnapping.h:34
QgsProfileSnapContext::displayRatioElevationVsDistance
double displayRatioElevationVsDistance
Display ratio of elevation vs distance units.
Definition
qgsprofilesnapping.h:46
QgsProfileSnapResult
Encapsulates results of snapping a profile point.
Definition
qgsprofilesnapping.h:55
QgsProfileSnapResult::isValid
bool isValid() const
Returns true if the result is a valid point.
Definition
qgsprofilesnapping.h:63
QgsProfileSnapResult::snappedPoint
QgsProfilePoint snappedPoint
Snapped point.
Definition
qgsprofilesnapping.h:58
qgis.h
qgis_sip.h
qgsprofilepoint.h
Generated on
for QGIS API Documentation by
1.17.0