#include <iso_geom_bezier_spline_alg.h>
Inherits iso::geom::SplineAlg.
Inheritance diagram for iso::geom::BezierSplineAlg:
Public Member Functions | |
BezierSplineAlg (unsigned int p_dimension, unsigned int p_subdivisionCount, bool pAutoTangents=true) | |
create bezier spline | |
~BezierSplineAlg () | |
destructor | |
virtual SplineAlg * | copy () 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 |
BezierSplineAlg::BezierSplineAlg | ( | unsigned int | p_dimension, | |
unsigned int | p_subdivisionCount, | |||
bool | pAutoTangents = true | |||
) |
create bezier spline
p_dimension | dimension of spline | |
p_subdivisionCount | number of subdivisions | |
pAutoTangents | autotangents mode |
BezierSplineAlg::~BezierSplineAlg | ( | ) |
destructor
BezierSplineAlg::BezierSplineAlg | ( | ) | [protected] |
default constructor
SplineAlg * BezierSplineAlg::copy | ( | ) | const [virtual] |
void BezierSplineAlg::setAutoTangents | ( | bool | pAutoTangents | ) |
set autotangents mode
pAutoTangents | autotangents mode |
void BezierSplineAlg::setSubdivisionCount | ( | unsigned int | p_subdivisionCount | ) | [virtual] |
set subdivision count
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
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] |
void BezierSplineAlg::createAutoTangentSpline | ( | QVector< math::Vector< real > > & | p_controlPoints, | |
QVector< math::Vector< real > > & | p_splinePoints, | |||
bool | b_closed = false | |||
) | [protected] |
create spline
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
p_controlPoints | control points | |
p_splinePoints | resulting spline points | |
b_closed | whether spline should be closed or not |
bool iso::geom::BezierSplineAlg::mAutoTangents [protected] |
whether tangent are automatically calculated or not