Package com.jme3.animation
Class Animation
java.lang.Object
com.jme3.animation.Animation
- All Implemented Interfaces:
Savable
,JmeCloneable
,Cloneable
Deprecated.
The animation class updates the animation target with the tracks of a given type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Adds a track to this animationclone()
Deprecated.This method creates a clone of the current object.void
cloneFields
(Cloner cloner, Object original) Deprecated.Implemented to perform deep cloning for this object, resolving local cloned references using the specified cloner.cloneForSpatial
(Spatial spat) Deprecated.float
Deprecated.Returns the length in seconds of this animationgetName()
Deprecated.The name of the bone animationTrack[]
Deprecated.Returns the tracks set insetTracks(com.jme3.animation.Track[])
.jmeClone()
Deprecated.Performs a regular shallow clone of the object.void
read
(JmeImporter im) Deprecated.void
removeTrack
(Track track) Deprecated.removes a track from this animationvoid
setLength
(float length) Deprecated.Set the length of the animationvoid
Deprecated.Sets the name of the animationvoid
Deprecated.Set theTrack
s to be used by this animation.toString()
Deprecated.void
write
(JmeExporter ex) Deprecated.
-
Constructor Details
-
Animation
protected Animation()Deprecated.Serialization-only. Do not use. -
Animation
Deprecated.Creates a newAnimation
with the given name and length.- Parameters:
name
- The name of the animation.length
- Length in seconds of the animation.
-
-
Method Details
-
getName
Deprecated.The name of the bone animation- Returns:
- name of the bone animation
-
getLength
public float getLength()Deprecated.Returns the length in seconds of this animation- Returns:
- the length in seconds of this animation
-
setLength
public void setLength(float length) Deprecated.Set the length of the animation- Parameters:
length
- the desired duration (in seconds)
-
setName
Deprecated.Sets the name of the animation- Parameters:
name
- the desired name
-
setTracks
Deprecated.Set theTrack
s to be used by this animation.- Parameters:
tracksArray
- The tracks to set.
-
addTrack
Deprecated.Adds a track to this animation- Parameters:
track
- the track to add
-
removeTrack
Deprecated.removes a track from this animation- Parameters:
track
- the track to remove
-
getTracks
Deprecated.Returns the tracks set insetTracks(com.jme3.animation.Track[])
.- Returns:
- the tracks set previously
-
clone
Deprecated.This method creates a clone of the current object. -
cloneForSpatial
Deprecated.- Parameters:
spat
- the Spatial to clone for- Returns:
- a new instance
-
jmeClone
Deprecated.Description copied from interface:JmeCloneable
Performs a regular shallow clone of the object. Some fields may also be cloned but generally only if they will never be shared with other objects. (For example, local Vector3fs and so on.)This method is separate from the regular clone() method so that objects might still maintain their own regular java clone() semantics (perhaps even using Cloner for those methods). However, because Java's clone() has specific features in the sense of Object's clone() implementation, it's usually best to have some path for subclasses to bypass the public clone() method that might be cloning fields and instead get at the superclass protected clone() methods. For example, through super.jmeClone() or another protected clone method that some base class eventually calls super.clone() in.
- Specified by:
jmeClone
in interfaceJmeCloneable
- Returns:
- a new instance
-
cloneFields
Deprecated.Description copied from interface:JmeCloneable
Implemented to perform deep cloning for this object, resolving local cloned references using the specified cloner. The object can call cloner.clone(fieldValue) to deep clone any of its fields.Note: during normal clone operations the original object will not be needed as the clone has already had all of the fields shallow copied.
- Specified by:
cloneFields
in interfaceJmeCloneable
- Parameters:
cloner
- The cloner that is performing the cloning operation. The cloneFields method can call back into the cloner to make clones of its subordinate fields.original
- The original object from which this object was cloned. This is provided for the very rare case that this object needs to refer to its original for some reason. In general, all of the relevant values should have been transferred during the shallow clone, and this object need only clone what it wants.
-
toString
Deprecated. -
write
Deprecated.- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
Deprecated.- Specified by:
read
in interfaceSavable
- Throws:
IOException
-
AnimClip