|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.AnimationState
public class AnimationState
| Nested Class Summary | |
|---|---|
static class |
AnimationState.BoneBlendMask
|
| Nested classes/interfaces inherited from interface org.ogre4j.IAnimationState |
|---|
IAnimationState.IBoneBlendMask |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
AnimationState(IAnimationStateSet parent,
IAnimationState rhs)
|
|
AnimationState(InstancePointer p)
This constructor is public for internal useage only! |
protected |
AnimationState(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
AnimationState(java.lang.String animName,
IAnimationStateSet parent,
float timePos,
float length,
float weight,
boolean enabled)
|
|
AnimationState(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_setBlendMask(IAnimationState.IBoneBlendMask blendMask)
|
void |
_setBlendMaskData(FloatPointer blendMaskData)
|
void |
addTime(float offset)
Modifies the time position, adjusting for animation length |
void |
copyStateFrom(IAnimationState animState)
Copies the states from another animation state, preserving the animation name (unlike operator=) but copying everything else. |
void |
createBlendMask(int blendMaskSizeHint,
float initialWeight)
In addition to assigning a single weight value to a skeletal animation, it may be desirable to assign animation weights per bone using a 'blend mask'. |
void |
delete()
Deletes the corresponding C++ object. |
void |
destroyBlendMask()
|
void |
finalize()
|
java.lang.String |
getAnimationName()
|
IAnimationState.IBoneBlendMask |
getBlendMask()
|
float |
getBlendMaskEntry(int boneHandle)
|
boolean |
getEnabled()
|
float |
getLength()
|
boolean |
getLoop()
|
IAnimationStateSet |
getParent()
|
float |
getTimePosition()
|
float |
getWeight()
|
boolean |
hasBlendMask()
|
boolean |
hasEnded()
|
boolean |
operatorEqual(IAnimationState rhs)
|
boolean |
operatorNotEqual(IAnimationState rhs)
|
void |
setBlendMaskEntry(int boneHandle,
float weight)
|
void |
setEnabled(boolean enabled)
|
void |
setLength(float len)
|
void |
setLoop(boolean loop)
Sets whether or not an animation loops at the start and end of the animation if the time continues to be altered. |
void |
setTimePosition(float timePos)
|
void |
setWeight(float weight)
|
| 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 AnimationState(InstancePointer p)
protected AnimationState(InstancePointer p,
boolean remote)
public AnimationState(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public AnimationState(java.lang.String animName,
IAnimationStateSet parent,
float timePos,
float length,
float weight,
boolean enabled)
public AnimationState(IAnimationStateSet parent,
IAnimationState rhs)
| 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 java.lang.String getAnimationName()
getAnimationName in interface IAnimationStatepublic float getTimePosition()
getTimePosition in interface IAnimationStatepublic void setTimePosition(float timePos)
setTimePosition in interface IAnimationStatepublic float getLength()
getLength in interface IAnimationStatepublic void setLength(float len)
setLength in interface IAnimationStatepublic float getWeight()
getWeight in interface IAnimationStatepublic void setWeight(float weight)
setWeight in interface IAnimationStatepublic void addTime(float offset)
addTime in interface IAnimationStatepublic boolean hasEnded()
hasEnded in interface IAnimationStatepublic boolean getEnabled()
getEnabled in interface IAnimationStatepublic void setEnabled(boolean enabled)
setEnabled in interface IAnimationStatepublic boolean operatorEqual(IAnimationState rhs)
operatorEqual in interface IAnimationStatepublic boolean operatorNotEqual(IAnimationState rhs)
operatorNotEqual in interface IAnimationStatepublic void setLoop(boolean loop)
setLoop in interface IAnimationStatepublic boolean getLoop()
getLoop in interface IAnimationStatepublic void copyStateFrom(IAnimationState animState)
copyStateFrom in interface IAnimationStatepublic IAnimationStateSet getParent()
getParent in interface IAnimationState
public void createBlendMask(int blendMaskSizeHint,
float initialWeight)
createBlendMask in interface IAnimationStatepublic void destroyBlendMask()
destroyBlendMask in interface IAnimationStatepublic void _setBlendMaskData(FloatPointer blendMaskData)
_setBlendMaskData in interface IAnimationStatepublic void _setBlendMask(IAnimationState.IBoneBlendMask blendMask)
_setBlendMask in interface IAnimationStatepublic IAnimationState.IBoneBlendMask getBlendMask()
getBlendMask in interface IAnimationStatepublic boolean hasBlendMask()
hasBlendMask in interface IAnimationState
public void setBlendMaskEntry(int boneHandle,
float weight)
setBlendMaskEntry in interface IAnimationStatepublic float getBlendMaskEntry(int boneHandle)
getBlendMaskEntry in interface IAnimationState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||