Package com.aspose.threed
Class AnimationNode
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.AnimationNode
-
- All Implemented Interfaces:
INamedObject
public class AnimationNode extends A3DObject
Aspose.3D's supports animation hierarchy, each animation can be composed by several animations and animation's key-frame definition.AnimationNode
defines the transformation of a property value over time, for example, animation node can be used to control a node's transformation or otherA3DObject
object's numerical properties.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description AnimationNode()
Initializes a new instance of theAnimationNode
class.AnimationNode(java.lang.String name)
Initializes a new instance of theAnimationNode
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 pointsKeyframeSequence
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-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
AnimationNode
public AnimationNode(java.lang.String name)
Initializes a new instance of theAnimationNode
class.- Parameters:
name
- Name
-
AnimationNode
public AnimationNode()
Initializes a new instance of theAnimationNode
class.
-
-
Method Detail
-
getBindPoints
public java.util.List<BindPoint> getBindPoints()
Gets the current property bind points
-
getSubAnimations
public java.util.List<AnimationNode> getSubAnimations()
Gets the sub-animation nodes under current animations
-
findBindPoint
public BindPoint findBindPoint(java.lang.String name)
Finds the bind point by name.- Parameters:
name
- Bind point's name to find.- Returns:
- The bind point.
-
getBindPoint
public BindPoint getBindPoint(A3DObject target, java.lang.String propName, boolean create)
Gets the animation bind point on given property.- Parameters:
target
- On which object to create the bind point.propName
- The property's name.create
- If set totrue
create the bind point if it's not existing.- Returns:
- The bind point.
-
getKeyframeSequence
public KeyframeSequence getKeyframeSequence(A3DObject target, java.lang.String propName, java.lang.String channelName, boolean create)
Gets the keyframe sequence on given property and channel.- Parameters:
target
- On which instance to create the keyframe sequence.propName
- The property's name.channelName
- The channel name.create
- If set totrue
create the animation sequence if it's not existing.- Returns:
- The keyframe sequence.
-
getKeyframeSequence
public KeyframeSequence getKeyframeSequence(A3DObject target, java.lang.String propName, boolean create)
Gets the keyframe sequence on given property.- Parameters:
target
- On which instance to create the keyframe sequence.propName
- The property's name.create
- If set totrue
, create the sequence if it's not existing.- Returns:
- The keyframe sequence.
-
-