com.aspose.threed

Interfaces

Classes

Enums

Exceptions

Class 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 other A3DObject object's numerical properties.
    • Constructor Detail

      • AnimationNode

        public AnimationNode()
        Initializes a new instance of the AnimationNode class.
      • AnimationNode

        public AnimationNode(String name)
        Initializes a new instance of the AnimationNode class.
        Parameters:
        name - Name
    • Method Detail

      • getCurveMappings

        public List<CurveMapping> getCurveMappings()
        Gets the current curve mappings.
      • getSubAnimations

        public List<AnimationNode> getSubAnimations()
        Gets the sub-animation nodes under current animations
      • findCurveMapping

        public CurveMapping findCurveMapping(String name)
        Finds the curve mapping by name.
        Parameters:
        name - Name.
        Returns:
        The curve mapping.
      • getCurveMapping

        public CurveMapping getCurveMapping(A3DObject target,
                                            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 to true create the curve mapping if it's not existing.
        Returns:
        The curve mapping.
      • getCurve

        public Curve getCurve(A3DObject target,
                              String propName,
                              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 to true create the curve if it's not existing.
        Returns:
        The curve.
      • getCurve

        public Curve getCurve(A3DObject target,
                              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 to true, create the curve if it's not existing.
        Returns:
        The curve.
      • createCurveMapping

        public CurveMapping createCurveMapping(A3DObject obj,
                                               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.