#include <LinTriangleInterpolator.h>
Public Member Functions | |
LinTriangleInterpolator () | |
Default constructor. | |
LinTriangleInterpolator (DualEdgeTriangulation *tin) | |
Constructor with reference to a DualEdgeTriangulation object. | |
virtual | ~LinTriangleInterpolator () |
Destructor. | |
virtual bool | calcNormVec (double x, double y, Vector3D *result) |
Calculates the normal vector and assigns it to vec. | |
virtual bool | calcPoint (double x, double y, Point3D *result) |
Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point. | |
virtual DualEdgeTriangulation * | getTriangulation () const |
Returns a pointer to the current Triangulation object. | |
virtual void | setTriangulation (DualEdgeTriangulation *tin) |
Sets a Triangulation. | |
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 | |
DualEdgeTriangulation * | mTIN |
Definition at line 24 of file LinTriangleInterpolator.h.
LinTriangleInterpolator::LinTriangleInterpolator | ( | ) | [inline] |
LinTriangleInterpolator::LinTriangleInterpolator | ( | DualEdgeTriangulation * | tin | ) | [inline] |
Constructor with reference to a DualEdgeTriangulation object.
Definition at line 56 of file LinTriangleInterpolator.h.
LinTriangleInterpolator::~LinTriangleInterpolator | ( | ) | [inline, virtual] |
virtual bool LinTriangleInterpolator::calcNormVec | ( | double | x, | |
double | y, | |||
Vector3D * | result | |||
) | [virtual] |
virtual bool LinTriangleInterpolator::calcPoint | ( | double | x, | |
double | y, | |||
Point3D * | result | |||
) | [virtual] |
Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point.
Implements TriangleInterpolator.
DualEdgeTriangulation * LinTriangleInterpolator::getTriangulation | ( | ) | const [inline, virtual] |
Returns a pointer to the current Triangulation object.
Definition at line 66 of file LinTriangleInterpolator.h.
References mTIN.
void LinTriangleInterpolator::setTriangulation | ( | DualEdgeTriangulation * | tin | ) | [inline, virtual] |
virtual bool LinTriangleInterpolator::calcFirstDerX | ( | double | x, | |
double | y, | |||
Vector3D * | result | |||
) | [protected, virtual] |
Calculates the first derivative with respect to x for a linear surface and assigns it to vec.
virtual bool LinTriangleInterpolator::calcFirstDerY | ( | double | x, | |
double | y, | |||
Vector3D * | result | |||
) | [protected, virtual] |
Calculates the first derivative with respect to y for a linear surface and assigns it to vec.
DualEdgeTriangulation* LinTriangleInterpolator::mTIN [protected] |
Definition at line 44 of file LinTriangleInterpolator.h.
Referenced by getTriangulation(), and setTriangulation().