org.ogre4j
Class AnimationStateSet

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

public class AnimationStateSet
extends NativeObject
implements IAnimationStateSet


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  AnimationStateSet()
           
  AnimationStateSet(IAnimationStateSet rhs)
           
  AnimationStateSet(InstancePointer p)
          This constructor is public for internal useage only!
protected AnimationStateSet(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  AnimationStateSet(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _notifyAnimationStateEnabled(IAnimationState target, boolean enabled)
           
 void _notifyDirty()
           
 void copyMatchingState(IAnimationStateSet target)
           
 IAnimationState createAnimationState(java.lang.String animName, float timePos, float length, float weight, boolean enabled)
          Create a new instance.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 IAnimationState getAnimationState(java.lang.String name)
           
 void getAnimationStateIterator_const(IConstAnimationStateIterator returnValue)
           
 void getAnimationStateIterator(IAnimationStateIterator returnValue)
          Get an iterator over all the animation states in this set.
 long getDirtyFrameNumber()
           
 void getEnabledAnimationStateIterator(IConstEnabledAnimationStateIterator returnValue)
          Get an iterator over all the enabled animation states in this set
 boolean hasAnimationState(java.lang.String name)
           
 boolean hasEnabledAnimationState()
           
 void removeAllAnimationStates()
           
 void removeAnimationState(java.lang.String name)
           
 
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

AnimationStateSet

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


AnimationStateSet

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


AnimationStateSet

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

AnimationStateSet

public AnimationStateSet()

AnimationStateSet

public AnimationStateSet(IAnimationStateSet rhs)
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

createAnimationState

public IAnimationState createAnimationState(java.lang.String animName,
                                            float timePos,
                                            float length,
                                            float weight,
                                            boolean enabled)
Create a new instance.

Specified by:
createAnimationState in interface IAnimationStateSet

getAnimationState

public IAnimationState getAnimationState(java.lang.String name)
Specified by:
getAnimationState in interface IAnimationStateSet

hasAnimationState

public boolean hasAnimationState(java.lang.String name)
Specified by:
hasAnimationState in interface IAnimationStateSet

removeAnimationState

public void removeAnimationState(java.lang.String name)
Specified by:
removeAnimationState in interface IAnimationStateSet

removeAllAnimationStates

public void removeAllAnimationStates()
Specified by:
removeAllAnimationStates in interface IAnimationStateSet

getAnimationStateIterator

public void getAnimationStateIterator(IAnimationStateIterator returnValue)
Get an iterator over all the animation states in this set.

Specified by:
getAnimationStateIterator in interface IAnimationStateSet

getAnimationStateIterator_const

public void getAnimationStateIterator_const(IConstAnimationStateIterator returnValue)
Specified by:
getAnimationStateIterator_const in interface IAnimationStateSet

copyMatchingState

public void copyMatchingState(IAnimationStateSet target)
Specified by:
copyMatchingState in interface IAnimationStateSet

_notifyDirty

public void _notifyDirty()
Specified by:
_notifyDirty in interface IAnimationStateSet

getDirtyFrameNumber

public long getDirtyFrameNumber()
Specified by:
getDirtyFrameNumber in interface IAnimationStateSet

_notifyAnimationStateEnabled

public void _notifyAnimationStateEnabled(IAnimationState target,
                                         boolean enabled)
Specified by:
_notifyAnimationStateEnabled in interface IAnimationStateSet

hasEnabledAnimationState

public boolean hasEnabledAnimationState()
Specified by:
hasEnabledAnimationState in interface IAnimationStateSet

getEnabledAnimationStateIterator

public void getEnabledAnimationStateIterator(IConstEnabledAnimationStateIterator returnValue)
Get an iterator over all the enabled animation states in this set

Specified by:
getEnabledAnimationStateIterator in interface IAnimationStateSet


Copyright © 2007 netAllied GmbH. All Rights Reserved.