org.ogre4j
Class FrameTimeControllerValue

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.FrameTimeControllerValue
All Implemented Interfaces:
IAllocatedObject<IGeneralAllocPolicy>, IControllerValue<java.lang.Float>, IFrameListener, IFrameTimeControllerValue, IGeneralAllocatedObject, INativeObject

public class FrameTimeControllerValue
extends NativeObject
implements IFrameTimeControllerValue


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  FrameTimeControllerValue()
           
  FrameTimeControllerValue(InstancePointer p)
          This constructor is public for internal useage only!
protected FrameTimeControllerValue(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  FrameTimeControllerValue(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 boolean frameEnded(IFrameEvent evt)
          Called just after a frame has been rendered.
 boolean frameRenderingQueued(IFrameEvent evt)
          Called after all render targets have had their rendering commands issued, but before render windows have been asked to flip their buffers over.
 boolean frameStarted(IFrameEvent evt)
          Called when a frame is about to begin rendering.
 float getElapsedTime()
           
 float getFrameDelay()
           
 float getTimeFactor()
           
 float getValue()
           
 void setElapsedTime(float elapsedTime)
           
 void setFrameDelay(float fd)
           
 void setTimeFactor(float tf)
           
 void setValue(float value)
           
 
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

FrameTimeControllerValue

public FrameTimeControllerValue(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


FrameTimeControllerValue

protected FrameTimeControllerValue(InstancePointer p,
                                   boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


FrameTimeControllerValue

public FrameTimeControllerValue(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

FrameTimeControllerValue

public FrameTimeControllerValue()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

frameEnded

public boolean frameEnded(IFrameEvent evt)
Description copied from interface: IFrameListener
Called just after a frame has been rendered.

Specified by:
frameEnded in interface IFrameListener
Specified by:
frameEnded in interface IFrameTimeControllerValue

frameStarted

public boolean frameStarted(IFrameEvent evt)
Description copied from interface: IFrameListener
Called when a frame is about to begin rendering.

Specified by:
frameStarted in interface IFrameListener
Specified by:
frameStarted in interface IFrameTimeControllerValue

getValue

public float getValue()
Specified by:
getValue in interface IFrameTimeControllerValue

setValue

public void setValue(float value)
Specified by:
setValue in interface IFrameTimeControllerValue

getTimeFactor

public float getTimeFactor()
Specified by:
getTimeFactor in interface IFrameTimeControllerValue

setTimeFactor

public void setTimeFactor(float tf)
Specified by:
setTimeFactor in interface IFrameTimeControllerValue

getFrameDelay

public float getFrameDelay()
Specified by:
getFrameDelay in interface IFrameTimeControllerValue

setFrameDelay

public void setFrameDelay(float fd)
Specified by:
setFrameDelay in interface IFrameTimeControllerValue

getElapsedTime

public float getElapsedTime()
Specified by:
getElapsedTime in interface IFrameTimeControllerValue

setElapsedTime

public void setElapsedTime(float elapsedTime)
Specified by:
setElapsedTime in interface IFrameTimeControllerValue

frameRenderingQueued

public boolean frameRenderingQueued(IFrameEvent evt)
Called after all render targets have had their rendering commands issued, but before render windows have been asked to flip their buffers over.

Specified by:
frameRenderingQueued in interface IFrameListener


Copyright © 2007 netAllied GmbH. All Rights Reserved.