Predefined controller function based on a waveform. More...
#include <OgrePredefinedControllers.h>
Public Member Functions | |
WaveformControllerFunction (WaveformType wType, Real base=0, Real frequency=1, Real phase=0, Real amplitude=1, bool deltaInput=true, Real dutyCycle=0.5) | |
Default constructor, requires at least a wave type, other parameters can be defaulted unless required. More... | |
Real | calculate (Real source) |
Overridden function. 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) |
Protected Member Functions | |
Real | getAdjustedInput (Real input) |
Overridden from ControllerFunction. More... | |
Protected Attributes | |
Real | mAmplitude |
Real | mBase |
Real | mDeltaCount |
bool | mDeltaInput |
If true, function will add input values together and wrap at 1.0 before evaluating. More... | |
Real | mDutyCycle |
Real | mFrequency |
Real | mPhase |
WaveformType | mWaveType |
Predefined controller function based on a waveform.
Definition at line 258 of file OgrePredefinedControllers.h.
Ogre::WaveformControllerFunction::WaveformControllerFunction | ( | WaveformType | wType, |
Real | base = 0 , |
||
Real | frequency = 1 , |
||
Real | phase = 0 , |
||
Real | amplitude = 1 , |
||
bool | deltaInput = true , |
||
Real | dutyCycle = 0.5 |
||
) |
Default constructor, requires at least a wave type, other parameters can be defaulted unless required.
deltaInput | If true, signifies that the input will be a delta value such that the function should add it to an internal counter before calculating the output. |
dutyCycle | Used in PWM mode to specify the pulse width. |
Overridden function.
Implements Ogre::ControllerFunction< Real >.
Overridden from ControllerFunction.
|
inlineinherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
protected |
Definition at line 265 of file OgrePredefinedControllers.h.
|
protected |
Definition at line 262 of file OgrePredefinedControllers.h.
|
protectedinherited |
Definition at line 60 of file OgreController.h.
|
protectedinherited |
If true, function will add input values together and wrap at 1.0 before evaluating.
Definition at line 59 of file OgreController.h.
|
protected |
Definition at line 266 of file OgrePredefinedControllers.h.
|
protected |
Definition at line 263 of file OgrePredefinedControllers.h.
|
protected |
Definition at line 264 of file OgrePredefinedControllers.h.
|
protected |
Definition at line 261 of file OgrePredefinedControllers.h.