public class BlenderAction
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
BlenderAction(java.lang.String name,
int fps) |
Modifier and Type | Method and Description |
---|---|
BlenderAction |
clone() |
float |
getAnimationTime() |
java.lang.String |
getName() |
int |
getTracksCount() |
boolean |
hasTrackName(java.lang.String name)
Determines if the current action has a track of a given name.
|
void |
removeTracksThatAreNotInTheCollection(java.util.Collection<java.lang.String> trackNames) |
java.lang.String |
toString() |
SpatialTrack[] |
toTracks(Node node,
BlenderContext blenderContext)
Converts the action into JME spatial animation tracks.
|
BoneTrack[] |
toTracks(Skeleton skeleton,
BlenderContext blenderContext)
Converts the action into JME bone animation tracks.
|
public void removeTracksThatAreNotInTheCollection(java.util.Collection<java.lang.String> trackNames)
public BlenderAction clone()
clone
in class java.lang.Object
public SpatialTrack[] toTracks(Node node, BlenderContext blenderContext)
node
- the node that will be animatedpublic BoneTrack[] toTracks(Skeleton skeleton, BlenderContext blenderContext)
skeleton
- the skeleton that will be animatedpublic java.lang.String getName()
public float getAnimationTime()
public boolean hasTrackName(java.lang.String name)
name
- the name of the trackpublic int getTracksCount()
public java.lang.String toString()
toString
in class java.lang.Object