2017-06-22 20:25:19 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/interpolation/Bezier3D.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class Bezier3D: ParametricLine
2012-09-24 02:28:15 +02:00
{
2017-06-22 20:25:19 +02:00
%Docstring
Class Bezier3D represents a bezier curve, represented by control points. Parameter t is running from 0 to 1. The class is capable to calculate the curve point and the first two derivatives belonging to t.*
%End
2012-09-24 02:28:15 +02:00
%TypeHeaderCode
2017-06-22 20:25:19 +02:00
#include "Bezier3D.h"
2012-09-24 02:28:15 +02:00
%End
2017-06-22 20:25:19 +02:00
protected:
2012-09-24 02:28:15 +02:00
public:
Bezier3D();
2017-06-22 20:25:19 +02:00
%Docstring
Default constructor
%End
Bezier3D( ParametricLine *par, QVector<QgsPoint *> *controlpoly );
%Docstring
Constructor, par is a pointer to the parent, controlpoly a controlpolygon
%End
2012-09-24 02:28:15 +02:00
virtual ~Bezier3D();
2017-06-22 20:25:19 +02:00
virtual void add( ParametricLine *pl /Transfer/ );
%Docstring
Do not use this method, since a Bezier curve does not consist of other curves
%End
virtual void calcFirstDer( float t, Vector3D *v /Out/ );
%Docstring
Calculates the first derivative and assigns it to v
%End
virtual void calcSecDer( float t, Vector3D *v /Out/ );
%Docstring
Calculates the second derivative and assigns it to v
%End
virtual void calcPoint( float t, QgsPoint *p /Out/ );
%Docstring
Calculates the point on the curve and assigns it to p
%End
2012-09-24 02:28:15 +02:00
virtual void changeDirection();
2017-06-22 20:25:19 +02:00
%Docstring
Changes the order of control points
%End
2012-09-24 02:28:15 +02:00
virtual void remove( int i );
2017-06-22 20:25:19 +02:00
%Docstring
Do not use this method, since a Bezier curve does not consist of other curves
%End
2017-06-02 20:52:57 +02:00
virtual const QgsPoint *getControlPoint( int number ) const;
2017-06-22 20:25:19 +02:00
%Docstring
Returns a control point
:rtype: QgsPoint
%End
virtual const QVector<QgsPoint *> *getControlPoly() const;
%Docstring
Returns a pointer to the control polygon
:rtype: list of QgsPoint
%End
2012-09-24 02:28:15 +02:00
virtual int getDegree() const;
2017-06-22 20:25:19 +02:00
%Docstring
Returns the degree of the curve
:rtype: int
%End
2017-05-01 18:13:15 +02:00
virtual ParametricLine *getParent() const;
2017-06-22 20:25:19 +02:00
%Docstring
Returns the parent
:rtype: ParametricLine
%End
2017-05-01 18:13:15 +02:00
virtual void setParent( ParametricLine *par );
2017-06-22 20:25:19 +02:00
%Docstring
Sets the parent
%End
virtual void setControlPoly( QVector<QgsPoint *> *cp );
%Docstring
Sets the control polygon
%End
2014-01-27 09:22:24 +01:00
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/Bezier3D.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/