Package com.aspose.threed
Class AnimationNode
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.AnimationNode
-
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.
-
-
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
Modifier and Type Method Description CurveMapping
createCurveMapping(A3DObject obj, java.lang.String propName)
Creates a CurveMapping based on the property data type.CurveMapping
findCurveMapping(java.lang.String name)
Finds the curve mapping by name.Curve
getCurve(A3DObject target, java.lang.String propName, boolean create)
Gets the animation curve on given property.Curve
getCurve(A3DObject target, java.lang.String propName, java.lang.String channelName, boolean create)
Gets the animation curve on given property and channel.CurveMapping
getCurveMapping(A3DObject target, java.lang.String propName, boolean create)
Gets the animation curve mapping on given property.java.util.List<CurveMapping>
getCurveMappings()
Gets the current curve mappings.java.util.List<AnimationNode>
getSubAnimations()
Gets the sub-animation nodes under current animations-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, 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
-
getCurveMappings
public java.util.List<CurveMapping> getCurveMappings()
Gets the current curve mappings.
-
getSubAnimations
public java.util.List<AnimationNode> getSubAnimations()
Gets the sub-animation nodes under current animations
-
findCurveMapping
public CurveMapping findCurveMapping(java.lang.String name)
Finds the curve mapping by name.- Parameters:
name
- Name.- Returns:
- The curve mapping.
-
getCurveMapping
public CurveMapping getCurveMapping(A3DObject target, java.lang.String propName, boolean create)
Gets the animation curve mapping on given property.- Parameters:
target
- On which object to create the curve mapping.propName
- The property's name.create
- If set totrue
create the curve mapping if it's not existing.- Returns:
- The curve mapping.
-
getCurve
public Curve getCurve(A3DObject target, java.lang.String propName, java.lang.String channelName, boolean create)
Gets the animation curve on given property and channel.- Parameters:
target
- On which instance to create the animation curve.propName
- The property's name.channelName
- The channel name.create
- If set totrue
create the curve if it's not existing.- Returns:
- The curve.
-
getCurve
public Curve getCurve(A3DObject target, java.lang.String propName, boolean create)
Gets the animation curve on given property.- Parameters:
target
- On which instance to create the animation curve.propName
- The property's name.create
- If set totrue
, create the curve if it's not existing.- Returns:
- The curve.
-
createCurveMapping
public CurveMapping createCurveMapping(A3DObject obj, java.lang.String propName)
Creates a CurveMapping based on the property data type.- Parameters:
obj
- Object.propName
- Property name.- Returns:
- The curve mapping instance or null if the property is not defined.
-
-