Class BindPoint

  • All Implemented Interfaces:
    INamedObject

    public class BindPoint
    extends A3DObject
    A BindPoint is usually created on an object's property, some property types contains multiple component fields(like a Vector3 field), BindPoint will generate channel for each component field and connects the field to one or more keyframe sequence instance(s) through the channels.
    • Constructor Detail

      • BindPoint

        public BindPoint​(Scene scene,
                         Property prop)
        Initializes a new instance of the BindPoint class.
        Parameters:
        scene - The scene that contains the animation.
        prop - Property.
    • Method Detail

      • getProperty

        public Property getProperty()
        Gets the property associated with the CurveMapping
      • setProperty

        public void setProperty​(Property value)
        Gets the property associated with the CurveMapping
        Parameters:
        value - New value
      • getKeyframeSequence

        public KeyframeSequence getKeyframeSequence​(java.lang.String channelName)
        Gets the first keyframe sequence in specified channel
        Parameters:
        channelName - The channel name to find
        Returns:
        First keyframe sequence with the channel name
      • getKeyframeSequences

        public java.util.List<KeyframeSequence> getKeyframeSequences​(java.lang.String channelName)
        Gets all keyframe sequences in specified channel
        Parameters:
        channelName - The channel name to find
        Returns:
        Keyframe sequence list with the channel name
      • createKeyframeSequence

        public KeyframeSequence createKeyframeSequence​(java.lang.String name)
        Creates a new curve and connects it to the first channel of the curve mapping
        Parameters:
        name - The new sequence's name.
        Returns:
        The keyframe sequence.
      • bindKeyframeSequence

        public void bindKeyframeSequence​(java.lang.String channelName,
                                         KeyframeSequence sequence)
        Bind the keyframe sequence to specified channel
        Parameters:
        channelName - Which channel the keyframe sequence will be bound to
        sequence - The keyframe sequence to bind
      • getChannel

        public AnimationChannel getChannel​(java.lang.String channelName)
        Gets channel by given name
        Parameters:
        channelName - The channel name to find
        Returns:
        Channel with the name
      • get

        public AnimationChannel get​(java.lang.String channelName)
        Gets channel by given name
        Parameters:
        channelName - Channel name
        Returns:
        Animation channel
      • addChannel

        public boolean addChannel​(java.lang.String name,
                                  java.lang.Object value)
        Adds the specified channel property.
        Parameters:
        name - Name.
        value - Value.
        Returns:
        true, if channel was added, false otherwise.
      • addChannel

        public boolean addChannel​(java.lang.String name,
                                  java.lang.Class<?> type,
                                  java.lang.Object value)
        Adds the specified channel property.
        Parameters:
        name - Name.
        type - Type.
        value - Value.
        Returns:
        true, if channel was added, false otherwise.
      • resetChannels

        public void resetChannels()
        Empties the property channels of this animation curve mapping.
      • getChannelsCount

        public int getChannelsCount()
        Gets the total number of property channels defined in this animation curve mapping.
        Returns:
        The channels count.
      • toString

        public java.lang.String toString()
        Formats object to string
        Overrides:
        toString in class java.lang.Object
        Returns:
        Object string