|
Developer Documentation
|
#include <Type-BSpline/ObjectTypes/Knotvector/KnotvectorT.hh>
Public Types | |
| enum | KnotvectorType { UNIFORM_INTERPOL = 0 , UNIFORM = 1 } |
Public Member Functions | |
| KnotvectorT () | |
| Constructor. | |
| KnotvectorT (const KnotvectorT &_knotvec) | |
| Copy Constructor. | |
| KnotvectorT & | operator= (const KnotvectorT &)=default |
| Use the default = operator. | |
| ~KnotvectorT () | |
| Destructor. | |
| void | setType (KnotvectorType _type) |
| void | createKnots (unsigned int _splineDeg, unsigned int _dim) |
| std::vector< Scalar > & | getKnotvector () |
| const std::vector< Scalar > & | getKnotvector () const |
| unsigned int | size () const |
| Scalar | getKnot (unsigned int _index) const |
| void | setKnotvector (const std::vector< Scalar > &_knots) |
| void | resize (unsigned int _size) |
| void | insertKnot (unsigned int _index, const Scalar _knot) |
| void | addKnot (Scalar _knot) |
| void | setKnot (unsigned int _index, Scalar _knot) |
| void | deleteKnot (unsigned int _index) |
| Scalar & | operator() (unsigned int _index) |
| returns a reference to the _index'th knot | |
| const Scalar & | operator() (unsigned int _index) const |
| returns a const reference to the _index'th knot | |
| void | clear () |
| void | request_selections () |
| void | release_selections () |
| bool | selections_available () const |
| unsigned char & | selection (unsigned int _i) |
| const unsigned char & | selection (unsigned int _i) const |
| void | select (unsigned int _pIdx) |
| void | deselect (unsigned int _pIdx) |
| bool | selected (unsigned int _pIdx) const |
Private Member Functions | |
| template<class PropT > | |
| void | request_prop (unsigned int &_ref_count, PropT &_prop) |
| template<class PropT > | |
| void | release_prop (unsigned int &_ref_count, PropT &_prop) |
| void | createUniformInterpolatingKnots (unsigned int _splineDeg, unsigned int _dim) |
| void | createUniformKnots (unsigned int _splineDeg, unsigned int _dim) |
Private Attributes | |
| std::vector< unsigned char > | selections_ |
| unsigned int | ref_count_selections_ |
| std::vector< Scalar > | knots_ |
| KnotvectorType | knotvectorType_ |
| unsigned int | num_control_points_ |
| unsigned int | spline_degree_ |
A knotvector class for use with splines
Definition at line 78 of file KnotvectorT.hh.
| enum ACG::KnotvectorT::KnotvectorType |
Definition at line 82 of file KnotvectorT.hh.
| ACG::KnotvectorT< Scalar >::KnotvectorT | ( | ) |
Constructor.
Definition at line 60 of file KnotvectorT_impl.hh.
| ACG::KnotvectorT< Scalar >::KnotvectorT | ( | const KnotvectorT< Scalar > & | _knotvec | ) |
Copy Constructor.
Definition at line 69 of file KnotvectorT_impl.hh.
| ACG::KnotvectorT< Scalar >::~KnotvectorT | ( | ) |
Destructor.
Definition at line 84 of file KnotvectorT_impl.hh.
| void ACG::KnotvectorT< Scalar >::addKnot | ( | Scalar | _knot | ) |
Definition at line 122 of file KnotvectorT_impl.hh.
|
inline |
Definition at line 147 of file KnotvectorT.hh.
| void ACG::KnotvectorT< Scalar >::createKnots | ( | unsigned int | _splineDeg, |
| unsigned int | _dim | ||
| ) |
Definition at line 106 of file KnotvectorT_impl.hh.
|
private |
Definition at line 181 of file KnotvectorT_impl.hh.
|
private |
Definition at line 213 of file KnotvectorT_impl.hh.
| void ACG::KnotvectorT< Scalar >::deleteKnot | ( | unsigned int | _index | ) |
Definition at line 151 of file KnotvectorT_impl.hh.
|
inline |
Definition at line 176 of file KnotvectorT.hh.
|
inline |
Definition at line 108 of file KnotvectorT.hh.
|
inline |
Definition at line 103 of file KnotvectorT.hh.
|
inline |
Definition at line 104 of file KnotvectorT.hh.
| void ACG::KnotvectorT< Scalar >::insertKnot | ( | unsigned int | _index, |
| const Scalar | _knot | ||
| ) |
Definition at line 136 of file KnotvectorT_impl.hh.
|
inline |
returns a reference to the _index'th knot
| _index | The knot index |
Definition at line 133 of file KnotvectorT.hh.
|
inline |
returns a const reference to the _index'th knot
| _index | The knot index |
Definition at line 142 of file KnotvectorT.hh.
|
private |
Definition at line 258 of file KnotvectorT_impl.hh.
|
inline |
Definition at line 157 of file KnotvectorT.hh.
|
private |
Definition at line 241 of file KnotvectorT_impl.hh.
|
inline |
Definition at line 154 of file KnotvectorT.hh.
|
inline |
Definition at line 115 of file KnotvectorT.hh.
|
inline |
Definition at line 175 of file KnotvectorT.hh.
|
inline |
Definition at line 178 of file KnotvectorT.hh.
|
inline |
Definition at line 163 of file KnotvectorT.hh.
|
inline |
Definition at line 168 of file KnotvectorT.hh.
|
inline |
Definition at line 160 of file KnotvectorT.hh.
|
inline |
Definition at line 121 of file KnotvectorT.hh.
| void ACG::KnotvectorT< Scalar >::setKnotvector | ( | const std::vector< Scalar > & | _knots | ) |
Definition at line 165 of file KnotvectorT_impl.hh.
| void ACG::KnotvectorT< Scalar >::setType | ( | KnotvectorType | _type | ) |
Definition at line 93 of file KnotvectorT_impl.hh.
|
inline |
Definition at line 106 of file KnotvectorT.hh.
|
private |
Definition at line 199 of file KnotvectorT.hh.
|
private |
Definition at line 201 of file KnotvectorT.hh.
|
private |
Definition at line 207 of file KnotvectorT.hh.
|
private |
Definition at line 195 of file KnotvectorT.hh.
|
private |
Definition at line 192 of file KnotvectorT.hh.
|
private |
Definition at line 208 of file KnotvectorT.hh.