OGRE  1.8
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::AnimationStateControllerValue Class Reference

ControllerValue wrapper class for AnimationState. More...

#include <OgreAnimationState.h>

+ Inheritance diagram for Ogre::AnimationStateControllerValue:
+ Collaboration diagram for Ogre::AnimationStateControllerValue:

Public Member Functions

 AnimationStateControllerValue (AnimationState *targetAnimationState)
 Constructor, pass in the target animation state. More...
 
 ~AnimationStateControllerValue ()
 Destructor (parent already virtual) More...
 
Real getValue (void) const
 ControllerValue implementation. More...
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 
void setValue (Real value)
 ControllerValue implementation. More...
 

Protected Attributes

AnimationStatemTargetAnimationState
 

Detailed Description

ControllerValue wrapper class for AnimationState.

Remarks
In Azathoth and earlier, AnimationState was a ControllerValue but this actually causes memory problems since Controllers delete their values automatically when there are no further references to them, but AnimationState is deleted explicitly elsewhere so this causes double-free problems. This wrapper acts as a bridge and it is this which is destroyed automatically.

Definition at line 273 of file OgreAnimationState.h.

Constructor & Destructor Documentation

Ogre::AnimationStateControllerValue::AnimationStateControllerValue ( AnimationState targetAnimationState)
inline

Constructor, pass in the target animation state.

Definition at line 279 of file OgreAnimationState.h.

Ogre::AnimationStateControllerValue::~AnimationStateControllerValue ( )
inline

Destructor (parent already virtual)

Definition at line 282 of file OgreAnimationState.h.

Member Function Documentation

Real Ogre::AnimationStateControllerValue::getValue ( void  ) const
virtual

ControllerValue implementation.

Implements Ogre::ControllerValue< Real >.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 95 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 101 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 107 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 112 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 118 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 67 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 72 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 78 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 85 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 90 of file OgreMemoryAllocatedObject.h.

void Ogre::AnimationStateControllerValue::setValue ( Real  value)
virtual

ControllerValue implementation.

Implements Ogre::ControllerValue< Real >.

Member Data Documentation

AnimationState* Ogre::AnimationStateControllerValue::mTargetAnimationState
protected

Definition at line 276 of file OgreAnimationState.h.


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