mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
- update methods of existing classes - add comment to methods missing in the sip bindings - split up collective sip files into single files and use same directory structure in python/ as in src/ - add a lot of missing classes (some might not make sense because of missing python methods in those classes) - remove some non-existing methods from the header files - add scripts/sipdiff - replace some usages of std::vector and std::set with QVector/QSet
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
class CloughTocherInterpolator : TriangleInterpolator
|
|
{
|
|
%TypeHeaderCode
|
|
#include <CloughTocherInterpolator.h>
|
|
%End
|
|
protected:
|
|
/**Finds out, in which triangle the point with the coordinates x and y is*/
|
|
void init( double x, double y );
|
|
/**Calculates the Bernsteinpolynomials to calculate the Beziertriangle. 'n' is three in the cubical case, 'i', 'j', 'k' are the indices of the controllpoint and 'u', 'v', 'w' are the barycentric coordinates of the point*/
|
|
double calcBernsteinPoly( int n, int i, int j, int k, double u, double v, double w );
|
|
|
|
public:
|
|
/**standard constructor*/
|
|
CloughTocherInterpolator();
|
|
/**constructor with a pointer to the triangulation as argument*/
|
|
CloughTocherInterpolator( NormVecDecorator* tin );
|
|
/**destructor*/
|
|
virtual ~CloughTocherInterpolator();
|
|
/**Calculates the normal vector and assigns it to vec (not implemented at the moment)*/
|
|
virtual bool calcNormVec( double x, double y, Vector3D* result );
|
|
/**Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point*/
|
|
virtual bool calcPoint( double x, double y, Point3D* result );
|
|
virtual void setTriangulation( NormVecDecorator* tin );
|
|
};
|