Class ExclusiveClipSource
java.lang.Object
com.ardor3d.extension.animation.skeletal.blendtree.ClipSource
com.ardor3d.extension.animation.skeletal.blendtree.ExclusiveClipSource
- All Implemented Interfaces:
BlendTreeSource
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.
-
Field Summary
Fields inherited from class com.ardor3d.extension.animation.skeletal.blendtree.ClipSource
_clip
-
Constructor Summary
ConstructorDescriptionConstruct a new source.ExclusiveClipSource
(AnimationClip clip, AnimationManager manager) Construct a new source using the given clip and manager. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDisabledChannels
(String... disabledChannels) void
addDisabledJoints
(int... disabledJoints) void
Clears all disabled channels/joints from this source.getSourceData
(AnimationManager manager) Methods inherited from class com.ardor3d.extension.animation.skeletal.blendtree.ClipSource
getClip, isActive, resetClips, setClip, setTime
-
Constructor Details
-
ExclusiveClipSource
public ExclusiveClipSource()Construct a new source. Clip and Manager must be set separately before use. -
ExclusiveClipSource
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
- 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
- Returns:
- a COPY of the disabled channel list.
-
getSourceData
- Specified by:
getSourceData
in interfaceBlendTreeSource
- Overrides:
getSourceData
in classClipSource
- Parameters:
manager
- the manager this is being called from.- Returns:
- a map of source information from the blend tree node.
-