QGIS API Documentation 3.41.0-Master (3c143d501a8)
|
Class Bezier3D represents a bezier curve, represented by control points. More...
#include <Bezier3D.h>
Public Member Functions | |
Bezier3D ()=default | |
Bezier3D (ParametricLine *par, QVector< QgsPoint * > *controlpoly) | |
Constructor, par is a pointer to the parent, controlpoly a controlpolygon. | |
void | add (ParametricLine *pl) override |
Do not use this method, since a Bezier curve does not consist of other curves. | |
void | calcFirstDer (float t, Vector3D *v) override |
Calculates the first derivative and assigns it to v. | |
void | calcPoint (float t, QgsPoint *p) override |
Calculates the point on the curve and assigns it to p. | |
void | calcSecDer (float t, Vector3D *v) override |
Calculates the second derivative and assigns it to v. | |
void | changeDirection () override |
Changes the order of control points. | |
const QgsPoint * | getControlPoint (int number) const override |
Returns a control point. | |
const QVector< QgsPoint * > * | getControlPoly () const override |
Returns a pointer to the control polygon. | |
int | getDegree () const override |
Returns the degree of the curve. | |
ParametricLine * | getParent () const override |
Returns the parent. | |
void | remove (int i) override |
Do not use this method, since a Bezier curve does not consist of other curves. | |
void | setControlPoly (QVector< QgsPoint * > *cp) override |
Sets the control polygon. | |
void | setParent (ParametricLine *par) override |
Sets the parent. | |
Public Member Functions inherited from ParametricLine | |
ParametricLine ()=default | |
ParametricLine (ParametricLine *par, QVector< QgsPoint * > *controlpoly) | |
Constructor, par is a pointer to the parent object, controlpoly the controlpolygon. | |
virtual | ~ParametricLine ()=default |
Additional Inherited Members | |
Protected Attributes inherited from ParametricLine | |
QVector< QgsPoint * > * | mControlPoly = nullptr |
MControlPoly stores the points of the control polygon. | |
int | mDegree = 0 |
Degree of the parametric Line. | |
ParametricLine * | mParent = nullptr |
Pointer to the parent object. If there isn't one, mParent is 0. | |
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 it.
Definition at line 33 of file Bezier3D.h.
|
default |
|
inline |
Constructor, par is a pointer to the parent, controlpoly a controlpolygon.
Definition at line 77 of file Bezier3D.h.
|
inlineoverridevirtual |
Do not use this method, since a Bezier curve does not consist of other curves.
Implements ParametricLine.
Definition at line 84 of file Bezier3D.h.
|
overridevirtual |
Calculates the first derivative and assigns it to v.
Implements ParametricLine.
Definition at line 22 of file Bezier3D.cpp.
|
overridevirtual |
Calculates the point on the curve and assigns it to p.
Implements ParametricLine.
Definition at line 53 of file Bezier3D.cpp.
|
overridevirtual |
Calculates the second derivative and assigns it to v.
Implements ParametricLine.
Definition at line 77 of file Bezier3D.cpp.
|
overridevirtual |
Changes the order of control points.
Implements ParametricLine.
Definition at line 110 of file Bezier3D.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns a pointer to the control polygon.
Implements ParametricLine.
Definition at line 103 of file Bezier3D.h.
|
inlineoverridevirtual |
Returns the degree of the curve.
Implements ParametricLine.
Definition at line 108 of file Bezier3D.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Do not use this method, since a Bezier curve does not consist of other curves.
Implements ParametricLine.
Definition at line 90 of file Bezier3D.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |