org.ogre4j
Class TransformKeyFrame

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

public class TransformKeyFrame
extends NativeObject
implements ITransformKeyFrame


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  TransformKeyFrame(IAnimationTrack parent, float time)
          Default constructor, you should not call this but use instead.
  TransformKeyFrame(InstancePointer p)
          This constructor is public for internal useage only!
protected TransformKeyFrame(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  TransformKeyFrame(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 IKeyFrame _clone(IAnimationTrack newParent)
          Clone a keyframe (internal use only)
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 IQuaternion getRotation()
          Gets the rotation applied by this keyframe.
 IVector3 getScale()
          Gets the scaling factor applied by this keyframe.
 float getTime()
          Gets the time of this keyframe in the animation sequence.
 IVector3 getTranslate()
          Gets the translation applied by this keyframe.
 void setRotation(IQuaternion rot)
          Sets the rotation applied by this keyframe.
 void setScale(IVector3 scale)
          Sets the scaling factor applied by this keyframe to the animable object at it's time index.
 void setTranslate(IVector3 trans)
          Sets the translation associated with this keyframe.
 
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

TransformKeyFrame

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


TransformKeyFrame

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


TransformKeyFrame

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

TransformKeyFrame

public TransformKeyFrame(IAnimationTrack parent,
                         float time)
Default constructor, you should not call this but use instead.

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

setTranslate

public void setTranslate(IVector3 trans)
Sets the translation associated with this keyframe.

Specified by:
setTranslate in interface ITransformKeyFrame

getTranslate

public IVector3 getTranslate()
Gets the translation applied by this keyframe.

Specified by:
getTranslate in interface ITransformKeyFrame

setScale

public void setScale(IVector3 scale)
Sets the scaling factor applied by this keyframe to the animable object at it's time index.

Specified by:
setScale in interface ITransformKeyFrame

getScale

public IVector3 getScale()
Gets the scaling factor applied by this keyframe.

Specified by:
getScale in interface ITransformKeyFrame

setRotation

public void setRotation(IQuaternion rot)
Sets the rotation applied by this keyframe.

Specified by:
setRotation in interface ITransformKeyFrame

getRotation

public IQuaternion getRotation()
Gets the rotation applied by this keyframe.

Specified by:
getRotation in interface ITransformKeyFrame

_clone

public IKeyFrame _clone(IAnimationTrack newParent)
Clone a keyframe (internal use only)

Specified by:
_clone in interface IKeyFrame
Specified by:
_clone in interface ITransformKeyFrame

getTime

public float getTime()
Gets the time of this keyframe in the animation sequence.

Specified by:
getTime in interface IKeyFrame


Copyright © 2007 netAllied GmbH. All Rights Reserved.