public class AnimationNode extends A3DObject
AnimationNode
defines the transformation of a property value over time, for example, animation node can be used to control a node's transformation or other A3DObject
object's numerical properties.name, properties
Constructor and Description |
---|
AnimationNode()
Initializes a new instance of the
AnimationNode class. |
AnimationNode(java.lang.String name)
Initializes a new instance of the
AnimationNode class. |
Modifier and Type | Method and Description |
---|---|
BindPoint |
createBindPoint(A3DObject obj,
java.lang.String propName)
Creates a BindPoint based on the property data type.
|
BindPoint |
findBindPoint(java.lang.String name)
Finds the bind point by name.
|
BindPoint |
getBindPoint(A3DObject target,
java.lang.String propName,
boolean create)
Gets the animation bind point on given property.
|
java.util.List<BindPoint> |
getBindPoints()
Gets the current property bind points
|
KeyframeSequence |
getKeyframeSequence(A3DObject target,
java.lang.String propName,
boolean create)
Gets the keyframe sequence on given property.
|
KeyframeSequence |
getKeyframeSequence(A3DObject target,
java.lang.String propName,
java.lang.String channelName,
boolean create)
Gets the keyframe sequence on given property and channel.
|
java.util.List<AnimationNode> |
getSubAnimations()
Gets the sub-animation nodes under current animations
|
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
public AnimationNode(java.lang.String name)
AnimationNode
class.name
- Namepublic AnimationNode()
AnimationNode
class.public java.util.List<BindPoint> getBindPoints()
public java.util.List<AnimationNode> getSubAnimations()
public BindPoint findBindPoint(java.lang.String name)
name
- Bind point's name to find.public BindPoint getBindPoint(A3DObject target, java.lang.String propName, boolean create)
target
- On which object to create the bind point.propName
- The property's name.create
- If set to true
create the bind point if it's not existing.public KeyframeSequence getKeyframeSequence(A3DObject target, java.lang.String propName, java.lang.String channelName, boolean create)
target
- On which instance to create the keyframe sequence.propName
- The property's name.channelName
- The channel name.create
- If set to true
create the animation sequence if it's not existing.public KeyframeSequence getKeyframeSequence(A3DObject target, java.lang.String propName, boolean create)
target
- On which instance to create the keyframe sequence.propName
- The property's name.create
- If set to true
, create the sequence if it's not existing.