version 3.3

VRS::CompositeCurve Class Reference

#include <vrs/compositecurve.h>

Inheritance diagram for VRS::CompositeCurve:

VRS::Curve VRS::Shape VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 CompositeCurve (Curve *curve=NULL)
void appendCurve (Curve *curve)
 Inserts the curve at the end of the set.
CurvegetCurve (unsigned int index) const
 Returns the curve specified by index.
const Iterator< SO< Curve > > * getCurveIterator () const
 Returns an containing all curves of the composition.
void insertCurveAt (unsigned int index, Curve *curve)
 Inserts the curve at the specified position.
void removeCurve (unsigned int index)
 Removes the curve on position index.
virtual Vector curvePoint (double t) const
 Returns the curve point specified by the parameter t.
virtual double t2length (double t) const
virtual double length2t (double length) const
virtual Vector derivative (int degree, double t) const
 Returns the degree's derivative of the curve point specified by the parameter t.
virtual double getLength () const
 Returns the over-all-length of the curves.
virtual int getSize () const
 Returns the number of curves.
virtual Bounds boundingBox () const
 Returns the bounding box.
 VRS_TYPEINFO (CompositeCurve, Curve)
 VRS_SERIALIZABLE (CompositeCurve)

Static Public Member Functions

static bool areCurvesCompatible (Curve *curve1, Curve *curve2)
 Returns true if the last point of curve1 is the first point of curve2.

Protected Member Functions

virtual void acceptChildren (std::vector< Visitable * > &appendChildrenHere) const


Detailed Description

Class for a set of Curves. A composite curve contains one or more ordered curves the last point of a curve is the successor's first

Constructor & Destructor Documentation

VRS::CompositeCurve::CompositeCurve ( Curve curve = NULL  ) 


Member Function Documentation

void VRS::CompositeCurve::appendCurve ( Curve curve  ) 

Inserts the curve at the end of the set.

Curve* VRS::CompositeCurve::getCurve ( unsigned int  index  )  const

Returns the curve specified by index.

const Iterator<SO<Curve> >* VRS::CompositeCurve::getCurveIterator (  )  const

Returns an containing all curves of the composition.

void VRS::CompositeCurve::insertCurveAt ( unsigned int  index,
Curve curve 
)

Inserts the curve at the specified position.

void VRS::CompositeCurve::removeCurve ( unsigned int  index  ) 

Removes the curve on position index.

static bool VRS::CompositeCurve::areCurvesCompatible ( Curve curve1,
Curve curve2 
) [static]

Returns true if the last point of curve1 is the first point of curve2.

virtual Vector VRS::CompositeCurve::curvePoint ( double  t  )  const [virtual]

Returns the curve point specified by the parameter t.

Implements VRS::Curve.

virtual double VRS::CompositeCurve::t2length ( double  t  )  const [virtual]

Returns the length of the curve path from the beginning of the curve to the point specified by the paramter t.

Reimplemented from VRS::Curve.

virtual double VRS::CompositeCurve::length2t ( double  length  )  const [virtual]

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 from VRS::Curve.

virtual Vector VRS::CompositeCurve::derivative ( int  degree,
double  t 
) const [virtual]

Returns the degree's derivative of the curve point specified by the parameter t.

Implements VRS::Curve.

virtual double VRS::CompositeCurve::getLength (  )  const [virtual]

Returns the over-all-length of the curves.

Reimplemented from VRS::Curve.

virtual int VRS::CompositeCurve::getSize (  )  const [virtual]

Returns the number of curves.

virtual Bounds VRS::CompositeCurve::boundingBox (  )  const [virtual]

Returns the bounding box.

Implements VRS::Shape.

VRS::CompositeCurve::VRS_TYPEINFO ( CompositeCurve  ,
Curve   
)

VRS::CompositeCurve::VRS_SERIALIZABLE ( CompositeCurve   ) 

virtual void VRS::CompositeCurve::acceptChildren ( std::vector< Visitable * > &  appendChildrenHere  )  const [protected, virtual]

Reimplemented from VRS::Visitable.


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

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