#include <basisfunction.h>
Public Member Functions | |
| BasisFunction () | |
| Constructor. | |
| BasisFunction (const BasisFunction &basis_function) | |
| Copy constructor. | |
| ~BasisFunction () | |
| Destructor. | |
| BasisFunction | operator= (const BasisFunction &basis_function) |
| Assignment operator: copy of the basis function basis_function. | |
| void | setKnots (const std::vector< Float > &knots) |
| Sets the knot vector. | |
| void | setDegree (const UnsignedInt °ree) |
| Sets the degree of the basis function. | |
| const std::vector< Float > & | getKnots () const |
| Returns the knot vector. | |
| const UnsignedInt & | getDegree () const |
| Returns the degree of the basis function. | |
| Float | evaluate (const Float ¶meter, const UnsignedInt &index) const |
| Evaluates the basis function. | |
| Float | derive (const Float ¶meter, const UnsignedInt &index) const |
| Returns the derivative of the basis function. | |
Protected Member Functions | |
| Polynomius | evaluatePolynomius (const Float ¶meter, const UnsignedInt &index) const |
| Returns the basis function evaluation as polynomial representation. | |
| Polynomius | evaluatePolynomius (const Float ¶meter, const UnsignedInt &index, const UnsignedInt °ree) const |
| Returns the basis function evaluation as polynomial representation. | |
Protected Attributes | |
| Cache< BasisFunction::Key, Polynomius, BasisFunction > | _cache |
| std::vector< Float > | _knots |
| UnsignedInt | _degree |
Friends | |
| class | Cache< Key, Polynomius, BasisFunction > |
Classes | |
| class | Key |
| This class is for BasisFunction class private use only. More... | |
This class represents the usual basis function definition for NURBS evaluation.
| nmn::BasisFunction::BasisFunction | ( | ) |
Constructor.
Sets an empty knot vector and sets degree to 0.
| nmn::BasisFunction::BasisFunction | ( | const BasisFunction & | basis_function | ) |
Copy constructor.
| basis_function | basis function to be copied. |
| nmn::BasisFunction::~BasisFunction | ( | ) |
Destructor.
| Float nmn::BasisFunction::derive | ( | const Float & | parameter, | |
| const UnsignedInt & | index | |||
| ) | const |
Returns the derivative of the basis function.
| parameter | fixed parameter value for the basis function derivative evaluation. | |
| index | index value for the basis function derivative evaluation. |
| Float nmn::BasisFunction::evaluate | ( | const Float & | parameter, | |
| const UnsignedInt & | index | |||
| ) | const |
Evaluates the basis function.
| parameter | fixed parameter value for basis function evaluation. | |
| index | index value for basis function evaluation. |
| Polynomius nmn::BasisFunction::evaluatePolynomius | ( | const Float & | parameter, | |
| const UnsignedInt & | index, | |||
| const UnsignedInt & | degree | |||
| ) | const [protected] |
Returns the basis function evaluation as polynomial representation.
This recursive method is the core for basis function evaluation as polynomial representation. Private use.
| Polynomius nmn::BasisFunction::evaluatePolynomius | ( | const Float & | parameter, | |
| const UnsignedInt & | index | |||
| ) | const [protected] |
Returns the basis function evaluation as polynomial representation.
| parameter | fixed parameter value for the basis function evaluation. | |
| index | index value for the basis function evaluation. |
| const UnsignedInt & nmn::BasisFunction::getDegree | ( | ) | const |
Returns the degree of the basis function.
| const std::vector< Float > & nmn::BasisFunction::getKnots | ( | ) | const |
Returns the knot vector.
| BasisFunction nmn::BasisFunction::operator= | ( | const BasisFunction & | basis_function | ) |
Assignment operator: copy of the basis function basis_function.
| basis_function | basis function to copy. |
| void nmn::BasisFunction::setDegree | ( | const UnsignedInt & | degree | ) |
Sets the degree of the basis function.
| degree | degree of the basis function. |
| void nmn::BasisFunction::setKnots | ( | const std::vector< Float > & | knots | ) |
Sets the knot vector.
| knots | knot vector. |
friend class Cache< Key, Polynomius, BasisFunction > [friend] |
Cache< BasisFunction::Key, Polynomius, BasisFunction > nmn::BasisFunction::_cache [mutable, protected] |
UnsignedInt nmn::BasisFunction::_degree [protected] |
std::vector< Float > nmn::BasisFunction::_knots [protected] |
1.4.7