Spline< Derived > Class Template Reference

Base class for splines. More...

Inheritance diagram for Spline< Derived >:

Public Member Functions

 Spline (const pointField &knots, const scalar tol, const label nIter)
 Construct from components. More...
 
 Spline (const pointField &knots)
 Construct from knots with default iteration settings. More...
 
 Spline (const Spline &)=delete
 Disallow default bitwise copy construction. More...
 
label nSegments () const
 Return the number of segments. More...
 
const pointstart () const
 Return the start point. More...
 
const pointend () const
 Return the end point. More...
 
point position (const scalar lambda) const
 Return the point position corresponding to the curve parameter. More...
 
tmp< pointFieldposition (const scalarList &lambdas) const
 Return the point positions corresponding to the curve parameters. More...
 
void operator= (const Spline &)=delete
 Disallow default bitwise assignment. More...
 

Protected Member Functions

const pointFieldknots () const
 Access the end points and control points. More...
 

Detailed Description

template<class Derived>
class Foam::Spline< Derived >

Base class for splines.

Source files

Definition at line 50 of file Spline.H.

Constructor & Destructor Documentation

◆ Spline() [1/3]

Spline ( const pointField knots,
const scalar  tol,
const label  nIter 
)

Construct from components.

Definition at line 31 of file Spline.C.

◆ Spline() [2/3]

Spline ( const pointField knots)

Construct from knots with default iteration settings.

Definition at line 45 of file Spline.C.

◆ Spline() [3/3]

Spline ( const Spline< Derived > &  )
delete

Disallow default bitwise copy construction.

Member Function Documentation

◆ knots()

const Foam::pointField & knots
inlineprotected

Access the end points and control points.

Definition at line 31 of file SplineI.H.

◆ nSegments()

Foam::label nSegments
inline

Return the number of segments.

Definition at line 40 of file SplineI.H.

◆ start()

const Foam::point & start
inline

Return the start point.

Definition at line 47 of file SplineI.H.

◆ end()

const Foam::point & end
inline

Return the end point.

Definition at line 54 of file SplineI.H.

◆ position() [1/2]

Foam::point position ( const scalar  lambda) const

Return the point position corresponding to the curve parameter.

Definition at line 56 of file Spline.C.

References lambda().

Here is the call graph for this function:

◆ position() [2/2]

Foam::tmp< Foam::pointField > position ( const scalarList lambdas) const

Return the point positions corresponding to the curve parameters.

Definition at line 106 of file Spline.C.

References UList< T >::first(), forAll, UList< T >::last(), Foam::mag(), Foam::max(), Foam::min(), n, points, tmp< T >::ref(), List< T >::size(), Foam::Swap(), and x.

Here is the call graph for this function:

◆ operator=()

void operator= ( const Spline< Derived > &  )
delete

Disallow default bitwise assignment.


The documentation for this class was generated from the following files: