Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
PrimitiveAnimationChannelClass< T > Class Template Referenceabstract

#include <prim_anim.h>

Inherited by LERPAnimationChannelClass< Vector3 >, LERPAnimationChannelClass< float >, LERPAnimationChannelClass< Vector2 >, and LERPAnimationChannelClass< T >.

Classes

class  KeyClass
 

Public Member Functions

 PrimitiveAnimationChannelClass (void)
 
virtual ~PrimitiveAnimationChannelClass (void)
 
const PrimitiveAnimationChannelClass< T > & operator= (const PrimitiveAnimationChannelClass< T > &src)
 
const KeyClassoperator[] (int index)
 
virtual T Evaluate (float time)=0
 
int Get_Key_Count (void) const
 
const KeyClassGet_Key (int index) const
 
void Set_Key (int index, const T &value, float time)
 
void Set_Key_Value (int index, const T &value)
 
void Add_Key (const T &value, float time)
 
void Insert_Key (int index, const T &value, float time)
 
void Delete_Key (int index)
 
void Reset (void)
 
virtual void Save (ChunkSaveClass &csave)
 
virtual void Load (ChunkLoadClass &cload)
 

Protected Types

enum  { CHUNKID_VARIABLES = 0x03150809 }
 
enum  { VARID_KEY = 1 }
 

Protected Member Functions

void Load_Variables (ChunkLoadClass &cload)
 

Protected Attributes

SimpleDynVecClass< KeyClassm_Data
 
int m_LastIndex
 

Detailed Description

template<class T>
class PrimitiveAnimationChannelClass< T >

Definition at line 63 of file prim_anim.h.

Member Enumeration Documentation

◆ anonymous enum

template<class T>
anonymous enum
protected
Enumerator
CHUNKID_VARIABLES 

Definition at line 127 of file prim_anim.h.

◆ anonymous enum

template<class T>
anonymous enum
protected
Enumerator
VARID_KEY 

Definition at line 132 of file prim_anim.h.

Constructor & Destructor Documentation

◆ PrimitiveAnimationChannelClass()

Definition at line 70 of file prim_anim.h.

◆ ~PrimitiveAnimationChannelClass()

template<class T>
virtual PrimitiveAnimationChannelClass< T >::~PrimitiveAnimationChannelClass ( void )
inlinevirtual

Definition at line 72 of file prim_anim.h.

Member Function Documentation

◆ Add_Key()

template<class T>
void PrimitiveAnimationChannelClass< T >::Add_Key ( const T & value,
float time )

Definition at line 215 of file prim_anim.h.

◆ Delete_Key()

template<class T>
void PrimitiveAnimationChannelClass< T >::Delete_Key ( int index)

Definition at line 235 of file prim_anim.h.

◆ Evaluate()

◆ Get_Key()

template<class T>
const PrimitiveAnimationChannelClass< T >::KeyClass & PrimitiveAnimationChannelClass< T >::Get_Key ( int index) const

Definition at line 185 of file prim_anim.h.

◆ Get_Key_Count()

template<class T>
int PrimitiveAnimationChannelClass< T >::Get_Key_Count ( void ) const

Definition at line 176 of file prim_anim.h.

◆ Insert_Key()

template<class T>
void PrimitiveAnimationChannelClass< T >::Insert_Key ( int index,
const T & value,
float time )

Definition at line 225 of file prim_anim.h.

◆ Load()

template<class T>
void PrimitiveAnimationChannelClass< T >::Load ( ChunkLoadClass & cload)
virtual

Definition at line 296 of file prim_anim.h.

◆ Load_Variables()

template<class T>
void PrimitiveAnimationChannelClass< T >::Load_Variables ( ChunkLoadClass & cload)
protected

Definition at line 318 of file prim_anim.h.

◆ operator=()

template<class T>
const PrimitiveAnimationChannelClass< T > & PrimitiveAnimationChannelClass< T >::operator= ( const PrimitiveAnimationChannelClass< T > & src)

Definition at line 256 of file prim_anim.h.

◆ operator[]()

template<class T>
const KeyClass & PrimitiveAnimationChannelClass< T >::operator[] ( int index)
inline

Definition at line 103 of file prim_anim.h.

◆ Reset()

template<class T>
void PrimitiveAnimationChannelClass< T >::Reset ( void )

Definition at line 245 of file prim_anim.h.

◆ Save()

template<class T>
void PrimitiveAnimationChannelClass< T >::Save ( ChunkSaveClass & csave)
virtual

Definition at line 275 of file prim_anim.h.

◆ Set_Key()

template<class T>
void PrimitiveAnimationChannelClass< T >::Set_Key ( int index,
const T & value,
float time )

Definition at line 194 of file prim_anim.h.

◆ Set_Key_Value()

template<class T>
void PrimitiveAnimationChannelClass< T >::Set_Key_Value ( int index,
const T & value )

Definition at line 205 of file prim_anim.h.

Member Data Documentation

◆ m_Data

template<class T>
SimpleDynVecClass< KeyClass > PrimitiveAnimationChannelClass< T >::m_Data
protected

Definition at line 147 of file prim_anim.h.

◆ m_LastIndex

template<class T>
int PrimitiveAnimationChannelClass< T >::m_LastIndex
protected

Definition at line 148 of file prim_anim.h.


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