QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
This is an implementation of a Clough-Tocher interpolator based on a triangular tessellation. More...
#include <CloughTocherInterpolator.h>
Public Member Functions | |
CloughTocherInterpolator () | |
Standard constructor. More... | |
CloughTocherInterpolator (NormVecDecorator *tin) | |
Constructor with a pointer to the triangulation as argument. More... | |
virtual | ~CloughTocherInterpolator () |
Destructor. More... | |
virtual bool | calcNormVec (double x, double y, Vector3D *result) override |
Calculates the normal vector and assigns it to vec (not implemented at the moment) More... | |
virtual bool | calcPoint (double x, double y, Point3D *result) override |
Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point. More... | |
virtual void | setTriangulation (NormVecDecorator *tin) |
Public Member Functions inherited from TriangleInterpolator | |
virtual | ~TriangleInterpolator () |
Protected Member Functions | |
double | calcBernsteinPoly (int n, int i, int j, int k, double u, double v, double w) |
Calculates the Bernsteinpolynomials to calculate the Beziertriangle. More... | |
void | init (double x, double y) |
Finds out, in which triangle the point with the coordinates x and y is. More... | |
Protected Attributes | |
Point3D | cp1 |
Point3D | cp10 |
Point3D | cp11 |
Point3D | cp12 |
Point3D | cp13 |
Point3D | cp14 |
Point3D | cp15 |
Point3D | cp16 |
Point3D | cp2 |
Point3D | cp3 |
Point3D | cp4 |
Point3D | cp5 |
Point3D | cp6 |
Point3D | cp7 |
Point3D | cp8 |
Point3D | cp9 |
double | der1X |
Derivative in x-direction at point1. More... | |
double | der1Y |
Derivative in y-direction at point1. More... | |
double | der2X |
Derivative in x-direction at point2. More... | |
double | der2Y |
Derivative in y-direction at point2. More... | |
double | der3X |
Derivative in x-direction at point3. More... | |
double | der3Y |
Derivative in y-direction at point3. More... | |
Point3D | lpoint1 |
Stores point1 of the last run. More... | |
Point3D | lpoint2 |
Stores point2 of the last run. More... | |
Point3D | lpoint3 |
Stores point3 of the last run. More... | |
double | mEdgeTolerance |
Tolerance of the barycentric coordinates at the borders of the triangles (to prevent errors because of very small negativ baricentric coordinates) More... | |
NormVecDecorator * | mTIN |
Association with a triangulation object. More... | |
Point3D | point1 |
First point of the triangle in x-,y-,z-coordinates. More... | |
Point3D | point2 |
Second point of the triangle in x-,y-,z-coordinates. More... | |
Point3D | point3 |
Third point of the triangle in x-,y-,z-coordinates. More... | |
This is an implementation of a Clough-Tocher interpolator based on a triangular tessellation.
The derivatives orthogonal to the boundary curves are interpolated linearly along a triangle edge.
Definition at line 29 of file CloughTocherInterpolator.h.
CloughTocherInterpolator::CloughTocherInterpolator | ( | ) |
Standard constructor.
CloughTocherInterpolator::CloughTocherInterpolator | ( | NormVecDecorator * | tin | ) |
Constructor with a pointer to the triangulation as argument.
|
virtual |
Destructor.
|
protected |
Calculates the Bernsteinpolynomials to calculate the Beziertriangle.
'n' is three in the cubical case, 'i', 'j', 'k' are the indices of the controllpoint and 'u', 'v', 'w' are the barycentric coordinates of the point
|
overridevirtual |
Calculates the normal vector and assigns it to vec (not implemented at the moment)
Implements TriangleInterpolator.
|
overridevirtual |
Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point.
Implements TriangleInterpolator.
|
protected |
Finds out, in which triangle the point with the coordinates x and y is.
|
virtual |
|
protected |
Definition at line 42 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 51 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 52 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 53 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 54 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 55 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 56 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 57 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 43 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 44 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 45 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 46 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 47 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 48 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 49 of file CloughTocherInterpolator.h.
|
protected |
Definition at line 50 of file CloughTocherInterpolator.h.
|
protected |
Derivative in x-direction at point1.
Definition at line 59 of file CloughTocherInterpolator.h.
|
protected |
Derivative in y-direction at point1.
Definition at line 61 of file CloughTocherInterpolator.h.
|
protected |
Derivative in x-direction at point2.
Definition at line 63 of file CloughTocherInterpolator.h.
|
protected |
Derivative in y-direction at point2.
Definition at line 65 of file CloughTocherInterpolator.h.
|
protected |
Derivative in x-direction at point3.
Definition at line 67 of file CloughTocherInterpolator.h.
|
protected |
Derivative in y-direction at point3.
Definition at line 69 of file CloughTocherInterpolator.h.
|
protected |
Stores point1 of the last run.
Definition at line 71 of file CloughTocherInterpolator.h.
|
protected |
Stores point2 of the last run.
Definition at line 73 of file CloughTocherInterpolator.h.
|
protected |
Stores point3 of the last run.
Definition at line 75 of file CloughTocherInterpolator.h.
|
protected |
Tolerance of the barycentric coordinates at the borders of the triangles (to prevent errors because of very small negativ baricentric coordinates)
Definition at line 35 of file CloughTocherInterpolator.h.
|
protected |
Association with a triangulation object.
Definition at line 33 of file CloughTocherInterpolator.h.
|
protected |
First point of the triangle in x-,y-,z-coordinates.
Definition at line 37 of file CloughTocherInterpolator.h.
|
protected |
Second point of the triangle in x-,y-,z-coordinates.
Definition at line 39 of file CloughTocherInterpolator.h.
|
protected |
Third point of the triangle in x-,y-,z-coordinates.
Definition at line 41 of file CloughTocherInterpolator.h.