org.ogre4j
Class InstancedGeometry.InstancedObject

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.InstancedGeometry.InstancedObject
All Implemented Interfaces:
IAllocatedObject<IGeometryAllocPolicy>, IGeometryAllocatedObject, IInstancedGeometry.IInstancedObject, INativeObject
Enclosing class:
InstancedGeometry

public static class InstancedGeometry.InstancedObject
extends NativeObject
implements IInstancedGeometry.IInstancedObject


Nested Class Summary
static class InstancedGeometry.InstancedObject.GeometryBucketList
           
static class InstancedGeometry.InstancedObject.TransformSpace
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IInstancedGeometry.IInstancedObject
IInstancedGeometry.IInstancedObject.IGeometryBucketList
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  InstancedGeometry.InstancedObject(InstancePointer p)
          This constructor is public for internal useage only!
protected InstancedGeometry.InstancedObject(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  InstancedGeometry.InstancedObject(int index)
           
  InstancedGeometry.InstancedObject(int index, ISkeletonInstance skeleton, IAnimationStateSet animations)
           
  InstancedGeometry.InstancedObject(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void addBucketToList(IInstancedGeometry.IGeometryBucket bucket)
           
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 IAnimationState getAnimationState(java.lang.String name)
           
 IInstancedGeometry.IInstancedObject.IGeometryBucketList getGeometryBucketList()
           
 void getLocalAxes(IMatrix3 returnValue)
           
 IQuaternion getOrientation()
           
 IVector3 getPosition()
           
 ISkeletonInstance getSkeletonInstance()
           
 void needUpdate()
           
 void pitch(IRadian angle)
           
 void roll(IRadian angle)
           
 void rotate(IQuaternion q)
           
 void setOrientation(IQuaternion q)
           
 void setPosition(IVector3 position)
           
 void setPositionAndOrientation(IVector3 p, IQuaternion q)
           
 void setScale(IVector3 scale)
           
 void translate(IMatrix3 axes, IVector3 move)
           
 void translate(IVector3 d)
           
 void updateAnimation()
           
 void yaw(IRadian angle)
           
 
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

InstancedGeometry.InstancedObject

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


InstancedGeometry.InstancedObject

protected InstancedGeometry.InstancedObject(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.


InstancedGeometry.InstancedObject

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

InstancedGeometry.InstancedObject

public InstancedGeometry.InstancedObject(int index)

InstancedGeometry.InstancedObject

public InstancedGeometry.InstancedObject(int index,
                                         ISkeletonInstance skeleton,
                                         IAnimationStateSet animations)
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

setPosition

public void setPosition(IVector3 position)
Specified by:
setPosition in interface IInstancedGeometry.IInstancedObject

getPosition

public IVector3 getPosition()
Specified by:
getPosition in interface IInstancedGeometry.IInstancedObject

yaw

public void yaw(IRadian angle)
Specified by:
yaw in interface IInstancedGeometry.IInstancedObject

pitch

public void pitch(IRadian angle)
Specified by:
pitch in interface IInstancedGeometry.IInstancedObject

roll

public void roll(IRadian angle)
Specified by:
roll in interface IInstancedGeometry.IInstancedObject

rotate

public void rotate(IQuaternion q)
Specified by:
rotate in interface IInstancedGeometry.IInstancedObject

setScale

public void setScale(IVector3 scale)
Specified by:
setScale in interface IInstancedGeometry.IInstancedObject

setOrientation

public void setOrientation(IQuaternion q)
Specified by:
setOrientation in interface IInstancedGeometry.IInstancedObject

setPositionAndOrientation

public void setPositionAndOrientation(IVector3 p,
                                      IQuaternion q)
Specified by:
setPositionAndOrientation in interface IInstancedGeometry.IInstancedObject

getOrientation

public IQuaternion getOrientation()
Specified by:
getOrientation in interface IInstancedGeometry.IInstancedObject

addBucketToList

public void addBucketToList(IInstancedGeometry.IGeometryBucket bucket)
Specified by:
addBucketToList in interface IInstancedGeometry.IInstancedObject

needUpdate

public void needUpdate()
Specified by:
needUpdate in interface IInstancedGeometry.IInstancedObject

getGeometryBucketList

public IInstancedGeometry.IInstancedObject.IGeometryBucketList getGeometryBucketList()
Specified by:
getGeometryBucketList in interface IInstancedGeometry.IInstancedObject

translate

public void translate(IMatrix3 axes,
                      IVector3 move)
Specified by:
translate in interface IInstancedGeometry.IInstancedObject

translate

public void translate(IVector3 d)
Specified by:
translate in interface IInstancedGeometry.IInstancedObject

getLocalAxes

public void getLocalAxes(IMatrix3 returnValue)
Specified by:
getLocalAxes in interface IInstancedGeometry.IInstancedObject

updateAnimation

public void updateAnimation()
Specified by:
updateAnimation in interface IInstancedGeometry.IInstancedObject

getAnimationState

public IAnimationState getAnimationState(java.lang.String name)
Specified by:
getAnimationState in interface IInstancedGeometry.IInstancedObject

getSkeletonInstance

public ISkeletonInstance getSkeletonInstance()
Specified by:
getSkeletonInstance in interface IInstancedGeometry.IInstancedObject


Copyright © 2007 netAllied GmbH. All Rights Reserved.