org.ogre4j
Class MovableObject.Listener

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.MovableObject.Listener
All Implemented Interfaces:
IMovableObject.IListener, INativeObject
Enclosing class:
MovableObject

public static class MovableObject.Listener
extends NativeObject
implements IMovableObject.IListener


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  MovableObject.Listener()
           
  MovableObject.Listener(InstancePointer p)
          This constructor is public for internal useage only!
protected MovableObject.Listener(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  MovableObject.Listener(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 void objectAttached(IMovableObject a1)
          has been attached to a node
 void objectDestroyed(IMovableObject a1)
          is being destroyed
 void objectDetached(IMovableObject a1)
          has been detached from a node
 void objectMoved(IMovableObject a1)
          has been moved
 ILightList objectQueryLights(IMovableObject a1)
          Called when the movable object needs to query a light list.
 boolean objectRendering(IMovableObject a1, ICamera a2)
          Called when the movable object of the camera to be used for rendering.
 
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

MovableObject.Listener

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


MovableObject.Listener

protected MovableObject.Listener(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.


MovableObject.Listener

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

MovableObject.Listener

public MovableObject.Listener()
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

objectDestroyed

public void objectDestroyed(IMovableObject a1)
is being destroyed

Specified by:
objectDestroyed in interface IMovableObject.IListener

objectAttached

public void objectAttached(IMovableObject a1)
has been attached to a node

Specified by:
objectAttached in interface IMovableObject.IListener

objectDetached

public void objectDetached(IMovableObject a1)
has been detached from a node

Specified by:
objectDetached in interface IMovableObject.IListener

objectMoved

public void objectMoved(IMovableObject a1)
has been moved

Specified by:
objectMoved in interface IMovableObject.IListener

objectRendering

public boolean objectRendering(IMovableObject a1,
                               ICamera a2)
Called when the movable object of the camera to be used for rendering.

Specified by:
objectRendering in interface IMovableObject.IListener

objectQueryLights

public ILightList objectQueryLights(IMovableObject a1)
Called when the movable object needs to query a light list.

Specified by:
objectQueryLights in interface IMovableObject.IListener


Copyright © 2007 netAllied GmbH. All Rights Reserved.