org.ogre4j
Interface ISkeleton

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, INativeObject, IResource, IResourceAllocatedObject, IStringInterface
All Known Subinterfaces:
ISkeletonInstance
All Known Implementing Classes:
Skeleton, SkeletonInstance

public interface ISkeleton
extends INativeObject, IResource


Nested Class Summary
static interface ISkeleton.IAnimationList
           
static interface ISkeleton.IBoneHandleMap
           
static interface ISkeleton.IBoneIterator
           
static interface ISkeleton.IBoneList
           
static interface ISkeleton.IBoneListByName
           
static interface ISkeleton.IBoneSet
           
static interface ISkeleton.ILinkedSkeletonAnimSourceIterator
           
static interface ISkeleton.ILinkedSkeletonAnimSourceList
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IResource
IResource.IListener, IResource.IListenerList
 
Method Summary
 void _buildMapBoneByHandle(ISkeleton source, ISkeleton.IBoneHandleMap boneHandleMap)
          Build the bone handle map to use with .
 void _buildMapBoneByName(ISkeleton source, ISkeleton.IBoneHandleMap boneHandleMap)
          Build the bone handle map to use with .
 IAnimation _getAnimationImpl(java.lang.String name, NativeObjectPointer<ILinkedSkeletonAnimationSource> linker)
           
 void _getBoneMatrices(IMatrix4 pMatrices)
          Populates the passed in array with the bone matrices based on the current position.
 void _initAnimationState(IAnimationStateSet animSet)
          Initialise an animation set suitable for use with this skeleton.
 void _mergeSkeletonAnimations(ISkeleton source, ISkeleton.IBoneHandleMap boneHandleMap, IStringVector animations)
          Merge animations from another object into this skeleton.
 void _notifyManualBonesDirty()
           
 void _notifyManualBoneStateChange(IBone bone)
           
 void _refreshAnimationState(IAnimationStateSet animSet)
          Refresh an animation set suitable for use with this skeleton.
 void _updateTransforms()
           
 void addLinkedSkeletonAnimationSource(java.lang.String skelName, float scale)
          Allows you to use the animations from another object to animate this skeleton.
 IAnimation createAnimation(java.lang.String name, float length)
          Creates a new object for animating this skeleton.
 IBone createBone()
          Creates a brand new owned by this .
 IBone createBone(int handle)
          Creates a brand new owned by this .
 IBone createBone(java.lang.String name)
          Creates a brand new owned by this .
 IBone createBone(java.lang.String name, int handle)
          Creates a brand new owned by this .
 IAnimation getAnimation(int index)
          Gets a single animation by index.
 IAnimation getAnimation(java.lang.String name, NativeObjectPointer<ILinkedSkeletonAnimationSource> linker)
          Returns the named object.
 SkeletonAnimationBlendMode getBlendMode()
          Gets the animation blending mode which this skeleton will use.
 IBone getBone(int handle)
          Gets a bone by it's handle.
 IBone getBone(java.lang.String name)
          Gets a bone by it's name.
 void getBoneIterator(ISkeleton.IBoneIterator returnValue)
           
 void getLinkedSkeletonAnimationSourceIterator(ISkeleton.ILinkedSkeletonAnimSourceIterator returnValue)
           
 boolean getManualBonesDirty()
           
 int getNumAnimations()
          Gets the number of animations on this skeleton.
 int getNumBones()
          Returns the number of bones in this skeleton.
 IBone getRootBone()
          Gets the root bone of the skeleton: deprecated in favour of getRootBoneIterator.
 void getRootBoneIterator(ISkeleton.IBoneIterator returnValue)
           
 boolean hasAnimation(java.lang.String name)
          Returns whether this skeleton contains the named animation.
 boolean hasBone(java.lang.String name)
          Returns whether this skeleton contains the named bone.
 boolean hasManualBones()
           
 void optimiseAllAnimations(boolean preservingIdentityNodeTracks)
          Optimise all of this skeleton's animations.
 void removeAllLinkedSkeletonAnimationSources()
           
 void removeAnimation(java.lang.String name)
          Removes an from this skeleton.
 void reset(boolean resetManualBones)
          Resets the position and orientation of all bones in this skeleton to their original binding position.
 void setAnimationState(IAnimationStateSet animSet)
          Changes the state of the skeleton to reflect the application of the passed in collection of animations.
 void setBindingPose()
          Sets the current position / orientation to be the 'binding pose' i.e. the layout in which bones were originally bound to a mesh.
 void setBlendMode(SkeletonAnimationBlendMode state)
          Sets the animation blending mode this skeleton will use.
 
Methods inherited from interface org.ogre4j.IResource
_dirtyState, _fireBackgroundLoadingComplete, _fireBackgroundPreparingComplete, _notifyOrigin, addListener, changeGroupOwnership, escalateLoading, getCreator, getGroup, getHandle, getLoadingState, getName, getOrigin, getSize, getStateCount, isBackgroundLoaded, isLoaded, isLoading, isManuallyLoaded, isPrepared, isReloadable, load, prepare, reload, removeListener, setBackgroundLoaded, touch, unload
 
