QGIS API Documentation  3.3.0-Master (c515a66)
LinTriangleInterpolator Class Reference

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

`#include <LinTriangleInterpolator.h>`

Inheritance diagram for LinTriangleInterpolator:
[legend]

## Public Member Functions

LinTriangleInterpolator ()=default
Default constructor. More...

LinTriangleInterpolator (DualEdgeTriangulation *tin)
Constructor with reference to a DualEdgeTriangulation object. More...

bool calcNormVec (double x, double y, Vector3D *result) override
Calculates the normal vector and assigns it to vec. More...

bool calcPoint (double x, double y, QgsPoint &result) override

virtual DualEdgeTriangulationgetTriangulation () const
Returns a pointer to the current Triangulation object. More...

virtual void setTriangulation (DualEdgeTriangulation *tin)
Sets a Triangulation. More...

Public Member Functions inherited from TriangleInterpolator
virtual ~TriangleInterpolator ()=default

virtual bool calcNormVec (double x, double y, Vector3D *result SIP_OUT)=0
Calculates the normal vector and assigns it to vec. More...

virtual bool calcPoint (double x, double y, QgsPoint &result SIP_OUT)=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

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

## ◆ LinTriangleInterpolator() [1/2]

 LinTriangleInterpolator::LinTriangleInterpolator ( )
default

Default constructor.

## ◆ LinTriangleInterpolator() [2/2]

 LinTriangleInterpolator::LinTriangleInterpolator ( DualEdgeTriangulation * tin )
inline

Constructor with reference to a DualEdgeTriangulation object.

Definition at line 57 of file LinTriangleInterpolator.h.

## ◆ 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 47 of file LinTriangleInterpolator.cpp.

## ◆ calcNormVec()

 bool LinTriangleInterpolator::calcNormVec ( double x, double y, Vector3D * result )
override

Calculates the normal vector and assigns it to vec.

Definition at line 73 of file LinTriangleInterpolator.cpp.

## ◆ calcPoint()

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

Definition at line 100 of file LinTriangleInterpolator.cpp.

## ◆ getTriangulation()

 DualEdgeTriangulation * LinTriangleInterpolator::getTriangulation ( ) const
inlinevirtual

Returns a pointer to the current Triangulation object.

Definition at line 62 of file LinTriangleInterpolator.h.

## ◆ setTriangulation()

 void LinTriangleInterpolator::setTriangulation ( DualEdgeTriangulation * tin )
inlinevirtual

Sets a Triangulation.

Definition at line 67 of file LinTriangleInterpolator.h.

## ◆ mTIN

 DualEdgeTriangulation* LinTriangleInterpolator::mTIN = nullptr
protected

Definition at line 48 of file LinTriangleInterpolator.h.

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