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.Constructor and Description |
---|
AnimationNode()
Initializes a new instance of the
AnimationNode class. |
AnimationNode(String name)
Initializes a new instance of the
AnimationNode class. |
Modifier and Type | Method and Description |
---|---|
CurveMapping |
createCurveMapping(A3DObject obj,
String propName)
Creates a CurveMapping based on the property data type.
|
CurveMapping |
findCurveMapping(String name)
Finds the curve mapping by name.
|
Curve |
getCurve(A3DObject target,
String propName,
boolean create)
Gets the animation curve on given property.
|
Curve |
getCurve(A3DObject target,
String propName,
String channelName,
boolean create)
Gets the animation curve on given property and channel.
|
CurveMapping |
getCurveMapping(A3DObject target,
String propName,
boolean create)
Gets the animation curve mapping on given property.
|
List<CurveMapping> |
getCurveMappings()
Gets the current curve mappings.
|
List<AnimationNode> |
getSubAnimations()
Gets the sub-animation nodes under current animations
|
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
public AnimationNode(String name)
AnimationNode
class.name
- Namepublic AnimationNode()
AnimationNode
class.public List<CurveMapping> getCurveMappings()
public List<AnimationNode> getSubAnimations()
public CurveMapping findCurveMapping(String name)
name
- Name.public CurveMapping getCurveMapping(A3DObject target, String propName, boolean create)
target
- On which object to create the curve mapping.propName
- The property's name.create
- If set to true
create the curve mapping if it's not existing.public Curve getCurve(A3DObject target, String propName, String channelName, boolean create)
target
- On which instance to create the animation curve.propName
- The property's name.channelName
- The channel name.create
- If set to true
create the curve if it's not existing.public Curve getCurve(A3DObject target, String propName, boolean create)
target
- On which instance to create the animation curve.propName
- The property's name.create
- If set to true
, create the curve if it's not existing.public CurveMapping createCurveMapping(A3DObject obj, String propName)
obj
- Object.propName
- Property name.Copyright © 2018. All rights reserved.