QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
This is an implementation of a Clough-Tocher interpolator based on a triangular tessellation. More...
#include <CloughTocherInterpolator.h>
Public Member Functions | |
CloughTocherInterpolator ()=default | |
CloughTocherInterpolator (NormVecDecorator *tin) | |
Constructor with a pointer to the triangulation as argument. | |
bool | calcNormVec (double x, double y, QgsPoint &result) override |
Calculates the normal vector and assigns it to vec (not implemented at the moment) | |
bool | calcPoint (double x, double y, QgsPoint &result) override |
Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point. | |
virtual void | setTriangulation (NormVecDecorator *tin) |
Public Member Functions inherited from TriangleInterpolator | |
virtual | ~TriangleInterpolator ()=default |
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. '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. | |
void | init (double x, double y) |
Finds out, in which triangle the point with the coordinates x and y is. | |
Protected Attributes | |
QgsPoint | cp1 = QgsPoint( 0, 0, 0 ) |
Control point 1. | |
QgsPoint | cp10 = QgsPoint( 0, 0, 0 ) |
Control point 10. | |
QgsPoint | cp11 = QgsPoint( 0, 0, 0 ) |
Control point 11. | |
QgsPoint | cp12 = QgsPoint( 0, 0, 0 ) |
Control point 12. | |
QgsPoint | cp13 = QgsPoint( 0, 0, 0 ) |
Control point 13. | |
QgsPoint | cp14 = QgsPoint( 0, 0, 0 ) |
Control point 14. | |
QgsPoint | cp15 = QgsPoint( 0, 0, 0 ) |
Control point 15. | |
QgsPoint | cp16 = QgsPoint( 0, 0, 0 ) |
Control point 16. | |
QgsPoint | cp2 = QgsPoint( 0, 0, 0 ) |
Control point 2. | |
QgsPoint | cp3 = QgsPoint( 0, 0, 0 ) |
Control point 3. | |
QgsPoint | cp4 = QgsPoint( 0, 0, 0 ) |
Control point 4. | |
QgsPoint | cp5 = QgsPoint( 0, 0, 0 ) |
Control point 5. | |
QgsPoint | cp6 = QgsPoint( 0, 0, 0 ) |
Control point 6. | |
QgsPoint | cp7 = QgsPoint( 0, 0, 0 ) |
Control point 7. | |
QgsPoint | cp8 = QgsPoint( 0, 0, 0 ) |
Control point 8. | |
QgsPoint | cp9 = QgsPoint( 0, 0, 0 ) |
Control point 9. | |
double | der1X = 0.0 |
Derivative in x-direction at point1. | |
double | der1Y = 0.0 |
Derivative in y-direction at point1. | |
double | der2X = 0.0 |
Derivative in x-direction at point2. | |
double | der2Y = 0.0 |
Derivative in y-direction at point2. | |
double | der3X = 0.0 |
Derivative in x-direction at point3. | |
double | der3Y = 0.0 |
Derivative in y-direction at point3. | |
QgsPoint | lpoint1 = QgsPoint( 0, 0, 0 ) |
Stores point1 of the last run. | |
QgsPoint | lpoint2 = QgsPoint( 0, 0, 0 ) |
Stores point2 of the last run. | |
QgsPoint | lpoint3 = QgsPoint( 0, 0, 0 ) |
Stores point3 of the last run. | |
double | mEdgeTolerance = 0.00001 |
Tolerance of the barycentric coordinates at the borders of the triangles (to prevent errors because of very small negative baricentric coordinates) | |
NormVecDecorator * | mTIN = nullptr |
Association with a triangulation object. | |
QgsPoint | point1 = QgsPoint( 0, 0, 0 ) |
First point of the triangle in x-,y-,z-coordinates. | |
QgsPoint | point2 = QgsPoint( 0, 0, 0 ) |
Second point of the triangle in x-,y-,z-coordinates. | |
QgsPoint | point3 = QgsPoint( 0, 0, 0 ) |
Third point of the triangle in x-,y-,z-coordinates. | |
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 35 of file CloughTocherInterpolator.h.
|
default |
CloughTocherInterpolator::CloughTocherInterpolator | ( | NormVecDecorator * | tin | ) |
Constructor with a pointer to the triangulation as argument.
Definition at line 22 of file CloughTocherInterpolator.cpp.
|
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.
Definition at line 33 of file CloughTocherInterpolator.cpp.
|
overridevirtual |
Calculates the normal vector and assigns it to vec (not implemented at the moment)
Implements TriangleInterpolator.
Definition at line 56 of file CloughTocherInterpolator.cpp.
|
overridevirtual |
Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point.
Implements TriangleInterpolator.
Definition at line 162 of file CloughTocherInterpolator.cpp.
|
protected |
Finds out, in which triangle the point with the coordinates x and y is.
Definition at line 230 of file CloughTocherInterpolator.cpp.
|
virtual |
Definition at line 28 of file CloughTocherInterpolator.cpp.
Control point 1.
Definition at line 49 of file CloughTocherInterpolator.h.
Control point 10.
Definition at line 67 of file CloughTocherInterpolator.h.
Control point 11.
Definition at line 69 of file CloughTocherInterpolator.h.
Control point 12.
Definition at line 71 of file CloughTocherInterpolator.h.
Control point 13.
Definition at line 73 of file CloughTocherInterpolator.h.
Control point 14.
Definition at line 75 of file CloughTocherInterpolator.h.
Control point 15.
Definition at line 77 of file CloughTocherInterpolator.h.
Control point 16.
Definition at line 79 of file CloughTocherInterpolator.h.
Control point 2.
Definition at line 51 of file CloughTocherInterpolator.h.
Control point 3.
Definition at line 53 of file CloughTocherInterpolator.h.
Control point 4.
Definition at line 55 of file CloughTocherInterpolator.h.
Control point 5.
Definition at line 57 of file CloughTocherInterpolator.h.
Control point 6.
Definition at line 59 of file CloughTocherInterpolator.h.
Control point 7.
Definition at line 61 of file CloughTocherInterpolator.h.
Control point 8.
Definition at line 63 of file CloughTocherInterpolator.h.
Control point 9.
Definition at line 65 of file CloughTocherInterpolator.h.
|
protected |
Derivative in x-direction at point1.
Definition at line 81 of file CloughTocherInterpolator.h.
|
protected |
Derivative in y-direction at point1.
Definition at line 83 of file CloughTocherInterpolator.h.
|
protected |
Derivative in x-direction at point2.
Definition at line 85 of file CloughTocherInterpolator.h.
|
protected |
Derivative in y-direction at point2.
Definition at line 87 of file CloughTocherInterpolator.h.
|
protected |
Derivative in x-direction at point3.
Definition at line 89 of file CloughTocherInterpolator.h.
|
protected |
Derivative in y-direction at point3.
Definition at line 91 of file CloughTocherInterpolator.h.
Stores point1 of the last run.
Definition at line 93 of file CloughTocherInterpolator.h.
Stores point2 of the last run.
Definition at line 95 of file CloughTocherInterpolator.h.
Stores point3 of the last run.
Definition at line 97 of file CloughTocherInterpolator.h.
|
protected |
Tolerance of the barycentric coordinates at the borders of the triangles (to prevent errors because of very small negative baricentric coordinates)
Definition at line 41 of file CloughTocherInterpolator.h.
|
protected |
Association with a triangulation object.
Definition at line 39 of file CloughTocherInterpolator.h.
First point of the triangle in x-,y-,z-coordinates.
Definition at line 43 of file CloughTocherInterpolator.h.
Second point of the triangle in x-,y-,z-coordinates.
Definition at line 45 of file CloughTocherInterpolator.h.
Third point of the triangle in x-,y-,z-coordinates.
Definition at line 47 of file CloughTocherInterpolator.h.