QGIS API Documentation
2.0.1-Dufour
|
Class Bezier3D represents a bezier curve, represented by control points. More...
#include <Bezier3D.h>
Public Member Functions | |
Bezier3D () | |
Default constructor. | |
Bezier3D (ParametricLine *par, QVector< Point3D * > *controlpoly) | |
Constructor, par is a pointer to the parent, controlpoly a controlpolygon. | |
virtual | ~Bezier3D () |
Destructor. | |
virtual void | add (ParametricLine *pl) |
Do not use this method, since a Bezier curve does not consist of other curves. | |
virtual void | calcFirstDer (float t, Vector3D *v) |
Calculates the first derivative and assigns it to v. | |
virtual void | calcSecDer (float t, Vector3D *v) |
Calculates the second derivative and assigns it to v. | |
virtual void | calcPoint (float t, Point3D *p) |
Calculates the point on the curve and assigns it to p. | |
virtual void | changeDirection () |
changes the order of control points | |
virtual void | remove (int i) |
Do not use this method, since a Bezier curve does not consist of other curves. | |
virtual const Point3D * | getControlPoint (int number) const |
Returns a control point. | |
virtual const QVector< Point3D * > * | getControlPoly () const |
Returns a pointer to the control polygon. | |
virtual int | getDegree () const |
Returns the degree of the curve. | |
virtual ParametricLine * | getParent () const |
Returns the parent. | |
virtual void | setParent (ParametricLine *par) |
Sets the parent. | |
virtual void | setControlPoly (QVector< Point3D * > *cp) |
Sets the control polygon. | |
Public Member Functions inherited from ParametricLine | |
ParametricLine () | |
Default constructor. | |
ParametricLine (ParametricLine *par, QVector< Point3D * > *controlpoly) | |
Constructor, par is a pointer to the parent object, controlpoly the controlpolygon. | |
virtual | ~ParametricLine () |
Destructor. |
Additional Inherited Members | |
Protected Attributes inherited from ParametricLine | |
int | mDegree |
Degree of the parametric Line. | |
ParametricLine * | mParent |
Pointer to the parent object. | |
QVector< Point3D * > * | mControlPoly |
mControlPoly stores the points of the control polygon |
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.
Definition at line 26 of file Bezier3D.h.
|
inline |
Default constructor.
Definition at line 72 of file Bezier3D.h.
|
inline |
Constructor, par is a pointer to the parent, controlpoly a controlpolygon.
Definition at line 77 of file Bezier3D.h.
References ParametricLine::mControlPoly, and ParametricLine::mDegree.
|
inlinevirtual |
Destructor.
Definition at line 82 of file Bezier3D.h.
|
inlinevirtual |
Do not use this method, since a Bezier curve does not consist of other curves.
Implements ParametricLine.
Definition at line 89 of file Bezier3D.h.
References QgsDebugMsg.
|
virtual |
Calculates the first derivative and assigns it to v.
Implements ParametricLine.
|
virtual |
Calculates the point on the curve and assigns it to p.
Implements ParametricLine.
|
virtual |
Calculates the second derivative and assigns it to v.
Implements ParametricLine.
|
virtual |
changes the order of control points
Implements ParametricLine.
|
inlinevirtual |
Returns a control point.
Implements ParametricLine.
Definition at line 103 of file Bezier3D.h.
References ParametricLine::mControlPoly.
|
inlinevirtual |
Returns a pointer to the control polygon.
Implements ParametricLine.
Definition at line 108 of file Bezier3D.h.
References ParametricLine::mControlPoly.
|
inlinevirtual |
Returns the degree of the curve.
Implements ParametricLine.
Definition at line 113 of file Bezier3D.h.
References ParametricLine::mDegree.
|
inlinevirtual |
Returns the parent.
Implements ParametricLine.
Definition at line 118 of file Bezier3D.h.
References ParametricLine::mParent.
|
inlinevirtual |
Do not use this method, since a Bezier curve does not consist of other curves.
Implements ParametricLine.
Definition at line 95 of file Bezier3D.h.
References QgsDebugMsg.
|
inlinevirtual |
Sets the control polygon.
Implements ParametricLine.
Definition at line 128 of file Bezier3D.h.
References ParametricLine::mControlPoly, and ParametricLine::mDegree.
|
inlinevirtual |
Sets the parent.
Implements ParametricLine.
Definition at line 123 of file Bezier3D.h.
References ParametricLine::mParent.