2017-06-22 20:25:19 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/interpolation/LinTriangleInterpolator.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
class LinTriangleInterpolator : TriangleInterpolator
|
|
|
|
{
|
2017-06-22 20:25:19 +02:00
|
|
|
%Docstring
|
|
|
|
LinTriangleInterpolator is a class which interpolates linearly on a triangulation*
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-22 20:25:19 +02:00
|
|
|
#include "LinTriangleInterpolator.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
LinTriangleInterpolator();
|
2017-06-22 20:25:19 +02:00
|
|
|
%Docstring
|
|
|
|
Default constructor
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
LinTriangleInterpolator( DualEdgeTriangulation *tin );
|
2017-06-22 20:25:19 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor with reference to a DualEdgeTriangulation object
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
virtual ~LinTriangleInterpolator();
|
2017-06-22 20:25:19 +02:00
|
|
|
virtual bool calcNormVec( double x, double y, Vector3D *result /Out/ );
|
|
|
|
%Docstring
|
|
|
|
Calculates the normal vector and assigns it to vec
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
|
|
|
virtual bool calcPoint( double x, double y, QgsPoint *result /Out/ );
|
|
|
|
%Docstring
|
|
|
|
Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual DualEdgeTriangulation *getTriangulation() const;
|
2017-06-22 20:25:19 +02:00
|
|
|
%Docstring
|
|
|
|
Returns a pointer to the current Triangulation object
|
|
|
|
:rtype: DualEdgeTriangulation
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual void setTriangulation( DualEdgeTriangulation *tin );
|
2017-06-22 20:25:19 +02:00
|
|
|
%Docstring
|
|
|
|
Sets a Triangulation
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
protected:
|
2017-06-22 20:25:19 +02:00
|
|
|
virtual bool calcFirstDerX( double x, double y, Vector3D *result /Out/ );
|
|
|
|
%Docstring
|
|
|
|
Calculates the first derivative with respect to x for a linear surface and assigns it to vec
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
|
|
|
virtual bool calcFirstDerY( double x, double y, Vector3D *result /Out/ );
|
|
|
|
%Docstring
|
|
|
|
Calculates the first derivative with respect to y for a linear surface and assigns it to vec
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-06-22 20:25:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/interpolation/LinTriangleInterpolator.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|