| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/bezier.h>

Public Member Functions | |
| Bezier (Iterator< Vector > *controlpoints=(Iterator< Vector > *) 0, Iterator< Color > *controlpointcolors=(Iterator< Color > *) 0) | |
| Constructs the curve with the given control points. | |
| void | setVertexIterator (Iterator< Vector > *itr) |
| Sets the control points. | |
| Iterator< Vector > * | newVertexIterator () const |
| Returns the control points. | |
| void | setColorIterator (Iterator< Color > *itr) |
| Sets the colors for the control points. | |
| Iterator< Color > * | newColorIterator () const |
| Sets the colors for the control points. | |
| virtual Vector | curvePoint (double u) const |
| Returns the curve point specified by u. | |
| virtual Vector | derivative (int degree, double u) const |
| Returns the degree's derivative at the point specified by u, see curvePoint. | |
| virtual Bounds | boundingBox () const |
| Returns the bounding box. | |
| VRS_TYPEINFO (Bezier, Curve) | |
| VRS_SERIALIZABLE (Bezier) | |
| VRS::Bezier::Bezier | ( | Iterator< Vector > * | controlpoints = (Iterator< Vector > *) 0, |
|
| Iterator< Color > * | controlpointcolors = (Iterator< Color > *) 0 | |||
| ) |
Constructs the curve with the given control points.
The number of control points specifies the order of the Bezier curve. IMPORTANT: the colors are not supported !!
Sets the colors for the control points.
There must be the same number of colors as control points.
Sets the colors for the control points.
The colors correspond 1 on 1 to the controlling vertices.
| virtual Vector VRS::Bezier::curvePoint | ( | double | u | ) | const [virtual] |
Returns the curve point specified by u.
u is the parametric value between 0 and 1. The calculation is based on the current set of control points.
Implements VRS::Curve.
| virtual Vector VRS::Bezier::derivative | ( | int | degree, | |
| double | u | |||
| ) | const [virtual] |
| virtual Bounds VRS::Bezier::boundingBox | ( | ) | const [virtual] |
| VRS::Bezier::VRS_SERIALIZABLE | ( | Bezier | ) |