org.ogre4j
Interface ISkeletonInstance

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

public interface ISkeletonInstance
extends INativeObject, ISkeleton


Nested Class Summary
static interface ISkeletonInstance.ITagPointList
           
 
Nested classes/interfaces inherited from interface org.ogre4j.ISkeleton
ISkeleton.IAnimationList, ISkeleton.IBoneHandleMap, ISkeleton.IBoneIterator, ISkeleton.IBoneList, ISkeleton.IBoneListByName, ISkeleton.IBoneSet, ISkeleton.ILinkedSkeletonAnimSourceIterator, ISkeleton.ILinkedSkeletonAnimSourceList
 
Nested classes/interfaces inherited from interface org.ogre4j.IResource
IResource.IListener, IResource.IListenerList
 
Method Summary
 IAnimation _getAnimationImpl(java.lang.String name, NativeObjectPointer<ILinkedSkeletonAnimationSource> linker)
           
 void _initAnimationState(IAnimationStateSet animSet)
          Initialise an animation set suitable for use with this skeleton.
 void _refreshAnimationState(IAnimationStateSet animSet)
          Refresh an animation set suitable for use with this skeleton.
 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.
 ITagPoint createTagPointOnBone(IBone bone, IQuaternion offsetOrientation, IVector3 offsetPosition)
          Creates a ready to be attached to a bone
 void freeTagPoint(ITagPoint tagPoint)
          Frees a that already attached to a bone
 IAnimation getAnimation(int index)
          Gets a single animation by index.
 IAnimation getAnimation(java.lang.String name, NativeObjectPointer<ILinkedSkeletonAnimationSource> linker)
          Returns the named object.
 java.lang.String getGroup()
           
 long getHandle()
           
 void getLinkedSkeletonAnimationSourceIterator(ISkeleton.ILinkedSkeletonAnimSourceIterator returnValue)
           
 java.lang.String getName()
          Gets resource name.
 int getNumAnimations()
          Gets the number of animations on this skeleton.
 void removeAllLinkedSkeletonAnimationSources()
           
 void removeAnimation(java.lang.String name)
          Removes an from this skeleton.
 
Methods inherited from interface org.ogre4j.ISkeleton
_buildMapBoneByHandle, _buildMapBoneByName, _getBoneMatrices, _mergeSkeletonAnimations, _notifyManualBonesDirty, _notifyManualBoneStateChange, _updateTransforms, createBone, createBone, createBone, createBone, getBlendMode, getBone, getBone, getBoneIterator, getManualBonesDirty, getNumBones, getRootBone, getRootBoneIterator, hasAnimation, hasBone, hasManualBones, optimiseAllAnimations, reset, setAnimationState, setBindingPose, setBlendMode
 
Methods inherited from interface org.ogre4j.IResource
_dirtyState, _fireBackgroundLoadingComplete, _fireBackgroundPreparingComplete, _notifyOrigin, addListener, changeGroupOwnership, escalateLoading, getCreator, getLoadingState, 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

getNumAnimations

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

Specified by:
getNumAnimations in interface ISkeleton

getAnimation

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

Specified by:
getAnimation in interface ISkeleton

_getAnimationImpl

IAnimation _getAnimationImpl(java.lang.String name,
                             NativeObjectPointer<ILinkedSkeletonAnimationSource> linker)
Specified by:
_getAnimationImpl in interface ISkeleton

createAnimation

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

Specified by:
createAnimation in interface ISkeleton

getAnimation

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

Specified by:
getAnimation in interface ISkeleton

removeAnimation

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

Specified by:
removeAnimation in interface ISkeleton

createTagPointOnBone

ITagPoint createTagPointOnBone(IBone bone,
                               IQuaternion offsetOrientation,
                               IVector3 offsetPosition)
Creates a ready to be attached to a bone


freeTagPoint

void freeTagPoint(ITagPoint tagPoint)
Frees a that already attached to a bone


addLinkedSkeletonAnimationSource

void addLinkedSkeletonAnimationSource(java.lang.String skelName,
                                      float scale)
Description copied from interface: ISkeleton
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.

Specified by:
addLinkedSkeletonAnimationSource in interface ISkeleton

removeAllLinkedSkeletonAnimationSources

void removeAllLinkedSkeletonAnimationSources()
Specified by:
removeAllLinkedSkeletonAnimationSources in interface ISkeleton

getLinkedSkeletonAnimationSourceIterator

void getLinkedSkeletonAnimationSourceIterator(ISkeleton.ILinkedSkeletonAnimSourceIterator returnValue)
Specified by:
getLinkedSkeletonAnimationSourceIterator in interface ISkeleton

_initAnimationState

void _initAnimationState(IAnimationStateSet animSet)
Description copied from interface: ISkeleton
Initialise an animation set suitable for use with this skeleton.

Specified by:
_initAnimationState in interface ISkeleton

_refreshAnimationState

void _refreshAnimationState(IAnimationStateSet animSet)
Description copied from interface: ISkeleton
Refresh an animation set suitable for use with this skeleton.

Specified by:
_refreshAnimationState in interface ISkeleton

getName

java.lang.String getName()
Description copied from interface: IResource
Gets resource name.

Specified by:
getName in interface IResource

getHandle

long getHandle()
Specified by:
getHandle in interface IResource

getGroup

java.lang.String getGroup()
Specified by:
getGroup in interface IResource


Copyright © 2007 netAllied GmbH. All Rights Reserved.