QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
LinTriangleInterpolator Class Reference

LinTriangleInterpolator is a class which interpolates linearly on a triangulation. More...

#include <LinTriangleInterpolator.h>

Inheritance diagram for LinTriangleInterpolator:
Inheritance graph
[legend]

Public Member Functions

 LinTriangleInterpolator ()=default
 
 LinTriangleInterpolator (QgsDualEdgeTriangulation *tin)
 Constructor with reference to a DualEdgeTriangulation object.
 
bool calcNormVec (double x, double y, QgsPoint &result) override
 Calculates the normal vector and assigns it to vec.
 
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 QgsDualEdgeTriangulationgetTriangulation () const
 Returns a pointer to the current Triangulation object.
 
virtual void setTriangulation (QgsDualEdgeTriangulation *tin)
 Sets a Triangulation.
 
- Public Member Functions inherited from TriangleInterpolator
virtual ~TriangleInterpolator ()=default
 

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.
 
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.
 

Protected Attributes

QgsDualEdgeTriangulationmTIN = nullptr
 

Detailed Description

LinTriangleInterpolator is a class which interpolates linearly on a triangulation.

Note
Not available in Python bindings.

Definition at line 31 of file LinTriangleInterpolator.h.

Constructor & Destructor Documentation

◆ LinTriangleInterpolator() [1/2]

LinTriangleInterpolator::LinTriangleInterpolator ( )
default

◆ LinTriangleInterpolator() [2/2]

LinTriangleInterpolator::LinTriangleInterpolator ( QgsDualEdgeTriangulation tin)
inline

Constructor with reference to a DualEdgeTriangulation object.

Definition at line 56 of file LinTriangleInterpolator.h.

Member Function Documentation

◆ calcFirstDerX()

bool LinTriangleInterpolator::calcFirstDerX ( double  x,
double  y,
Vector3D result 
)
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.

◆ calcFirstDerY()

bool LinTriangleInterpolator::calcFirstDerY ( double  x,
double  y,
Vector3D result 
)
protectedvirtual

Calculates the first derivative with respect to y for a linear surface and assigns it to vec.

Definition at line 46 of file LinTriangleInterpolator.cpp.

◆ calcNormVec()

bool LinTriangleInterpolator::calcNormVec ( double  x,
double  y,
QgsPoint result 
)
overridevirtual

Calculates the normal vector and assigns it to vec.

Implements TriangleInterpolator.

Definition at line 72 of file LinTriangleInterpolator.cpp.

◆ calcPoint()

bool LinTriangleInterpolator::calcPoint ( double  x,
double  y,
QgsPoint result 
)
overridevirtual

Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point.

Implements TriangleInterpolator.

Definition at line 102 of file LinTriangleInterpolator.cpp.

◆ getTriangulation()

QgsDualEdgeTriangulation * LinTriangleInterpolator::getTriangulation ( ) const
inlinevirtual

Returns a pointer to the current Triangulation object.

Definition at line 61 of file LinTriangleInterpolator.h.

◆ setTriangulation()

void LinTriangleInterpolator::setTriangulation ( QgsDualEdgeTriangulation tin)
inlinevirtual

Sets a Triangulation.

Definition at line 66 of file LinTriangleInterpolator.h.

Member Data Documentation

◆ mTIN

QgsDualEdgeTriangulation* LinTriangleInterpolator::mTIN = nullptr
protected

Definition at line 47 of file LinTriangleInterpolator.h.


The documentation for this class was generated from the following files: