OGRE
1.9.0
|
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. | |
const SharedPtr< ControllerValue< T > > & | getDestination (void) const |
Gets the output controller value. | |
bool | getEnabled (void) const |
Returns true if this controller is currently enabled. | |
const SharedPtr< ControllerFunction< T > > & | getFunction (void) const |
Returns a pointer to the function object used by this controller. | |
const SharedPtr< ControllerValue< T > > & | getSource (void) const |
Gets the input controller value. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
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 *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void | setDestination (const SharedPtr< ControllerValue< T > > &dest) |
Sets the output controller value. | |
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. | |
void | setSource (const SharedPtr< ControllerValue< T > > &src) |
Sets the input controller value. | |
void | update (void) |
Tells this controller to map it's input controller value to it's output controller value, via the controller function. | |
Protected Attributes | |
SharedPtr< ControllerValue< T > > | mDest |
Destination value. | |
bool | mEnabled |
Controller is enabled or not. | |
SharedPtr< ControllerFunction< T > > | mFunc |
Function. | |
SharedPtr< ControllerValue< T > > | mSource |
Source value. | |
Instances of this class 'control' the value of another object in the system.
Definition at line 136 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 156 of file OgreController.h.
References Ogre::Controller< T >::mEnabled.
|
virtual |
Default d-tor.
Definition at line 165 of file OgreController.h.
const SharedPtr< ControllerValue< T > > & Ogre::Controller< T >::getDestination | ( | void | ) | const |
Gets the output controller value.
Definition at line 185 of file OgreController.h.
References Ogre::Controller< T >::mDest.
Returns true if this controller is currently enabled.
Definition at line 191 of file OgreController.h.
References Ogre::Controller< T >::mEnabled.
const SharedPtr< ControllerFunction< T > > & Ogre::Controller< T >::getFunction | ( | void | ) | const |
Returns a pointer to the function object used by this controller.
Definition at line 211 of file OgreController.h.
References Ogre::Controller< T >::mFunc.
const SharedPtr< ControllerValue< T > > & Ogre::Controller< T >::getSource | ( | void | ) | const |
Gets the input controller value.
Definition at line 174 of file OgreController.h.
References Ogre::Controller< T >::mSource.
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
void Ogre::Controller< T >::setDestination | ( | const SharedPtr< ControllerValue< T > > & | dest | ) |
Sets the output controller value.
Definition at line 179 of file OgreController.h.
References Ogre::Controller< T >::mDest.
Sets whether this controller is enabled.
Definition at line 197 of file OgreController.h.
References Ogre::Controller< T >::mEnabled.
void Ogre::Controller< T >::setFunction | ( | const SharedPtr< ControllerFunction< T > > & | func | ) |
Sets the function object to be used by this controller.
Definition at line 204 of file OgreController.h.
References Ogre::Controller< T >::mFunc.
void Ogre::Controller< T >::setSource | ( | const SharedPtr< ControllerValue< T > > & | src | ) |
Sets the input controller value.
Definition at line 169 of file OgreController.h.
References Ogre::Controller< T >::mSource.
Tells this controller to map it's input controller value to it's output controller value, via the controller function.
Definition at line 221 of file OgreController.h.
References Ogre::Controller< T >::mDest, Ogre::Controller< T >::mEnabled, Ogre::Controller< T >::mFunc, and Ogre::Controller< T >::mSource.
|
protected |
Destination value.
Definition at line 142 of file OgreController.h.
Referenced by Ogre::Controller< T >::getDestination(), Ogre::Controller< T >::setDestination(), and Ogre::Controller< T >::update().
|
protected |
Controller is enabled or not.
Definition at line 146 of file OgreController.h.
Referenced by Ogre::Controller< T >::Controller(), Ogre::Controller< T >::getEnabled(), Ogre::Controller< T >::setEnabled(), and Ogre::Controller< T >::update().
|
protected |
Function.
Definition at line 144 of file OgreController.h.
Referenced by Ogre::Controller< T >::getFunction(), Ogre::Controller< T >::setFunction(), and Ogre::Controller< T >::update().
|
protected |
Source value.
Definition at line 140 of file OgreController.h.
Referenced by Ogre::Controller< T >::getSource(), Ogre::Controller< T >::setSource(), and Ogre::Controller< T >::update().