org.ogre4j
Class Pose

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.Pose
All Implemented Interfaces:
IAllocatedObject<IAnimationAllocPolicy>, IAnimationAllocatedObject, IPose, INativeObject

public class Pose
extends NativeObject
implements IPose


Nested Class Summary
static class Pose.ConstVertexOffsetIterator
           
static class Pose.VertexOffsetIterator
           
static class Pose.VertexOffsetMap
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IPose
IPose.IConstVertexOffsetIterator, IPose.IVertexOffsetIterator, IPose.IVertexOffsetMap
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  Pose(InstancePointer p)
          This constructor is public for internal useage only!
protected Pose(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  Pose(int target, java.lang.String name)
          Constructor
  Pose(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 IHardwareVertexBufferSharedPtr _getHardwareVertexBuffer(int numVertices)
          Get a hardware vertex buffer version of the vertex offsets.
 void addVertex(int index, IVector3 offset)
          Adds an offset to a vertex for this pose.
 void clearVertexOffsets()
          Clear all vertex offsets.
 IPose clone()
          Clone this pose and create another one configured exactly the same way (only really useful for cloning holders of this class).
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 java.lang.String getName()
           
 int getTarget()
           
 void getVertexOffsetIterator_const(IPose.IConstVertexOffsetIterator returnValue)
           
 void getVertexOffsetIterator(IPose.IVertexOffsetIterator returnValue)
          Gets an iterator over all the vertex offsets.
 IPose.IVertexOffsetMap getVertexOffsets()
          Gets a const reference to the vertex offsets.
 void removeVertex(int index)
          Remove a vertex offset.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

Pose

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


Pose

protected Pose(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.


Pose

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

Pose

public Pose(int target,
            java.lang.String name)
Constructor

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

getName

public java.lang.String getName()
Specified by:
getName in interface IPose

getTarget

public int getTarget()
Specified by:
getTarget in interface IPose

addVertex

public void addVertex(int index,
                      IVector3 offset)
Adds an offset to a vertex for this pose.

Specified by:
addVertex in interface IPose

removeVertex

public void removeVertex(int index)
Remove a vertex offset.

Specified by:
removeVertex in interface IPose

clearVertexOffsets

public void clearVertexOffsets()
Clear all vertex offsets.

Specified by:
clearVertexOffsets in interface IPose

getVertexOffsetIterator_const

public void getVertexOffsetIterator_const(IPose.IConstVertexOffsetIterator returnValue)
Specified by:
getVertexOffsetIterator_const in interface IPose

getVertexOffsetIterator

public void getVertexOffsetIterator(IPose.IVertexOffsetIterator returnValue)
Gets an iterator over all the vertex offsets.

Specified by:
getVertexOffsetIterator in interface IPose

getVertexOffsets

public IPose.IVertexOffsetMap getVertexOffsets()
Gets a const reference to the vertex offsets.

Specified by:
getVertexOffsets in interface IPose

_getHardwareVertexBuffer

public IHardwareVertexBufferSharedPtr _getHardwareVertexBuffer(int numVertices)
Get a hardware vertex buffer version of the vertex offsets.

Specified by:
_getHardwareVertexBuffer in interface IPose

clone

public IPose clone()
Clone this pose and create another one configured exactly the same way (only really useful for cloning holders of this class).

Specified by:
clone in interface IPose
Overrides:
clone in class java.lang.Object


Copyright © 2007 netAllied GmbH. All Rights Reserved.