|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.SkeletonInstance
public class SkeletonInstance
| Nested Class Summary | |
|---|---|
protected static class |
SkeletonInstance.TagPointList
|
| Nested classes/interfaces inherited from interface org.ogre4j.ISkeletonInstance |
|---|
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 |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
SkeletonInstance(InstancePointer p)
This constructor is public for internal useage only! |
protected |
SkeletonInstance(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
SkeletonInstance(ISkeletonPtr masterCopy)
Constructor, don't call directly, this will be created automatically when you create an based on a skeletally animated . |
|
SkeletonInstance(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| 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 . |
void |
_dirtyState()
Manually mark the state of this resource as having been changed. |
void |
_fireBackgroundLoadingComplete()
Firing of background loading complete event |
void |
_fireBackgroundPreparingComplete()
Firing of background preparing complete event |
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 |
_notifyOrigin(java.lang.String origin)
|
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. |
void |
addListener(IResource.IListener lis)
Register a listener on this resource. |
void |
changeGroupOwnership(java.lang.String newGroup)
Change the resource group ownership of a . |
static void |
cleanupDictionary()
Cleans up the static 'msDictionary' required to reset , otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the implementers (e.g. ) initializes. |
void |
copyParametersTo(IStringInterface dest)
Method for copying this object's parameters to another object. |
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 . |
ITagPoint |
createTagPointOnBone(IBone bone,
IQuaternion offsetOrientation,
IVector3 offsetPosition)
Creates a ready to be attached to a bone |
void |
delete()
Deletes the corresponding C++ object. |
void |
escalateLoading()
Escalates the loading of a background loaded resource. |
void |
finalize()
|
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. |
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)
|
IResourceManager |
getCreator()
|
java.lang.String |
getGroup()
|
long |
getHandle()
|
void |
getLinkedSkeletonAnimationSourceIterator(ISkeleton.ILinkedSkeletonAnimSourceIterator returnValue)
|
Resource.LoadingState |
getLoadingState()
Returns the current loading state. |
boolean |
getManualBonesDirty()
|
java.lang.String |
getName()
Gets resource name. |
int |
getNumAnimations()
Gets the number of animations on this skeleton. |
int |
getNumBones()
Returns the number of bones in this skeleton. |
java.lang.String |
getOrigin()
Get the origin of this resource, e.g. a script file name. |
IParamDictionary |
getParamDictionary_const()
|
IParamDictionary |
getParamDictionary()
Retrieves the parameter dictionary for this class. |
java.lang.String |
getParameter(java.lang.String name)
Generic parameter retrieval method. |
IParameterList |
getParameters()
Retrieves a list of parameters valid for this object. |
IBone |
getRootBone()
Gets the root bone of the skeleton: deprecated in favour of getRootBoneIterator. |
void |
getRootBoneIterator(ISkeleton.IBoneIterator returnValue)
|
int |
getSize()
Retrieves info about the size of the resource. |
int |
getStateCount()
Returns the number of times this resource has changed state, which generally means the number of times it has been loaded. |
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()
|
boolean |
isBackgroundLoaded()
Returns whether this has been earmarked for background loading. |
boolean |
isLoaded()
Returns true if the has been loaded, false otherwise. |
boolean |
isLoading()
Returns whether the resource is currently in the process of background loading. |
boolean |
isManuallyLoaded()
Is this resource manually loaded? |
boolean |
isPrepared()
Returns true if the has been prepared, false otherwise. |
boolean |
isReloadable()
Returns true if the is reloadable, false otherwise. |
void |
load(boolean backgroundThread)
Loads the resource, if it is not already. |
void |
optimiseAllAnimations(boolean preservingIdentityNodeTracks)
Optimise all of this skeleton's animations. |
void |
prepare()
Prepares the resource for load, if it is not already. |
void |
reload()
Reloads the resource, if it is already loaded. |
void |
removeAllLinkedSkeletonAnimationSources()
|
void |
removeAnimation(java.lang.String name)
Removes an from this skeleton. |
void |
removeListener(IResource.IListener lis)
Remove a listener on this resource. |
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 |
setBackgroundLoaded(boolean bl)
Tells the resource whether it is background loaded or not. |
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. |
boolean |
setParameter(java.lang.String name,
java.lang.String value)
Generic parameter setting method. |
void |
setParameterList(INameValuePairList paramList)
Generic multiple parameter setting method. |
void |
touch()
'Touches' the resource to indicate it has been used. |
void |
unload()
Unloads the resource; this is not permanent, the resource can be reloaded later if required. |
| 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 |
|---|
public SkeletonInstance(InstancePointer p)
protected SkeletonInstance(InstancePointer p,
boolean remote)
public SkeletonInstance(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public SkeletonInstance(ISkeletonPtr masterCopy)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic int getNumAnimations()
getNumAnimations in interface ISkeletongetNumAnimations in interface ISkeletonInstancepublic IAnimation getAnimation(int index)
getAnimation in interface ISkeletongetAnimation in interface ISkeletonInstance
public IAnimation _getAnimationImpl(java.lang.String name,
NativeObjectPointer<ILinkedSkeletonAnimationSource> linker)
_getAnimationImpl in interface ISkeleton_getAnimationImpl in interface ISkeletonInstance
public IAnimation createAnimation(java.lang.String name,
float length)
createAnimation in interface ISkeletoncreateAnimation in interface ISkeletonInstance
public IAnimation getAnimation(java.lang.String name,
NativeObjectPointer<ILinkedSkeletonAnimationSource> linker)
getAnimation in interface ISkeletongetAnimation in interface ISkeletonInstancepublic void removeAnimation(java.lang.String name)
removeAnimation in interface ISkeletonremoveAnimation in interface ISkeletonInstance
public ITagPoint createTagPointOnBone(IBone bone,
IQuaternion offsetOrientation,
IVector3 offsetPosition)
createTagPointOnBone in interface ISkeletonInstancepublic void freeTagPoint(ITagPoint tagPoint)
freeTagPoint in interface ISkeletonInstance
public void addLinkedSkeletonAnimationSource(java.lang.String skelName,
float scale)
ISkeleton
addLinkedSkeletonAnimationSource in interface ISkeletonaddLinkedSkeletonAnimationSource in interface ISkeletonInstancepublic void removeAllLinkedSkeletonAnimationSources()
removeAllLinkedSkeletonAnimationSources in interface ISkeletonremoveAllLinkedSkeletonAnimationSources in interface ISkeletonInstancepublic void getLinkedSkeletonAnimationSourceIterator(ISkeleton.ILinkedSkeletonAnimSourceIterator returnValue)
getLinkedSkeletonAnimationSourceIterator in interface ISkeletongetLinkedSkeletonAnimationSourceIterator in interface ISkeletonInstancepublic void _initAnimationState(IAnimationStateSet animSet)
ISkeleton
_initAnimationState in interface ISkeleton_initAnimationState in interface ISkeletonInstancepublic void _refreshAnimationState(IAnimationStateSet animSet)
ISkeleton
_refreshAnimationState in interface ISkeleton_refreshAnimationState in interface ISkeletonInstancepublic java.lang.String getName()
IResource
getName in interface IResourcegetName in interface ISkeletonInstancepublic long getHandle()
getHandle in interface IResourcegetHandle in interface ISkeletonInstancepublic java.lang.String getGroup()
getGroup in interface IResourcegetGroup in interface ISkeletonInstancepublic IBone createBone()
createBone in interface ISkeletonpublic IBone createBone(int handle)
createBone in interface ISkeletonpublic IBone createBone(java.lang.String name)
createBone in interface ISkeleton
public IBone createBone(java.lang.String name,
int handle)
createBone in interface ISkeletonpublic int getNumBones()
getNumBones in interface ISkeletonpublic IBone getRootBone()
getRootBone in interface ISkeletonpublic void getRootBoneIterator(ISkeleton.IBoneIterator returnValue)
getRootBoneIterator in interface ISkeletonpublic void getBoneIterator(ISkeleton.IBoneIterator returnValue)
getBoneIterator in interface ISkeletonpublic IBone getBone(int handle)
getBone in interface ISkeletonpublic IBone getBone(java.lang.String name)
getBone in interface ISkeletonpublic boolean hasBone(java.lang.String name)
hasBone in interface ISkeletonpublic void setBindingPose()
setBindingPose in interface ISkeletonpublic void reset(boolean resetManualBones)
reset in interface ISkeletonpublic boolean hasAnimation(java.lang.String name)
hasAnimation in interface ISkeletonpublic void setAnimationState(IAnimationStateSet animSet)
setAnimationState in interface ISkeletonpublic void _getBoneMatrices(IMatrix4 pMatrices)
_getBoneMatrices in interface ISkeletonpublic SkeletonAnimationBlendMode getBlendMode()
getBlendMode in interface ISkeletonpublic void setBlendMode(SkeletonAnimationBlendMode state)
setBlendMode in interface ISkeletonpublic void _updateTransforms()
_updateTransforms in interface ISkeletonpublic void optimiseAllAnimations(boolean preservingIdentityNodeTracks)
optimiseAllAnimations in interface ISkeletonpublic void _notifyManualBonesDirty()
_notifyManualBonesDirty in interface ISkeletonpublic void _notifyManualBoneStateChange(IBone bone)
_notifyManualBoneStateChange in interface ISkeletonpublic boolean getManualBonesDirty()
getManualBonesDirty in interface ISkeletonpublic boolean hasManualBones()
hasManualBones in interface ISkeleton
public void _mergeSkeletonAnimations(ISkeleton source,
ISkeleton.IBoneHandleMap boneHandleMap,
IStringVector animations)
_mergeSkeletonAnimations in interface ISkeleton
public void _buildMapBoneByHandle(ISkeleton source,
ISkeleton.IBoneHandleMap boneHandleMap)
_buildMapBoneByHandle in interface ISkeleton
public void _buildMapBoneByName(ISkeleton source,
ISkeleton.IBoneHandleMap boneHandleMap)
_buildMapBoneByName in interface ISkeletonpublic void prepare()
prepare in interface IResourcepublic void load(boolean backgroundThread)
load in interface IResourcepublic void reload()
reload in interface IResourcepublic boolean isReloadable()
isReloadable in interface IResourcepublic boolean isManuallyLoaded()
isManuallyLoaded in interface IResourcepublic void unload()
unload in interface IResourcepublic int getSize()
getSize in interface IResourcepublic void touch()
touch in interface IResourcepublic boolean isPrepared()
isPrepared in interface IResourcepublic boolean isLoaded()
isLoaded in interface IResourcepublic boolean isLoading()
isLoading in interface IResourcepublic Resource.LoadingState getLoadingState()
getLoadingState in interface IResourcepublic boolean isBackgroundLoaded()
isBackgroundLoaded in interface IResourcepublic void setBackgroundLoaded(boolean bl)
setBackgroundLoaded in interface IResourcepublic void escalateLoading()
escalateLoading in interface IResourcepublic void addListener(IResource.IListener lis)
addListener in interface IResourcepublic void removeListener(IResource.IListener lis)
removeListener in interface IResourcepublic void changeGroupOwnership(java.lang.String newGroup)
changeGroupOwnership in interface IResourcepublic IResourceManager getCreator()
getCreator in interface IResourcepublic java.lang.String getOrigin()
getOrigin in interface IResourcepublic void _notifyOrigin(java.lang.String origin)
_notifyOrigin in interface IResourcepublic int getStateCount()
getStateCount in interface IResourcepublic void _dirtyState()
_dirtyState in interface IResourcepublic void _fireBackgroundLoadingComplete()
_fireBackgroundLoadingComplete in interface IResourcepublic void _fireBackgroundPreparingComplete()
_fireBackgroundPreparingComplete in interface IResourcepublic IParamDictionary getParamDictionary()
getParamDictionary in interface IStringInterfacepublic IParamDictionary getParamDictionary_const()
getParamDictionary_const in interface IStringInterfacepublic IParameterList getParameters()
getParameters in interface IStringInterface
public boolean setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface IStringInterfacepublic void setParameterList(INameValuePairList paramList)
setParameterList in interface IStringInterfacepublic java.lang.String getParameter(java.lang.String name)
getParameter in interface IStringInterfacepublic void copyParametersTo(IStringInterface dest)
copyParametersTo in interface IStringInterfacepublic static void cleanupDictionary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||