|
| Controller (const SharedPtr< ControllerValue< T > > &src, const SharedPtr< ControllerValue< T > > &dest, const SharedPtr< ControllerFunction< T > > &func) |
| Usual constructor. More...
|
|
virtual | ~Controller () |
| Default d-tor. More...
|
|
const SharedPtr< ControllerValue< T > > & | getDestination () const |
| Gets the output controller value. More...
|
|
bool | getEnabled () const |
| Returns true if this controller is currently enabled. More...
|
|
const SharedPtr< ControllerFunction< T > > & | getFunction () const |
| Returns a pointer to the function object used by this controller. More...
|
|
const SharedPtr< ControllerValue< T > > & | getSource () const |
| Gets the input controller value. More...
|
|
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 More...
|
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new More...
|
|
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 More...
|
|
void | setDestination (const SharedPtr< ControllerValue< T > > &dest) |
| Sets the output controller value. More...
|
|
void | setEnabled (bool enabled) |
| Sets whether this controller is enabled. More...
|
|
void | setFunction (const SharedPtr< ControllerFunction< T > > &func) |
| Sets the function object to be used by this controller. More...
|
|
void | setSource (const SharedPtr< ControllerValue< T > > &src) |
| Sets the input controller value. More...
|
|
void | update () |
| Tells this controller to map it's input controller value to it's output controller value, via the controller function. More...
|
|
template<typename T>
class Ogre::Controller< T >
Instances of this class 'control' the value of another object in the system.
- The Controller is an intentionally abstract concept - it can generate values based on input and a function, which can either be one of the standard ones supplied, or a function can be 'plugged in' for custom behaviour - see the ControllerFunction class for details. Both the input and output values are via ControllerValue objects, meaning that any value can be both input and output of the controller.
- Whilst this is very flexible, it can be a little bit confusing so to make it simpler the most often used controller setups are available by calling methods on the ControllerManager object.
- See also
- ControllerFunction