QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
TriangleInterpolator.h
Go to the documentation of this file.
1/***************************************************************************
2 TriangleInterpolator.h - description
3 -------------------
4 copyright : (C) 2004 by Marco Hugentobler
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#ifndef TINTERPOLATOR_H
18#define TINTERPOLATOR_H
19
20#include "Vector3D.h"
21
22#include "qgis_sip.h"
23#include "qgis_analysis.h"
24
25class QgsPoint;
26
27#define SIP_NO_FILE
28
34class ANALYSIS_EXPORT TriangleInterpolator
35{
36 public:
37 virtual ~TriangleInterpolator() = default;
39 virtual bool calcNormVec( double x, double y, QgsPoint &result SIP_OUT ) = 0;
41 virtual bool calcPoint( double x, double y, QgsPoint &result SIP_OUT ) = 0;
42};
43
44#endif
45
46
47
48
49
50
51
52
Point geometry type, with support for z-dimension and m-values.
Definition: qgspoint.h:49
This is an interface for interpolator classes for triangulations.
virtual ~TriangleInterpolator()=default
virtual bool calcNormVec(double x, double y, QgsPoint &result)=0
Calculates the normal vector and assigns it to vec.
virtual bool calcPoint(double x, double y, QgsPoint &result)=0
Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point.
#define SIP_OUT
Definition: qgis_sip.h:58