iso::geom::BezierSplineAlg Class Reference

#include <iso_geom_bezier_spline_alg.h>

Inherits iso::geom::SplineAlg.

Inheritance diagram for iso::geom::BezierSplineAlg:

Inheritance graph
[legend]
Collaboration diagram for iso::geom::BezierSplineAlg:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BezierSplineAlg (unsigned int p_dimension, unsigned int p_subdivisionCount, bool pAutoTangents=true)
 create bezier spline
 ~BezierSplineAlg ()
 destructor
virtual SplineAlgcopy () const
 create a copy of a spline alg
void setAutoTangents (bool pAutoTangents)
 set autotangents mode
virtual void setSubdivisionCount (unsigned int p_subdivisionCount)
 set subdivision count
virtual void createSpline (QVector< math::Vector< real > > &p_controlPoints, QVector< math::Vector< real > > &p_splinePoints, bool b_closed=false)
 create spline

Protected Member Functions

 BezierSplineAlg ()
 default constructor
virtual void preCalc ()
 precalculate polynomial values
void createAutoTangentSpline (QVector< math::Vector< real > > &p_controlPoints, QVector< math::Vector< real > > &p_splinePoints, bool b_closed=false)
 create spline
void createExplicitTangentSpline (QVector< math::Vector< real > > &p_controlPoints, QVector< math::Vector< real > > &p_splinePoints, bool b_closed=false)
 create spline

Protected Attributes

bool mAutoTangents
 whether tangent are automatically calculated or not

Constructor & Destructor Documentation

BezierSplineAlg::BezierSplineAlg ( unsigned int  p_dimension,
unsigned int  p_subdivisionCount,
bool  pAutoTangents = true 
)

create bezier spline

Parameters:
p_dimension dimension of spline
p_subdivisionCount number of subdivisions
pAutoTangents autotangents mode

BezierSplineAlg::~BezierSplineAlg (  ) 

destructor

BezierSplineAlg::BezierSplineAlg (  )  [protected]

default constructor


Member Function Documentation

SplineAlg * BezierSplineAlg::copy (  )  const [virtual]

create a copy of a spline alg

Returns:
copy of spline alg

Implements iso::geom::SplineAlg.

void BezierSplineAlg::setAutoTangents ( bool  pAutoTangents  ) 

set autotangents mode

Parameters:
pAutoTangents autotangents mode

void BezierSplineAlg::setSubdivisionCount ( unsigned int  p_subdivisionCount  )  [virtual]

set subdivision count

Parameters:
p_subdivisionCount subdivision count

Reimplemented from iso::geom::SplineAlg.

void BezierSplineAlg::createSpline ( QVector< math::Vector< real > > &  p_controlPoints,
QVector< math::Vector< real > > &  p_splinePoints,
bool  b_closed = false 
) [virtual]

create spline

Parameters:
p_controlPoints control points
p_splinePoints resulting spline points
b_closed whether spline should be closed or not

Implements iso::geom::SplineAlg.

void BezierSplineAlg::preCalc (  )  [protected, virtual]

precalculate polynomial values

Implements iso::geom::SplineAlg.

void BezierSplineAlg::createAutoTangentSpline ( QVector< math::Vector< real > > &  p_controlPoints,
QVector< math::Vector< real > > &  p_splinePoints,
bool  b_closed = false 
) [protected]

create spline

Parameters:
p_controlPoints control points
p_splinePoints resulting spline points
b_closed whether spline should be closed or not

void BezierSplineAlg::createExplicitTangentSpline ( QVector< math::Vector< real > > &  p_controlPoints,
QVector< math::Vector< real > > &  p_splinePoints,
bool  b_closed = false 
) [protected]

create spline

Parameters:
p_controlPoints control points
p_splinePoints resulting spline points
b_closed whether spline should be closed or not


Member Data Documentation

bool iso::geom::BezierSplineAlg::mAutoTangents [protected]

whether tangent are automatically calculated or not


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 20:43:24 2010 for iso_geom by  doxygen 1.5.1