|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.ControllerManager
public class ControllerManager
| Nested Class Summary | |
|---|---|
protected static class |
ControllerManager.ControllerList
|
| Nested classes/interfaces inherited from interface org.ogre4j.IControllerManager |
|---|
IControllerManager.IControllerList |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
ControllerManager()
|
|
ControllerManager(InstancePointer p)
This constructor is public for internal useage only! |
protected |
ControllerManager(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
ControllerManager(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| 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 |
delete()
Deletes the corresponding C++ object. |
void |
destroyController(IController<java.lang.Float> controller)
Removes & destroys the controller passed in as a pointer. |
void |
finalize()
|
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. |
static IControllerManager |
getSingleton()
Override standard retrieval. |
static IControllerManager |
getSingletonPtr()
Override standard retrieval. |
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 class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public ControllerManager(InstancePointer p)
protected ControllerManager(InstancePointer p,
boolean remote)
public ControllerManager(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public ControllerManager()
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObject
public void createController(IController<java.lang.Float> returnValue,
IControllerValueRealPtr src,
IControllerValueRealPtr dest,
IControllerFunctionRealPtr func)
createController in interface IControllerManager
public void createFrameTimePassthroughController(IController<java.lang.Float> returnValue,
IControllerValueRealPtr dest)
createFrameTimePassthroughController in interface IControllerManagerpublic void clearControllers()
clearControllers in interface IControllerManagerpublic void updateAllControllers()
updateAllControllers in interface IControllerManagerpublic IControllerValueRealPtr getFrameTimeSource()
getFrameTimeSource in interface IControllerManagerpublic IControllerFunctionRealPtr getPassthroughControllerFunction()
getPassthroughControllerFunction in interface IControllerManager
public void createTextureAnimator(IController<java.lang.Float> returnValue,
ITextureUnitState layer,
float sequenceTime)
createTextureAnimator in interface IControllerManager
public void createTextureUVScroller(IController<java.lang.Float> returnValue,
ITextureUnitState layer,
float speed)
createTextureUVScroller in interface IControllerManager
public void createTextureUScroller(IController<java.lang.Float> returnValue,
ITextureUnitState layer,
float uSpeed)
createTextureUScroller in interface IControllerManager
public void createTextureVScroller(IController<java.lang.Float> returnValue,
ITextureUnitState layer,
float vSpeed)
createTextureVScroller in interface IControllerManager
public void createTextureRotater(IController<java.lang.Float> returnValue,
ITextureUnitState layer,
float speed)
createTextureRotater in interface IControllerManager
public void createTextureWaveTransformer(IController<java.lang.Float> returnValue,
ITextureUnitState layer,
TextureUnitState.TextureTransformType ttype,
WaveformType waveType,
float base,
float frequency,
float phase,
float amplitude)
createTextureWaveTransformer in interface IControllerManager
public void createGpuProgramTimerParam(IController<java.lang.Float> returnValue,
IGpuProgramParameters params,
int paramIndex,
float timeFactor)
createGpuProgramTimerParam in interface IControllerManagerpublic void destroyController(IController<java.lang.Float> controller)
destroyController in interface IControllerManagerpublic float getTimeFactor()
getTimeFactor in interface IControllerManagerpublic void setTimeFactor(float tf)
setTimeFactor in interface IControllerManagerpublic float getFrameDelay()
getFrameDelay in interface IControllerManagerpublic void setFrameDelay(float fd)
setFrameDelay in interface IControllerManagerpublic float getElapsedTime()
getElapsedTime in interface IControllerManagerpublic void setElapsedTime(float elapsedTime)
setElapsedTime in interface IControllerManagerpublic static IControllerManager getSingleton()
public static IControllerManager getSingletonPtr()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||