QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
LinTriangleInterpolator is a class which interpolates linearly on a triangulation. More...
#include <LinTriangleInterpolator.h>
Public Member Functions | |
LinTriangleInterpolator ()=default | |
Default constructor. More... | |
LinTriangleInterpolator (QgsDualEdgeTriangulation *tin) | |
Constructor with reference to a DualEdgeTriangulation object. More... | |
bool | calcNormVec (double x, double y, QgsPoint &result) override |
Calculates the normal vector and assigns it to vec. More... | |
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. More... | |
virtual QgsDualEdgeTriangulation * | getTriangulation () const |
Returns a pointer to the current Triangulation object. More... | |
virtual void | setTriangulation (QgsDualEdgeTriangulation *tin) |
Sets a Triangulation. More... | |
Public Member Functions inherited from TriangleInterpolator | |
virtual | ~TriangleInterpolator ()=default |
virtual bool | calcNormVec (double x, double y, QgsPoint &result)=0 |
Calculates the normal vector and assigns it to vec. More... | |
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. More... | |
Protected Member Functions | |
virtual bool | calcFirstDerX (double x, double y, Vector3D *result) |
Calculates the first derivative with respect to x for a linear surface and assigns it to vec. More... | |
virtual bool | calcFirstDerY (double x, double y, Vector3D *result) |
Calculates the first derivative with respect to y for a linear surface and assigns it to vec. More... | |
Protected Attributes | |
QgsDualEdgeTriangulation * | mTIN = nullptr |
LinTriangleInterpolator is a class which interpolates linearly on a triangulation.
Definition at line 31 of file LinTriangleInterpolator.h.
|
default |
Default constructor.
|
inline |
Constructor with reference to a DualEdgeTriangulation object.
Definition at line 57 of file LinTriangleInterpolator.h.
|
protectedvirtual |
Calculates the first derivative with respect to x for a linear surface and assigns it to vec.
Definition at line 20 of file LinTriangleInterpolator.cpp.
|
protectedvirtual |
Calculates the first derivative with respect to y for a linear surface and assigns it to vec.
Definition at line 47 of file LinTriangleInterpolator.cpp.
|
overridevirtual |
Calculates the normal vector and assigns it to vec.
Implements TriangleInterpolator.
Definition at line 73 of file LinTriangleInterpolator.cpp.
|
overridevirtual |
Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point.
Implements TriangleInterpolator.
Definition at line 100 of file LinTriangleInterpolator.cpp.
|
inlinevirtual |
Returns a pointer to the current Triangulation object.
Definition at line 62 of file LinTriangleInterpolator.h.
|
inlinevirtual |
Sets a Triangulation.
Definition at line 67 of file LinTriangleInterpolator.h.
|
protected |
Definition at line 48 of file LinTriangleInterpolator.h.