Class AnimationClip


  • public class AnimationClip
    extends A3DObject
    The Animation clip is a collection of animations. The scene can have one or more animation clips.
    • Method Summary

      Modifier and Type Method Description
      AnimationNode createAnimationNode​(java.lang.String nodeName)
      A shorthand function to create and register the animation node on current clip.
      java.util.List<AnimationNode> getAnimations()
      Gets the animations contained inside the clip.
      java.lang.String getDescription()
      Gets the description of this animation clip
      double getStart()
      Gets the time in seconds of the beginning of the clip.
      double getStop()
      Gets the time in seconds of the end of the clip.
      void setDescription​(java.lang.String value)
      Sets the description of this animation clip
      void setStart​(double value)
      Sets the time in seconds of the beginning of the clip.
      void setStop​(double value)
      Sets the time in seconds of the end of the clip.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnimationClip

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

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

      • getAnimations

        public java.util.List<AnimationNode> getAnimations()
        Gets the animations contained inside the clip.
      • getDescription

        public java.lang.String getDescription()
        Gets the description of this animation clip
      • setDescription

        public void setDescription​(java.lang.String value)
        Sets the description of this animation clip
        Parameters:
        value - New value
      • getStart

        public double getStart()
        Gets the time in seconds of the beginning of the clip.
      • setStart

        public void setStart​(double value)
        Sets the time in seconds of the beginning of the clip.
        Parameters:
        value - New value
      • getStop

        public double getStop()
        Gets the time in seconds of the end of the clip.
      • setStop

        public void setStop​(double value)
        Sets the time in seconds of the end of the clip.
        Parameters:
        value - New value
      • createAnimationNode

        public AnimationNode createAnimationNode​(java.lang.String nodeName)
        A shorthand function to create and register the animation node on current clip.
        Parameters:
        nodeName - New animation node's name