Class ExclusiveClipSource

java.lang.Object
com.ardor3d.extension.animation.skeletal.blendtree.ClipSource
com.ardor3d.extension.animation.skeletal.blendtree.ExclusiveClipSource
All Implemented Interfaces:
BlendTreeSource

public class ExclusiveClipSource extends ClipSource
Similar to a ClipSource, this class samples and returns values from the channels of an AnimationClip. ExclusiveClipSource further filters this result set, excluding a given set of channels by name.
  • Constructor Details

    • ExclusiveClipSource

      public ExclusiveClipSource()
      Construct a new source. Clip and Manager must be set separately before use.
    • ExclusiveClipSource

      public ExclusiveClipSource(AnimationClip clip, AnimationManager manager)
      Construct a new source using the given clip and manager.
      Parameters:
      clip - our source clip.
      manager - the manager used to track clip state.
  • Method Details

    • clearDisabled

      public void clearDisabled()
      Clears all disabled channels/joints from this source.
    • addDisabledChannels

      public void addDisabledChannels(String... disabledChannels)
      Parameters:
      disabledChannels - a list of channel names to exclude when returning clip results.
    • addDisabledJoints

      public void addDisabledJoints(int... disabledJoints)
      Parameters:
      disabledJoints - a list of joint indices to exclude when returning clip results. These are converted to channel names and stored in our disabledChannels list.
    • getDisabledChannels

      public List<String> getDisabledChannels()
      Returns:
      a COPY of the disabled channel list.
    • getSourceData

      public Map<String,? extends Object> getSourceData(AnimationManager manager)
      Specified by:
      getSourceData in interface BlendTreeSource
      Overrides:
      getSourceData in class ClipSource
      Parameters:
      manager - the manager this is being called from.
      Returns:
      a map of source information from the blend tree node.