Inheritence diagram for xlifepp::Spline:
digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"2" [label="xlifepp::BSpline" tooltip="xlifepp::BSpline"]
"3" [label="xlifepp::BezierSpline" tooltip="xlifepp::BezierSpline"]
"4" [label="xlifepp::C2Spline" tooltip="xlifepp::C2Spline"]
"5" [label="xlifepp::CatmullRomSpline" tooltip="xlifepp::CatmullRomSpline"]
"6" [label="xlifepp::Nurbs" tooltip="xlifepp::Nurbs"]
"1" [label="xlifepp::Spline" tooltip="xlifepp::Spline" fillcolor="#BFBFBF"]
"2" -> "1" [dir=forward tooltip="public-inheritance"]
"3" -> "1" [dir=forward tooltip="public-inheritance"]
"4" -> "1" [dir=forward tooltip="public-inheritance"]
"5" -> "1" [dir=forward tooltip="public-inheritance"]
"6" -> "1" [dir=forward tooltip="public-inheritance"]
}
Collaboration diagram for xlifepp::Spline:
digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"24" [label="xlifepp::Collection< string_t >" tooltip="xlifepp::Collection< string_t >"]
"18" [label="xlifepp::Matrix< real_t >" tooltip="xlifepp::Matrix< real_t >"]
"21" [label="xlifepp::Vector< real_t >" tooltip="xlifepp::Vector< real_t >"]
"32" [label="xlifepp::Vector< xlifepp::Vector< real_t > >" tooltip="xlifepp::Vector< xlifepp::Vector< real_t > >"]
"41" [label="std::list< std::pair< number_t, real_t > >" tooltip="std::list< std::pair< number_t, real_t > >"]
"14" [label="std::map< number_t, std::vector< number_t > >" tooltip="std::map< number_t, std::vector< number_t > >"]
"12" [label="std::map< number_t, xlifepp::Geometry * >" tooltip="std::map< number_t, xlifepp::Geometry * >"]
"40" [label="std::map< string_t, number_t >" tooltip="std::map< string_t, number_t >"]
"4" [label="std::multimap< real_t, number_t >" tooltip="std::multimap< real_t, number_t >"]
"42" [label="std::list< T >" tooltip="std::list< T >"]
"13" [label="std::map< K, T >" tooltip="std::map< K, T >"]
"5" [label="std::multimap< K, T >" tooltip="std::multimap< K, T >"]
"3" [label="std::vector< T >" tooltip="std::vector< T >"]
"27" [label="std::vector< T >" tooltip="std::vector< T >"]
"20" [label="std::vector< K >" tooltip="std::vector< K >"]
"10" [label="std::vector< RealPair >" tooltip="std::vector< RealPair >"]
"23" [label="std::vector< const xlifepp::Transformation * >" tooltip="std::vector< const xlifepp::Transformation * >"]
"28" [label="std::vector< number_t >" tooltip="std::vector< number_t >"]
"6" [label="std::vector< real_t >" tooltip="std::vector< real_t >"]
"37" [label="std::vector< std::vector< GeoNumPair > >" tooltip="std::vector< std::vector< GeoNumPair > >"]
"15" [label="std::vector< std::vector< int_t > >" tooltip="std::vector< std::vector< int_t > >"]
"25" [label="std::vector< string_t >" tooltip="std::vector< string_t >"]
"36" [label="std::vector< xlifepp::GeomDomain * >" tooltip="std::vector< xlifepp::GeomDomain * >"]
"35" [label="std::vector< xlifepp::GeomElement * >" tooltip="std::vector< xlifepp::GeomElement * >"]
"39" [label="std::vector< xlifepp::Parameter * >" tooltip="std::vector< xlifepp::Parameter * >"]
"2" [label="std::vector< xlifepp::Point >" tooltip="std::vector< xlifepp::Point >"]
"29" [label="std::vector< xlifepp::Transformation * >" tooltip="std::vector< xlifepp::Transformation * >"]
"33" [label="std::vector< xlifepp::Vector< real_t > >" tooltip="std::vector< xlifepp::Vector< real_t > >"]
"9" [label="xlifepp::BoundingBox" tooltip="xlifepp::BoundingBox"]
"26" [label="xlifepp::Collection< T >" tooltip="xlifepp::Collection< T >"]
"16" [label="xlifepp::ExtrusionData" tooltip="xlifepp::ExtrusionData"]
"31" [label="xlifepp::GeoNode" tooltip="xlifepp::GeoNode"]
"8" [label="xlifepp::Geometry" tooltip="xlifepp::Geometry"]
"19" [label="xlifepp::Matrix< K >" tooltip="xlifepp::Matrix< K >"]
"34" [label="xlifepp::Mesh" tooltip="xlifepp::Mesh"]
"11" [label="xlifepp::MinimalBox" tooltip="xlifepp::MinimalBox"]
"38" [label="xlifepp::Parameters" tooltip="xlifepp::Parameters"]
"7" [label="xlifepp::Parametrization" tooltip="xlifepp::Parametrization"]
"30" [label="xlifepp::Point" tooltip="xlifepp::Point"]
"1" [label="xlifepp::Spline" tooltip="xlifepp::Spline" fillcolor="#BFBFBF"]
"17" [label="xlifepp::Transformation" tooltip="xlifepp::Transformation"]
"22" [label="xlifepp::Vector< K >" tooltip="xlifepp::Vector< K >"]
"24" -> "25" [dir=forward tooltip="public-inheritance"]
"24" -> "26" [dir=forward tooltip="template-instance"]
"18" -> "6" [dir=forward tooltip="public-inheritance"]
"18" -> "19" [dir=forward tooltip="template-instance"]
"21" -> "6" [dir=forward tooltip="public-inheritance"]
"21" -> "22" [dir=forward tooltip="template-instance"]
"32" -> "33" [dir=forward tooltip="public-inheritance"]
"32" -> "22" [dir=forward tooltip="template-instance"]
"41" -> "42" [dir=forward tooltip="template-instance"]
"14" -> "13" [dir=forward tooltip="template-instance"]
"12" -> "13" [dir=forward tooltip="template-instance"]
"40" -> "13" [dir=forward tooltip="template-instance"]
"4" -> "5" [dir=forward tooltip="template-instance"]
"20" -> "3" [dir=forward tooltip="template-instance"]
"10" -> "3" [dir=forward tooltip="template-instance"]
"23" -> "3" [dir=forward tooltip="template-instance"]
"28" -> "3" [dir=forward tooltip="template-instance"]
"6" -> "3" [dir=forward tooltip="template-instance"]
"37" -> "3" [dir=forward tooltip="template-instance"]
"15" -> "3" [dir=forward tooltip="template-instance"]
"25" -> "3" [dir=forward tooltip="template-instance"]
"36" -> "3" [dir=forward tooltip="template-instance"]
"35" -> "3" [dir=forward tooltip="template-instance"]
"39" -> "3" [dir=forward tooltip="template-instance"]
"2" -> "3" [dir=forward tooltip="template-instance"]
"29" -> "3" [dir=forward tooltip="template-instance"]
"33" -> "3" [dir=forward tooltip="template-instance"]
"9" -> "10" [dir=forward tooltip="usage"]
"26" -> "27" [dir=forward tooltip="public-inheritance"]
"16" -> "17" [dir=forward tooltip="usage"]
"16" -> "24" [dir=forward tooltip="usage"]
"16" -> "28" [dir=forward tooltip="usage"]
"16" -> "6" [dir=forward tooltip="usage"]
"16" -> "21" [dir=forward tooltip="usage"]
"16" -> "29" [dir=forward tooltip="usage"]
"16" -> "30" [dir=forward tooltip="usage"]
"31" -> "31" [dir=forward tooltip="usage"]
"31" -> "8" [dir=forward tooltip="usage"]
"8" -> "9" [dir=forward tooltip="usage"]
"8" -> "11" [dir=forward tooltip="usage"]
"8" -> "12" [dir=forward tooltip="usage"]
"8" -> "14" [dir=forward tooltip="usage"]
"8" -> "15" [dir=forward tooltip="usage"]
"8" -> "16" [dir=forward tooltip="usage"]
"8" -> "7" [dir=forward tooltip="usage"]
"8" -> "8" [dir=forward tooltip="usage"]
"8" -> "31" [dir=forward tooltip="usage"]
"19" -> "20" [dir=forward tooltip="public-inheritance"]
"34" -> "8" [dir=forward tooltip="usage"]
"34" -> "2" [dir=forward tooltip="usage"]
"34" -> "35" [dir=forward tooltip="usage"]
"34" -> "36" [dir=forward tooltip="usage"]
"34" -> "28" [dir=forward tooltip="usage"]
"34" -> "37" [dir=forward tooltip="usage"]
"34" -> "34" [dir=forward tooltip="usage"]
"11" -> "2" [dir=forward tooltip="usage"]
"38" -> "39" [dir=forward tooltip="usage"]
"38" -> "40" [dir=forward tooltip="usage"]
"7" -> "8" [dir=forward tooltip="usage"]
"7" -> "21" [dir=forward tooltip="usage"]
"7" -> "32" [dir=forward tooltip="usage"]
"7" -> "34" [dir=forward tooltip="usage"]
"7" -> "38" [dir=forward tooltip="usage"]
"7" -> "41" [dir=forward tooltip="usage"]
"30" -> "6" [dir=forward tooltip="public-inheritance"]
"1" -> "2" [dir=forward tooltip="usage"]
"1" -> "4" [dir=forward tooltip="usage"]
"1" -> "6" [dir=forward tooltip="usage"]
"1" -> "7" [dir=forward tooltip="usage"]
"17" -> "18" [dir=forward tooltip="usage"]
"17" -> "21" [dir=forward tooltip="usage"]
"17" -> "23" [dir=forward tooltip="usage"]
"22" -> "20" [dir=forward tooltip="public-inheritance"]
}
abstract Spline class type_, subtype_: C2Spline ,_CatmullRomSpline, _BSpline, BezierSpline , Nurbs and _SplineInterpolation, _SplineApproximation degree : degree of polynoms used by spline (called spline degree) controlPoints, knots: internal arrays common to any splines but handling different stuff splinePar_: type of spline parametrization (change the derivatives but not the tangent) yps_, ype_: tangent vector at end points (required by some boundary conditions) (1D) bces_, bce_: boundary condition at start point and end point parameterBounds_: real bounds (a,b) of spline parametrization: parametrization are always set on [0,1] but the spline parametrization functions does the mapping s = a + (b-a)t
Subclassed by xlifepp::BSpline , xlifepp::BezierSpline , xlifepp::C2Spline , xlifepp::CatmullRomSpline , xlifepp::Nurbs
Public Functions
Spline ( const Spline & )
copy constructor
copy constructor (deep copy)
virtual std :: vector < Point > boundNodes ( ) const
return bound nodes
inline virtual C2Spline * c2Spline ( )
downcast to child
void checkBC ( SplineBC defBC )
boundary conditions of spline
check boundary condition bcs_, bcse with the following rules bcs_= undef -> bcs_=defBC bcs_!= undef & bce_= undef -> bce_=bcs_ bcs_= periodic | bce_= periodic -> bce_=bcs_=periodic
virtual Spline * clone ( ) const = 0
virtual copy like constructor
virtual Vector < Point > evaluate ( const std :: vector < real_t > & ts , DiffOpType d = _id ) const
evaluate spline or its derivative at a list of x
inline virtual Point evaluate ( real_t t , DiffOpType d = _id ) const
< evaluate spline or its derivative at x
virtual std :: multimap < real_t , number_t > :: const_iterator locate ( real_t t ) const
locate parameter interval
virtual RealPair parameterBounds ( ) const
return parameter bounds
return parameter bounds same as knot bounds!
virtual void print ( std :: ostream & , bool nocpt = false ) const
print utility
Public Members
Parametrization * parametrization_
pointer to parametrization if not 0