Cortex  10.0.0-a4
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
IECore::CubicBasis< T > Class Template Reference

#include <CubicBasis.h>

Public Types

typedef T BaseType
 
typedef Imath::Matrix44< T > MatrixType
 

Public Member Functions

 CubicBasis (const MatrixType &m, unsigned s)
 
template<class S >
void coefficients (S t, S &c0, S &c1, S &c2, S &c3) const
 
template<class S >
void coefficients (S t, S c[4]) const
 
int numCoefficients () const
 
template<class S >
operator() (S t, S p0, S p1, S p2, S p3) const
 
template<class S >
operator() (S t, const S p[4]) const
 
template<class S >
operator() (typename S::BaseType t, const S &p0, const S &p1, const S &p2, const S &p3) const
 
template<class S >
operator() (typename S::BaseType t, const S p[4]) const
 
bool operator== (const CubicBasis &rhs) const
 
bool operator!= (const CubicBasis &rhs) const
 
Derivatives

Methods for computing the first derivatives with respect to 't', which for a curve is also its tangent at 't'.

template<class S >
void derivativeCoefficients (S t, S &c0, S &c1, S &c2, S &c3) const
 
template<class S >
void derivativeCoefficients (S t, S c[4]) const
 
template<class S >
derivative (S t, S p0, S p1, S p2, S p3) const
 
template<class S >
derivative (S t, const S p[4]) const
 
template<class S >
derivative (typename S::BaseType t, const S &p0, const S &p1, const S &p2, const S &p3) const
 
template<class S >
derivative (typename S::BaseType t, const S p[4]) const
 
Integrals

Methods for computing integrals

template<class S >
void integralCoefficients (S t0, S t1, S &c0, S &c1, S &c2, S &c3) const
 
template<class S >
void integralCoefficients (S t0, S t1, S c[4]) const
 
template<class S >
integral (S t0, S t1, S p0, S p1, S p2, S p3) const
 
template<class S >
integral (S t0, S t1, const S p[4]) const
 
template<class S >
integral (typename S::BaseType t0, typename S::BaseType t1, const S &p0, const S &p1, const S &p2, const S &p3) const
 
template<class S >
integral (typename S::BaseType t0, typename S::BaseType t1, const S p[4]) const
 
Critical points

Methods for computing the critical points with respect to 't', which for a curve are points where it may change direction

template<class S >
bool criticalPoints (const S p[4], S &p0, S &p1) const
 

Static Public Member Functions

static const CubicBasislinear ()
 
static const CubicBasisbezier ()
 
static const CubicBasisbSpline ()
 
static const CubicBasiscatmullRom ()
 

Public Attributes

MatrixType matrix
 
unsigned step
 

Detailed Description

template<typename T>
class IECore::CubicBasis< T >

Provides a basis matrix class for use in constructing cubic curves.


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