|
1 |
| -class Bezier3D : ParametricLine |
| 1 | +/************************************************************************ |
| 2 | + * This file has been generated automatically from * |
| 3 | + * * |
| 4 | + * src/analysis/interpolation/Bezier3D.h * |
| 5 | + * * |
| 6 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 7 | + ************************************************************************/ |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +class Bezier3D: ParametricLine |
2 | 13 | {
|
| 14 | +%Docstring |
| 15 | + 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.* |
| 16 | +%End |
| 17 | + |
3 | 18 | %TypeHeaderCode
|
4 |
| -#include <Bezier3D.h> |
| 19 | +#include "Bezier3D.h" |
5 | 20 | %End
|
| 21 | + protected: |
6 | 22 |
|
7 | 23 | public:
|
8 |
| - /** Default constructor*/ |
9 | 24 | Bezier3D();
|
10 |
| - /** Constructor, par is a pointer to the parent, controlpoly a controlpolygon*/ |
11 |
| - Bezier3D( ParametricLine *par, QVector<QgsPoint*> *controlpoly ); |
12 |
| - /** Destructor*/ |
| 25 | +%Docstring |
| 26 | +Default constructor |
| 27 | +%End |
| 28 | + Bezier3D( ParametricLine *par, QVector<QgsPoint *> *controlpoly ); |
| 29 | +%Docstring |
| 30 | +Constructor, par is a pointer to the parent, controlpoly a controlpolygon |
| 31 | +%End |
| 32 | + |
13 | 33 | virtual ~Bezier3D();
|
14 |
| - /** Do not use this method, since a Bezier curve does not consist of other curves*/ |
15 |
| - virtual void add( ParametricLine *pl ); |
16 |
| - /** Calculates the first derivative and assigns it to v*/ |
17 |
| - virtual void calcFirstDer( float t, Vector3D *v ); |
18 |
| - /** Calculates the second derivative and assigns it to v*/ |
19 |
| - virtual void calcSecDer( float t, Vector3D *v ); |
20 |
| - //virtual QgsPoint calcPoint(float t); |
21 |
| - /** Calculates the point on the curve and assigns it to p*/ |
22 |
| - virtual void calcPoint( float t, QgsPoint *p ); |
23 |
| - /** Changes the order of control points*/ |
| 34 | + virtual void add( ParametricLine *pl /Transfer/ ); |
| 35 | +%Docstring |
| 36 | +Do not use this method, since a Bezier curve does not consist of other curves |
| 37 | +%End |
| 38 | + virtual void calcFirstDer( float t, Vector3D *v /Out/ ); |
| 39 | +%Docstring |
| 40 | +Calculates the first derivative and assigns it to v |
| 41 | +%End |
| 42 | + virtual void calcSecDer( float t, Vector3D *v /Out/ ); |
| 43 | +%Docstring |
| 44 | +Calculates the second derivative and assigns it to v |
| 45 | +%End |
| 46 | + virtual void calcPoint( float t, QgsPoint *p /Out/ ); |
| 47 | +%Docstring |
| 48 | +Calculates the point on the curve and assigns it to p |
| 49 | +%End |
24 | 50 | virtual void changeDirection();
|
25 |
| - //virtual void draw(QPainter *p); |
26 |
| - //virtual bool intersects(ParametricLine *pal); |
27 |
| - /** Do not use this method, since a Bezier curve does not consist of other curves*/ |
| 51 | +%Docstring |
| 52 | +Changes the order of control points |
| 53 | +%End |
28 | 54 | virtual void remove( int i );
|
29 |
| - /** Returns a control point*/ |
| 55 | +%Docstring |
| 56 | +Do not use this method, since a Bezier curve does not consist of other curves |
| 57 | +%End |
30 | 58 | virtual const QgsPoint *getControlPoint( int number ) const;
|
31 |
| - /** Returns a pointer to the control polygon*/ |
32 |
| - virtual const QVector<QgsPoint*> *getControlPoly() const; |
33 |
| - /** Returns the degree of the curve*/ |
| 59 | +%Docstring |
| 60 | +Returns a control point |
| 61 | + :rtype: QgsPoint |
| 62 | +%End |
| 63 | + virtual const QVector<QgsPoint *> *getControlPoly() const; |
| 64 | +%Docstring |
| 65 | +Returns a pointer to the control polygon |
| 66 | + :rtype: list of QgsPoint |
| 67 | +%End |
34 | 68 | virtual int getDegree() const;
|
35 |
| - /** Returns the parent*/ |
| 69 | +%Docstring |
| 70 | +Returns the degree of the curve |
| 71 | + :rtype: int |
| 72 | +%End |
36 | 73 | virtual ParametricLine *getParent() const;
|
37 |
| - /** Sets the parent*/ |
| 74 | +%Docstring |
| 75 | +Returns the parent |
| 76 | + :rtype: ParametricLine |
| 77 | +%End |
38 | 78 | virtual void setParent( ParametricLine *par );
|
39 |
| - /** Sets the control polygon*/ |
40 |
| - virtual void setControlPoly( QVector<QgsPoint*> *cp ); |
| 79 | +%Docstring |
| 80 | +Sets the parent |
| 81 | +%End |
| 82 | + virtual void setControlPoly( QVector<QgsPoint *> *cp ); |
| 83 | +%Docstring |
| 84 | +Sets the control polygon |
| 85 | +%End |
41 | 86 |
|
42 | 87 | };
|
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | +/************************************************************************ |
| 92 | + * This file has been generated automatically from * |
| 93 | + * * |
| 94 | + * src/analysis/interpolation/Bezier3D.h * |
| 95 | + * * |
| 96 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 97 | + ************************************************************************/ |
0 commit comments