Methods inherited from interface org.ogre4j.IStringInterface
copyParametersTo, getParamDictionary_const, getParamDictionary, getParameter, getParameters, setParameter, setParameterList
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

createBone

IBone createBone()
Creates a brand new owned by this .


createBone

IBone createBone(int handle)
Creates a brand new owned by this .


createBone

IBone createBone(java.lang.String name)
Creates a brand new owned by this .


createBone

IBone createBone(java.lang.String name,
                 int handle)
Creates a brand new owned by this .


getNumBones

int getNumBones()
Returns the number of bones in this skeleton.


getRootBone

IBone getRootBone()
Gets the root bone of the skeleton: deprecated in favour of getRootBoneIterator.


getRootBoneIterator

void getRootBoneIterator(ISkeleton.IBoneIterator returnValue)

getBoneIterator

void getBoneIterator(ISkeleton.IBoneIterator returnValue)

getBone

IBone getBone(int handle)
Gets a bone by it's handle.


getBone

IBone getBone(java.lang.String name)
Gets a bone by it's name.


hasBone

boolean hasBone(java.lang.String name)
Returns whether this skeleton contains the named bone.


setBindingPose

void setBindingPose()
Sets the current position / orientation to be the 'binding pose' i.e. the layout in which bones were originally bound to a mesh.


reset

void reset(boolean resetManualBones)
Resets the position and orientation of all bones in this skeleton to their original binding position.


createAnimation

IAnimation createAnimation(java.lang.String name,
                           float length)
Creates a new object for animating this skeleton.


getAnimation

IAnimation getAnimation(java.lang.String name,
                        NativeObjectPointer<ILinkedSkeletonAnimationSource> linker)
Returns the named object.


_getAnimationImpl

IAnimation _getAnimationImpl(java.lang.String name,
                             NativeObjectPointer<ILinkedSkeletonAnimationSource> linker)

hasAnimation

boolean hasAnimation(java.lang.String name)
Returns whether this skeleton contains the named animation.


removeAnimation

void removeAnimation(java.lang.String name)
Removes an from this skeleton.


setAnimationState

void setAnimationState(IAnimationStateSet animSet)
Changes the state of the skeleton to reflect the application of the passed in collection of animations.


_initAnimationState

void _initAnimationState(IAnimationStateSet animSet)
Initialise an animation set suitable for use with this skeleton.


_refreshAnimationState

void _refreshAnimationState(IAnimationStateSet animSet)
Refresh an animation set suitable for use with this skeleton.


_getBoneMatrices

void _getBoneMatrices(IMatrix4 pMatrices)
Populates the passed in array with the bone matrices based on the current position.


getNumAnimations

int getNumAnimations()
Gets the number of animations on this skeleton.


getAnimation

IAnimation getAnimation(int index)
Gets a single animation by index.


getBlendMode

SkeletonAnimationBlendMode getBlendMode()
Gets the animation blending mode which this skeleton will use.


setBlendMode

void setBlendMode(SkeletonAnimationBlendMode state)
Sets the animation blending mode this skeleton will use.


_updateTransforms

void _updateTransforms()

optimiseAllAnimations

void optimiseAllAnimations(boolean preservingIdentityNodeTracks)
Optimise all of this skeleton's animations.


addLinkedSkeletonAnimationSource

void addLinkedSkeletonAnimationSource(java.lang.String skelName,
                                      float scale)
Allows you to use the animations from another object to animate this skeleton. You cannot set up cyclic relationships, e.g. SkeletonA uses SkeletonB's animations, and SkeletonB uses SkeletonA's animations. This is because it would set up a circular dependency which would prevent proper unloading - make one of the skeletons the 'master' in this case.


removeAllLinkedSkeletonAnimationSources

void removeAllLinkedSkeletonAnimationSources()

getLinkedSkeletonAnimationSourceIterator

void getLinkedSkeletonAnimationSourceIterator(ISkeleton.ILinkedSkeletonAnimSourceIterator returnValue)

_notifyManualBonesDirty

void _notifyManualBonesDirty()

_notifyManualBoneStateChange

void _notifyManualBoneStateChange(IBone bone)

getManualBonesDirty

boolean getManualBonesDirty()

hasManualBones

boolean hasManualBones()

_mergeSkeletonAnimations

void _mergeSkeletonAnimations(ISkeleton source,
                              ISkeleton.IBoneHandleMap boneHandleMap,
                              IStringVector animations)
Merge animations from another object into this skeleton.


_buildMapBoneByHandle

void _buildMapBoneByHandle(ISkeleton source,
                           ISkeleton.IBoneHandleMap boneHandleMap)
Build the bone handle map to use with .


_buildMapBoneByName

void _buildMapBoneByName(ISkeleton source,
                         ISkeleton.IBoneHandleMap boneHandleMap)
Build the bone handle map to use with .



Copyright © 2007 netAllied GmbH. All Rights Reserved.