10 #ifndef EIGEN_SPLINES_FWD_H
11 #define EIGEN_SPLINES_FWD_H
17 template <
typename Scalar,
int Dim,
int Degree = Dynamic>
class Spline;
19 template <
typename SplineType,
int DerivativeOrder = Dynamic >
struct SplineTraits {};
25 template <
typename _Scalar,
int _Dim,
int _Degree>
26 struct SplineTraits<
Spline<_Scalar, _Dim, _Degree>, Dynamic >
29 enum { Dimension = _Dim };
30 enum { Degree = _Degree };
32 enum { OrderAtCompileTime = _Degree==Dynamic ? Dynamic : _Degree+1 };
33 enum { NumOfDerivativesAtCompileTime = OrderAtCompileTime };
39 typedef Array<Scalar,Dynamic,Dynamic,RowMajor,NumOfDerivativesAtCompileTime,OrderAtCompileTime>
BasisDerivativeType;
42 typedef Array<Scalar,Dimension,Dynamic,ColMajor,Dimension,NumOfDerivativesAtCompileTime>
DerivativeType;
60 template <
typename _Scalar,
int _Dim,
int _Degree,
int _DerivativeOrder >
61 struct SplineTraits<
Spline<_Scalar, _Dim, _Degree>, _DerivativeOrder > :
public SplineTraits< Spline<_Scalar, _Dim, _Degree> >
63 enum { OrderAtCompileTime = _Degree==Dynamic ? Dynamic : _Degree+1 };
64 enum { NumOfDerivativesAtCompileTime = _DerivativeOrder==Dynamic ? Dynamic : _DerivativeOrder+1 };
67 typedef Array<_Scalar,Dynamic,Dynamic,RowMajor,NumOfDerivativesAtCompileTime,OrderAtCompileTime>
BasisDerivativeType;
70 typedef Array<_Scalar,_Dim,Dynamic,ColMajor,_Dim,NumOfDerivativesAtCompileTime>
DerivativeType;
86 #endif // EIGEN_SPLINES_FWD_H
A class representing multi-dimensional spline curves.
Definition: Spline.h:35
Array< Scalar, Dimension, 1 > PointType
The point type the spline is representing.
Definition: SplineFwd.h:45
Array< _Scalar, _Dim, Dynamic, ColMajor, _Dim, NumOfDerivativesAtCompileTime > DerivativeType
The data type used to store the spline's derivative values.
Definition: SplineFwd.h:70
Array< Scalar, 1, Dynamic > KnotVectorType
The data type used to store knot vectors.
Definition: SplineFwd.h:48
Spline< double, 3 > Spline3d
3D double B-spline with dynamic degree.
Definition: SplineFwd.h:83
Array< Scalar, Dynamic, Dynamic, RowMajor, NumOfDerivativesAtCompileTime, OrderAtCompileTime > BasisDerivativeType
The data type used to store the values of the basis function derivatives.
Definition: SplineFwd.h:39
Array< _Scalar, Dynamic, Dynamic, RowMajor, NumOfDerivativesAtCompileTime, OrderAtCompileTime > BasisDerivativeType
The data type used to store the values of the basis function derivatives.
Definition: SplineFwd.h:67
Spline< float, 3 > Spline3f
3D float B-spline with dynamic degree.
Definition: SplineFwd.h:77
Spline< float, 2 > Spline2f
2D float B-spline with dynamic degree.
Definition: SplineFwd.h:74
Array< Scalar, Dimension, Dynamic > ControlPointVectorType
The data type representing the spline's control points.
Definition: SplineFwd.h:51
Spline< double, 2 > Spline2d
2D double B-spline with dynamic degree.
Definition: SplineFwd.h:80
Array< Scalar, 1, OrderAtCompileTime > BasisVectorType
The data type used to store non-zero basis functions.
Definition: SplineFwd.h:36
_Scalar Scalar
Definition: SplineFwd.h:28
Array< Scalar, Dimension, Dynamic, ColMajor, Dimension, NumOfDerivativesAtCompileTime > DerivativeType
The data type used to store the spline's derivative values.
Definition: SplineFwd.h:42