#include <OgreController.h>
Collaboration diagram for Ogre::Controller< T >:
Public Methods | |
Controller (SharedPtr< ControllerValue< T > > src, SharedPtr< ControllerValue< T > > dest, SharedPtr< ControllerFunction< T > > func) | |
Usual constructor. | |
virtual | ~Controller () |
Default d-tor. | |
void | setSource (SharedPtr< ControllerValue< T > > src) |
Sets the input controller value. | |
SharedPtr< ControllerValue< T > > | getSource (void) const |
Gets the input controller value. | |
void | setDestination (SharedPtr< ControllerValue< T > > dest) |
Sets the output controller value. | |
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 (SharedPtr< ControllerFunction< T > > func) |
Sets the function object to be used by this controller. | |
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. | |
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. |
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.
Definition at line 122 of file OgreController.h.
|
Usual constructor.
Definition at line 142 of file OgreController.h. |
|
Default d-tor.
Definition at line 151 of file OgreController.h. |
|
Gets the output controller value.
Definition at line 171 of file OgreController.h. |
|
Returns true if this controller is currently enabled.
Definition at line 177 of file OgreController.h. |
|
Returns a pointer to the function object used by this controller.
Definition at line 197 of file OgreController.h. |
|
Gets the input controller value.
Definition at line 160 of file OgreController.h. |
|
Sets the output controller value.
Definition at line 165 of file OgreController.h. |
|
Sets whether this controller is enabled.
Definition at line 183 of file OgreController.h. |
|
Sets the function object to be used by this controller.
Definition at line 190 of file OgreController.h. |
|
Sets the input controller value.
Definition at line 155 of file OgreController.h. |
|
Tells this controller to map it's input controller value to it's output controller value, via the controller function.
Definition at line 207 of file OgreController.h. Referenced by Ogre::ControllerManager::updateAllControllers(). |
|
Destination value.
Definition at line 128 of file OgreController.h. |
|
Controller is enabled or not.
Definition at line 132 of file OgreController.h. |
|
Function.
Definition at line 130 of file OgreController.h. |
|
Source value.
Definition at line 126 of file OgreController.h. |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:17:07 2004