QGIS API Documentation
2.8.2-Wien
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
analysis
interpolation
LinTriangleInterpolator.h
Go to the documentation of this file.
1
/***************************************************************************
2
LinTriangleInterpolator.h - description
3
-------------------
4
copyright : (C) 2004 by Marco Hugentobler
5
email :
[email protected]
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 LINTRIANGLEINTERPOLATOR_H
18
#define LINTRIANGLEINTERPOLATOR_H
19
20
#include "
TriangleInterpolator.h
"
21
#include "
DualEdgeTriangulation.h
"
22
24
class
ANALYSIS_EXPORT
LinTriangleInterpolator
:
public
TriangleInterpolator
25
{
26
public
:
28
LinTriangleInterpolator
();
30
LinTriangleInterpolator
(
DualEdgeTriangulation
* tin );
32
virtual
~
LinTriangleInterpolator
();
34
virtual
bool
calcNormVec
(
double
x,
double
y,
Vector3D
* result )
override
;
36
virtual
bool
calcPoint
(
double
x,
double
y,
Point3D
* result )
override
;
38
virtual
DualEdgeTriangulation
* getTriangulation()
const
;
40
virtual
void
setTriangulation(
DualEdgeTriangulation
* tin );
41
42
43
protected
:
44
DualEdgeTriangulation
*
mTIN
;
46
virtual
bool
calcFirstDerX(
double
x,
double
y,
Vector3D
* result );
48
virtual
bool
calcFirstDerY(
double
x,
double
y,
Vector3D
* result );
49
};
50
51
inline
LinTriangleInterpolator::LinTriangleInterpolator
()
52
{
53
54
}
55
56
inline
LinTriangleInterpolator::LinTriangleInterpolator
(
DualEdgeTriangulation
* tin ): mTIN( tin )
57
{
58
59
}
60
61
inline
LinTriangleInterpolator::~LinTriangleInterpolator
()
62
{
63
64
}
65
66
inline
DualEdgeTriangulation
*
LinTriangleInterpolator::getTriangulation
()
const
67
{
68
return
mTIN
;
69
}
70
71
inline
void
LinTriangleInterpolator::setTriangulation
(
DualEdgeTriangulation
* tin )
72
{
73
mTIN
= tin;
74
}
75
76
#endif
77
78
79
80
81
82
83
Generated on Sun May 10 2015 16:33:23 for QGIS API Documentation by
1.8.1.2