version 3.3

VRS::Curve Class Reference

#include <vrs/curve.h>

Inheritance diagram for VRS::Curve:

VRS::Shape VRS::RenderObj VRS::SharedObj VRS::Visitable VRS::Bezier VRS::BSpline VRS::CompositeCurve

List of all members.

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.


Detailed Description

Abstract Base Class for Curves. A curve C is defined as C = { C(t) | t in [0,1] } Every type of curve must implement the curve point function and the (first) derivative.

Constructor & Destructor Documentation

VRS::Curve::Curve (  )  [protected]

Sets the updateLengthMapping_ flag to true.


Member Function Documentation

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.

virtual Iterator<Vector>* VRS::Curve::newIterator ( unsigned int  resolution  )  const [virtual]

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.

VRS::Curve::VRS_TYPEINFO ( Curve  ,
Shape   
)


The documentation for this class was generated from the following file:

Generated on Mon May 21 06:00:17 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact