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

Public Member Functions | |
| virtual Vector | curvePoint (double t) const =0 |
| Returns the curve point specified by the parameter t. | |
| virtual double | t2length (double t) const |
| Returns the length of the curve path for t. | |
| virtual double | length2t (double length) const |
| Returns the parameter t delivering a curve point with 'length' curve path length. | |
| virtual Vector | derivative (int degree, double t) const =0 |
| Returns the degree's derivative of the curve point specified by the parameter t. | |
| virtual Iterator< Vector > * | newIterator (unsigned int resolution) const |
| virtual double | getLength () const |
| virtual void | modified () |
| Returns the length of the curve. | |
| VRS_TYPEINFO (Curve, Shape) | |
Protected Member Functions | |
| Curve () | |
| Sets the updateLengthMapping_ flag to true. | |
| VRS::Curve::Curve | ( | ) | [protected] |
Sets the updateLengthMapping_ flag to true.
| virtual Vector VRS::Curve::curvePoint | ( | double | t | ) | const [pure virtual] |
Returns the curve point specified by the parameter t.
Implemented in VRS::Bezier, VRS::BSpline, and VRS::CompositeCurve.
| virtual double VRS::Curve::t2length | ( | double | t | ) | const [virtual] |
Returns the length of the curve path for t.
Returns the length of the curve path from the beginning of the curve to the point specified by the paramter t.
Reimplemented in VRS::CompositeCurve.
| virtual double VRS::Curve::length2t | ( | double | length | ) | const [virtual] |
Returns the parameter t delivering a curve point with 'length' curve path length.
Returns the parameter value neccessary to calculate a point on the curve so that the path from the beginning of the curve to the point for the delivered t is length long.
Reimplemented in VRS::CompositeCurve.
| virtual Vector VRS::Curve::derivative | ( | int | degree, | |
| double | t | |||
| ) | const [pure virtual] |
Returns the degree's derivative of the curve point specified by the parameter t.
Implemented in VRS::Bezier, VRS::BSpline, and VRS::CompositeCurve.
returns a new iterator that will return `resolution' points, spread uniformly (on the parameter space) between 0 and 1. The iterator references the curve and, when reset, updates the values according to the curve.
| virtual double VRS::Curve::getLength | ( | ) | const [virtual] |
Reimplemented in VRS::CompositeCurve.
| virtual void VRS::Curve::modified | ( | ) | [virtual] |
Returns the length of the curve.
Overwritten to set the updateLengthMapping_ flag
Reimplemented from VRS::SharedObj.
Reimplemented in VRS::BSpline.