Instances of this class 'control' the value of another object in the system. More...
#include <OgreController.h>
Public Member Functions | |
Controller (const SharedPtr< ControllerValue< T > > &src, const SharedPtr< ControllerValue< T > > &dest, const SharedPtr< ControllerFunction< T > > &func) | |
Usual constructor. | |
virtual | ~Controller () |
Default d-tor. | |
void | setSource (const SharedPtr< ControllerValue< T > > &src) |
Sets the input controller value. | |
const SharedPtr < ControllerValue< T > > & | getSource (void) const |
Gets the input controller value. | |
void | setDestination (const SharedPtr< ControllerValue< T > > &dest) |
Sets the output controller value. | |
const SharedPtr < ControllerValue< T > > & | getDestination (void) const |
Gets the output controller value. | |
bool | getEnabled (void) const |
Returns true if this controller is currently enabled. | |
void | setEnabled (bool enabled) |
Sets whether this controller is enabled. | |
void | setFunction (const SharedPtr< ControllerFunction< T > > &func) |
Sets the function object to be used by this controller. | |
const SharedPtr < ControllerFunction< T > > & | getFunction (void) const |
Returns a pointer to the function object used by this controller. | |
void | update (void) |
Tells this controller to map it's input controller value to it's output controller value, via the controller function. | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
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 *) |
Protected Attributes | |
SharedPtr< ControllerValue< T > > | mSource |
Source value. | |
SharedPtr< ControllerValue< T > > | mDest |
Destination value. | |
SharedPtr< ControllerFunction < T > > | mFunc |
Function. | |
bool | mEnabled |
Controller is enabled or not. |
Instances of this class 'control' the value of another object in the system.
Definition at line 135 of file OgreController.h.
Ogre::Controller< T >::Controller | ( | const SharedPtr< ControllerValue< T > > & | src, | |
const SharedPtr< ControllerValue< T > > & | dest, | |||
const SharedPtr< ControllerFunction< T > > & | func | |||
) |
Usual constructor.
Definition at line 155 of file OgreController.h.
virtual Ogre::Controller< T >::~Controller | ( | ) | [virtual] |
Default d-tor.
Definition at line 164 of file OgreController.h.
const SharedPtr< ControllerValue<T> >& Ogre::Controller< T >::getDestination | ( | void | ) | const |
Gets the output controller value.
Definition at line 184 of file OgreController.h.
bool Ogre::Controller< T >::getEnabled | ( | void | ) | const |
Returns true if this controller is currently enabled.
Definition at line 190 of file OgreController.h.
const SharedPtr< ControllerFunction<T> >& Ogre::Controller< T >::getFunction | ( | void | ) | const |
Returns a pointer to the function object used by this controller.
Definition at line 210 of file OgreController.h.
const SharedPtr< ControllerValue<T> >& Ogre::Controller< T >::getSource | ( | void | ) | const |
Gets the input controller value.
Definition at line 173 of file OgreController.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
void Ogre::Controller< T >::setDestination | ( | const SharedPtr< ControllerValue< T > > & | dest | ) |
Sets the output controller value.
Definition at line 178 of file OgreController.h.
void Ogre::Controller< T >::setEnabled | ( | bool | enabled | ) |
Sets whether this controller is enabled.
Definition at line 196 of file OgreController.h.
void Ogre::Controller< T >::setFunction | ( | const SharedPtr< ControllerFunction< T > > & | func | ) |
Sets the function object to be used by this controller.
Definition at line 203 of file OgreController.h.
void Ogre::Controller< T >::setSource | ( | const SharedPtr< ControllerValue< T > > & | src | ) |
Sets the input controller value.
Definition at line 168 of file OgreController.h.
void Ogre::Controller< T >::update | ( | void | ) |
Tells this controller to map it's input controller value to it's output controller value, via the controller function.
Definition at line 220 of file OgreController.h.
SharedPtr< ControllerValue<T> > Ogre::Controller< T >::mDest [protected] |
Destination value.
Definition at line 141 of file OgreController.h.
Referenced by Ogre::Controller< Real >::getDestination(), Ogre::Controller< Real >::setDestination(), and Ogre::Controller< Real >::update().
bool Ogre::Controller< T >::mEnabled [protected] |
Controller is enabled or not.
Definition at line 145 of file OgreController.h.
Referenced by Ogre::Controller< Real >::Controller(), Ogre::Controller< Real >::getEnabled(), Ogre::Controller< Real >::setEnabled(), and Ogre::Controller< Real >::update().
SharedPtr< ControllerFunction<T> > Ogre::Controller< T >::mFunc [protected] |
Function.
Definition at line 143 of file OgreController.h.
Referenced by Ogre::Controller< Real >::getFunction(), Ogre::Controller< Real >::setFunction(), and Ogre::Controller< Real >::update().
SharedPtr< ControllerValue<T> > Ogre::Controller< T >::mSource [protected] |
Source value.
Definition at line 139 of file OgreController.h.
Referenced by Ogre::Controller< Real >::getSource(), Ogre::Controller< Real >::setSource(), and Ogre::Controller< Real >::update().
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:37:18 2012