doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
idCurve_Spline< type > Class Template Reference

#include <Curve.h>

Inheritance diagram for idCurve_Spline< type >:
idCurve< type > idCurve_BSpline< type > idCurve_CatmullRomSpline< type > idCurve_KochanekBartelsSpline< type > idCurve_NaturalCubicSpline< type > idCurve_NonUniformBSpline< type > idCurve_UniformCubicBSpline< type > idCurve_NURBS< type >

Public Types

enum  boundary_t { BT_FREE, BT_CLAMPED, BT_CLOSED }
 

Public Member Functions

 idCurve_Spline (void)
 
virtual bool IsDone (const float time) const
 
virtual void SetBoundaryType (const boundary_t bt)
 
virtual boundary_t GetBoundaryType (void) const
 
virtual void SetCloseTime (const float t)
 
virtual float GetCloseTime (void)
 
- Public Member Functions inherited from idCurve< type >
 idCurve (void)
 
virtual ~idCurve (void)
 
virtual int AddValue (const float time, const type &value)
 
virtual void RemoveIndex (const int index)
 
virtual void Clear (void)
 
virtual type GetCurrentValue (const float time) const
 
virtual type GetCurrentFirstDerivative (const float time) const
 
virtual type GetCurrentSecondDerivative (const float time) const
 
int GetNumValues (void) const
 
void SetValue (const int index, const type &value)
 
type GetValue (const int index) const
 
typeGetValueAddress (const int index)
 
float GetTime (const int index) const
 
float GetLengthForTime (const float time) const
 
float GetTimeForLength (const float length, const float epsilon=0.1f) const
 
float GetLengthBetweenKnots (const int i0, const int i1) const
 
void MakeUniform (const float totalTime)
 
void SetConstantSpeed (const float totalTime)
 
void ShiftTime (const float deltaTime)
 
void Translate (const type &translation)
 

Protected Member Functions

type ValueForIndex (const int index) const
 
float TimeForIndex (const int index) const
 
float ClampedTime (const float t) const
 
- Protected Member Functions inherited from idCurve< type >
int IndexForTime (const float time) const
 
float TimeForIndex (const int index) const
 
type ValueForIndex (const int index) const
 
float GetSpeed (const float time) const
 
float RombergIntegral (const float t0, const float t1, const int order) const
 

Protected Attributes

boundary_t boundaryType
 
float closeTime
 
- Protected Attributes inherited from idCurve< type >
idList< floattimes
 
idList< typevalues
 
int currentIndex
 
bool changed
 

Detailed Description

template<class type>
class idCurve_Spline< type >

Definition at line 930 of file Curve.h.

Member Enumeration Documentation

template<class type>
enum idCurve_Spline::boundary_t
Enumerator
BT_FREE 
BT_CLAMPED 
BT_CLOSED 

Definition at line 933 of file Curve.h.

Constructor & Destructor Documentation

template<class type >
ID_INLINE idCurve_Spline< type >::idCurve_Spline ( void  )

Definition at line 960 of file Curve.h.

Member Function Documentation

template<class type >
ID_INLINE float idCurve_Spline< type >::ClampedTime ( const float  t) const
protected

Definition at line 1033 of file Curve.h.

template<class type>
virtual boundary_t idCurve_Spline< type >::GetBoundaryType ( void  ) const
inlinevirtual

Definition at line 940 of file Curve.h.

template<class type>
virtual float idCurve_Spline< type >::GetCloseTime ( void  )
inlinevirtual

Definition at line 943 of file Curve.h.

template<class type >
ID_INLINE bool idCurve_Spline< type >::IsDone ( const float  time) const
virtual

Reimplemented from idCurve< type >.

Definition at line 1051 of file Curve.h.

template<class type>
virtual void idCurve_Spline< type >::SetBoundaryType ( const boundary_t  bt)
inlinevirtual

Definition at line 939 of file Curve.h.

template<class type>
virtual void idCurve_Spline< type >::SetCloseTime ( const float  t)
inlinevirtual

Definition at line 942 of file Curve.h.

template<class type >
ID_INLINE float idCurve_Spline< type >::TimeForIndex ( const int  index) const
protected

Definition at line 1003 of file Curve.h.

template<class type >
ID_INLINE type idCurve_Spline< type >::ValueForIndex ( const int  index) const
protected

Definition at line 973 of file Curve.h.

Member Data Documentation

template<class type>
boundary_t idCurve_Spline< type >::boundaryType
protected

Definition at line 946 of file Curve.h.

template<class type>
float idCurve_Spline< type >::closeTime
protected

Definition at line 947 of file Curve.h.


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