org.ogre4j
Interface IControllerManager

All Superinterfaces:
IAllocatedObject<IGeneralAllocPolicy>, IGeneralAllocatedObject, INativeObject, ISingleton<IControllerManager>
All Known Implementing Classes:
ControllerManager

public interface IControllerManager
extends INativeObject, IGeneralAllocatedObject, ISingleton<IControllerManager>


Nested Class Summary
static interface IControllerManager.IControllerList
           
 
Method Summary
 void clearControllers()
          Destroys all the controllers in existence.
 void createController(IController<java.lang.Float> returnValue, IControllerValueRealPtr src, IControllerValueRealPtr dest, IControllerFunctionRealPtr func)
          Creates a new controller and registers it with the manager.
 void createFrameTimePassthroughController(IController<java.lang.Float> returnValue, IControllerValueRealPtr dest)
          Creates a new controller use frame time source and passthrough controller function.
 void createGpuProgramTimerParam(IController<java.lang.Float> returnValue, IGpuProgramParameters params, int paramIndex, float timeFactor)
          Creates a controller for passing a frame time value through to a vertex / fragment program parameter.
 void createTextureAnimator(IController<java.lang.Float> returnValue, ITextureUnitState layer, float sequenceTime)
          Creates a texture layer animator controller.
 void createTextureRotater(IController<java.lang.Float> returnValue, ITextureUnitState layer, float speed)
          Creates a basic time-based texture coordinate modifier designed for creating rotating textures.
 void createTextureUScroller(IController<java.lang.Float> returnValue, ITextureUnitState layer, float uSpeed)
          Creates a basic time-based texture u coordinate modifier designed for creating scrolling textures.
 void createTextureUVScroller(IController<java.lang.Float> returnValue, ITextureUnitState layer, float speed)
          Creates a basic time-based texture uv coordinate modifier designed for creating scrolling textures.
 void createTextureVScroller(IController<java.lang.Float> returnValue, ITextureUnitState layer, float vSpeed)
          Creates a basic time-based texture v coordinate modifier designed for creating scrolling textures.
 void createTextureWaveTransformer(IController<java.lang.Float> returnValue, ITextureUnitState layer, TextureUnitState.TextureTransformType ttype, WaveformType waveType, float base, float frequency, float phase, float amplitude)
          Creates a very flexible time-based texture transformation which can alter the scale, position or rotation of a texture based on a wave function.
 void destroyController(IController<java.lang.Float> controller)
          Removes & destroys the controller passed in as a pointer.
 float getElapsedTime()
          Return the elapsed time.
 float getFrameDelay()
          Gets the constant that is added to time lapsed between each frame.
 IControllerValueRealPtr getFrameTimeSource()
          Returns a which provides the time since the last frame as a control value source.
 IControllerFunctionRealPtr getPassthroughControllerFunction()
          Retrieve a simple passthrough controller function.
 float getTimeFactor()
          Return relative speed of time as perceived by time based controllers.
 void setElapsedTime(float elapsedTime)
          Set the elapsed time.
 void setFrameDelay(float fd)
          Sets a constant frame rate.
 void setTimeFactor(float tf)
          Set the relative speed to update frame time based controllers.
 void updateAllControllers()
          Updates all the registered controllers.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

createController

void createController(IController<java.lang.Float> returnValue,
                      IControllerValueRealPtr src,
                      IControllerValueRealPtr dest,
                      IControllerFunctionRealPtr func)
Creates a new controller and registers it with the manager.


createFrameTimePassthroughController

void createFrameTimePassthroughController(IController<java.lang.Float> returnValue,
                                          IControllerValueRealPtr dest)
Creates a new controller use frame time source and passthrough controller function.


clearControllers

void clearControllers()
Destroys all the controllers in existence.


updateAllControllers

void updateAllControllers()
Updates all the registered controllers.


getFrameTimeSource

IControllerValueRealPtr getFrameTimeSource()
Returns a which provides the time since the last frame as a control value source.


getPassthroughControllerFunction

IControllerFunctionRealPtr getPassthroughControllerFunction()
Retrieve a simple passthrough controller function.


createTextureAnimator

void createTextureAnimator(IController<java.lang.Float> returnValue,
                           ITextureUnitState layer,
                           float sequenceTime)
Creates a texture layer animator controller.


createTextureUVScroller

void createTextureUVScroller(IController<java.lang.Float> returnValue,
                             ITextureUnitState layer,
                             float speed)
Creates a basic time-based texture uv coordinate modifier designed for creating scrolling textures.


createTextureUScroller

void createTextureUScroller(IController<java.lang.Float> returnValue,
                            ITextureUnitState layer,
                            float uSpeed)
Creates a basic time-based texture u coordinate modifier designed for creating scrolling textures.


createTextureVScroller

void createTextureVScroller(IController<java.lang.Float> returnValue,
                            ITextureUnitState layer,
                            float vSpeed)
Creates a basic time-based texture v coordinate modifier designed for creating scrolling textures.


createTextureRotater

void createTextureRotater(IController<java.lang.Float> returnValue,
                          ITextureUnitState layer,
                          float speed)
Creates a basic time-based texture coordinate modifier designed for creating rotating textures.


createTextureWaveTransformer

void createTextureWaveTransformer(IController<java.lang.Float> returnValue,
                                  ITextureUnitState layer,
                                  TextureUnitState.TextureTransformType ttype,
                                  WaveformType waveType,
                                  float base,
                                  float frequency,
                                  float phase,
                                  float amplitude)
Creates a very flexible time-based texture transformation which can alter the scale, position or rotation of a texture based on a wave function.


createGpuProgramTimerParam

void createGpuProgramTimerParam(IController<java.lang.Float> returnValue,
                                IGpuProgramParameters params,
                                int paramIndex,
                                float timeFactor)
Creates a controller for passing a frame time value through to a vertex / fragment program parameter.


destroyController

void destroyController(IController<java.lang.Float> controller)
Removes & destroys the controller passed in as a pointer.


getTimeFactor

float getTimeFactor()
Return relative speed of time as perceived by time based controllers.


setTimeFactor

void setTimeFactor(float tf)
Set the relative speed to update frame time based controllers.


getFrameDelay

float getFrameDelay()
Gets the constant that is added to time lapsed between each frame.


setFrameDelay

void setFrameDelay(float fd)
Sets a constant frame rate.


getElapsedTime

float getElapsedTime()
Return the elapsed time.


setElapsedTime

void setElapsedTime(float elapsedTime)
Set the elapsed time.



Copyright © 2007 netAllied GmbH. All Rights Reserved.