#include <Overhauser.h>
Public Member Functions | |
Spline () | |
Spline (const Spline &s) | |
~Spline () | |
virtual BPType | Eq (DataType t, const BPType &p1, const BPType &p2, const BPType &p3, const BPType &p4) |
Solve the Catmull-Rom parametric equation for a given time(t) and vector quadruple (p1,p2,p3,p4). | |
virtual PType | Eq (DataType t, const PType &p1, const PType &p2, const PType &p3, const PType &p4) |
virtual void | AddSplineNode (const PType &v) |
virtual PType | GetInterpolatedSplineNode (DataType t) |
Return the Overhauser interpolated spline point on the interpolation interval determined from the number of nodes along initial curve. | |
virtual PType | GetInterpolatedSplineNode_dist (DataType t) |
Return the Overhauser interpolated spline point on the interpolation interval determined from relative distance, t, along initial curve. | |
virtual BPType | linear (DataType t, const BPType &p1, const BPType &p2) |
Solve the Catmull-Rom parametric equation for a given time(t) and vector quadruple (p1,p2,p3,p4). | |
virtual PType | linear (DataType t, const PType &p1, const PType &p2) |
virtual PType | GetInterpolatedSplineNode_distLinear (DataType t) |
Return the linearly interpolated spline point on the interpolation interval determined from relative distance, t, along initial curve. | |
virtual int | GetNumSplineNodes () |
virtual PType | GetNthSplineNode (int n) |
virtual void | Restart (std::ifstream &ifs, int &pos, double &t, double &dt) |
virtual void | Checkpointing (std::ofstream &ofs) |
Public Attributes | |
std::vector< PType > | nodes |
std::vector< DataType > | slength |
DataType | delta_t |
DataType | delta_s |
DataType | length |
BPType | ltemp |
int | num_nodes |
int | num_slength |
Static method for computing the Catmull-Rom parametric equation given a time (t) and a vector quadruple (p1,p2,p3,p4). static BPType Eq(DataType t, const BPType& p1, const BPType& p2, const BPType& p3, const BPType& p4);
virtual void Spline< DataType, dim >::Checkpointing | ( | std::ofstream & | ofs | ) | [inline, virtual] |
Reimplemented in SplineCurve< DataType, dim >.
References Spline< DataType, dim >::delta_s, Spline< DataType, dim >::delta_t, Spline< DataType, dim >::ltemp, Spline< DataType, dim >::nodes, Spline< DataType, dim >::num_nodes, Spline< DataType, dim >::num_slength, and Spline< DataType, dim >::slength.
Referenced by SplineCurve< DataType, dim >::Checkpointing().
virtual PType Spline< DataType, dim >::Eq | ( | DataType | t, | |
const PType & | p1, | |||
const PType & | p2, | |||
const PType & | p3, | |||
const PType & | p4 | |||
) | [inline, virtual] |
References Spline< DataType, dim >::Eq(), toBoost3(), and toCPT3().
virtual BPType Spline< DataType, dim >::Eq | ( | DataType | t, | |
const BPType & | p1, | |||
const BPType & | p2, | |||
const BPType & | p3, | |||
const BPType & | p4 | |||
) | [inline, virtual] |
Solve the Catmull-Rom parametric equation for a given time(t) and vector quadruple (p1,p2,p3,p4).
Referenced by Spline< DataType, dim >::Eq(), Spline< DataType, dim >::GetInterpolatedSplineNode(), and Spline< DataType, dim >::GetInterpolatedSplineNode_dist().
virtual PType Spline< DataType, dim >::GetInterpolatedSplineNode | ( | DataType | t | ) | [inline, virtual] |
Return the Overhauser interpolated spline point on the interpolation interval determined from the number of nodes along initial curve.
References BOUNDS, Spline< DataType, dim >::delta_t, Spline< DataType, dim >::Eq(), Spline< DataType, dim >::nodes, and overbose.
virtual PType Spline< DataType, dim >::GetInterpolatedSplineNode_dist | ( | DataType | t | ) | [inline, virtual] |
Return the Overhauser interpolated spline point on the interpolation interval determined from relative distance, t, along initial curve.
References BOUNDS, Spline< DataType, dim >::delta_t, Spline< DataType, dim >::Eq(), Spline< DataType, dim >::length, Spline< DataType, dim >::nodes, overbose, and Spline< DataType, dim >::slength.
Referenced by SplineCurve< DataType, dim >::interpolate().
virtual PType Spline< DataType, dim >::GetInterpolatedSplineNode_distLinear | ( | DataType | t | ) | [inline, virtual] |
Return the linearly interpolated spline point on the interpolation interval determined from relative distance, t, along initial curve.
References BOUNDS, Spline< DataType, dim >::delta_t, Spline< DataType, dim >::length, Spline< DataType, dim >::linear(), Spline< DataType, dim >::nodes, overbose, and Spline< DataType, dim >::slength.
Referenced by SplineCurve< DataType, dim >::interpolate_linear().
virtual PType Spline< DataType, dim >::GetNthSplineNode | ( | int | n | ) | [inline, virtual] |
References Spline< DataType, dim >::nodes.
Referenced by SplineCurve< DataType, dim >::interpolate(), and SplineCurve< DataType, dim >::interpolate_linear().
virtual int Spline< DataType, dim >::GetNumSplineNodes | ( | ) | [inline, virtual] |
References Spline< DataType, dim >::nodes.
virtual PType Spline< DataType, dim >::linear | ( | DataType | t, | |
const PType & | p1, | |||
const PType & | p2 | |||
) | [inline, virtual] |
References Spline< DataType, dim >::linear(), toBoost3(), and toCPT3().
virtual BPType Spline< DataType, dim >::linear | ( | DataType | t, | |
const BPType & | p1, | |||
const BPType & | p2 | |||
) | [inline, virtual] |
Solve the Catmull-Rom parametric equation for a given time(t) and vector quadruple (p1,p2,p3,p4).
References normalize().
Referenced by Spline< DataType, dim >::GetInterpolatedSplineNode_distLinear(), and Spline< DataType, dim >::linear().
virtual void Spline< DataType, dim >::Restart | ( | std::ifstream & | ifs, | |
int & | pos, | |||
double & | t, | |||
double & | dt | |||
) | [inline, virtual] |
Reimplemented in SplineCurve< DataType, dim >.
References Spline< DataType, dim >::delta_s, Spline< DataType, dim >::delta_t, Spline< DataType, dim >::ltemp, Spline< DataType, dim >::nodes, Spline< DataType, dim >::num_nodes, Spline< DataType, dim >::num_slength, and Spline< DataType, dim >::slength.
Referenced by SplineCurve< DataType, dim >::Restart().
Referenced by Spline< DataType, dim >::AddSplineNode(), Spline< DataType, dim >::Checkpointing(), Spline< DataType, dim >::GetInterpolatedSplineNode(), Spline< DataType, dim >::GetInterpolatedSplineNode_dist(), Spline< DataType, dim >::GetInterpolatedSplineNode_distLinear(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), Spline< DataType, dim >::Restart(), and Spline< DataType, dim >::Spline().
Referenced by Spline< DataType, dim >::AddSplineNode(), Spline< DataType, dim >::GetInterpolatedSplineNode_dist(), Spline< DataType, dim >::GetInterpolatedSplineNode_distLinear(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), and Spline< DataType, dim >::Spline().
Referenced by Spline< DataType, dim >::AddSplineNode(), Spline< DataType, dim >::Checkpointing(), Spline< DataType, dim >::GetInterpolatedSplineNode(), Spline< DataType, dim >::GetInterpolatedSplineNode_dist(), Spline< DataType, dim >::GetInterpolatedSplineNode_distLinear(), SplineCurve< DataType, dim >::GetNodes(), Spline< DataType, dim >::GetNthSplineNode(), Spline< DataType, dim >::GetNumSplineNodes(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), Spline< DataType, dim >::Restart(), and Spline< DataType, dim >::Spline().
Referenced by Spline< DataType, dim >::Checkpointing(), and Spline< DataType, dim >::Restart().
int Spline< DataType, dim >::num_slength |
Referenced by Spline< DataType, dim >::Checkpointing(), and Spline< DataType, dim >::Restart().
Referenced by Spline< DataType, dim >::AddSplineNode(), Spline< DataType, dim >::Checkpointing(), Spline< DataType, dim >::GetInterpolatedSplineNode_dist(), Spline< DataType, dim >::GetInterpolatedSplineNode_distLinear(), SplineCurve< DataType, dim >::interpolate(), SplineCurve< DataType, dim >::interpolate_linear(), Spline< DataType, dim >::Restart(), and Spline< DataType, dim >::Spline().