Package com.aspose.threed
Class AnimationChannel
- java.lang.Object
-
- com.aspose.threed.AnimationChannel
-
- All Implemented Interfaces:
java.lang.Iterable<KeyframeSequence>
public class AnimationChannel extends java.lang.Object implements java.lang.Iterable<KeyframeSequence>
A channel maps property's component field to a set of keyframe sequences
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKeyframeSequence(KeyframeSequence sequence)Adds keyframe sequence to this channeljava.lang.Class<?>getComponentType()Gets the component field's typejava.lang.ObjectgetDefaultValue()Gets the Default value of the channel.java.util.List<KeyframeSequence>getKeyframeSequences()Gets all keyframe sequences inside this channeljava.lang.StringgetName()Gets the name of the channeljava.util.Iterator<KeyframeSequence>iterator()Gets an enumerator to walk through all keyframe sequences inside this channelvoidsetDefaultValue(java.lang.Object value)Sets the Default value of the channel.
-
-
-
Method Detail
-
getComponentType
public java.lang.Class<?> getComponentType()
Gets the component field's type
-
getName
public java.lang.String getName()
Gets the name of the channel
-
getDefaultValue
public java.lang.Object getDefaultValue()
Gets the Default value of the channel. If a channel has no keyframe sequences connected, the default value will be used during the animation evaluation. A real scenario: Animation only animates a node's x coordinate, the y and z are not changed, then the default value will be used during full translation evaluation.
-
setDefaultValue
public void setDefaultValue(java.lang.Object value)
Sets the Default value of the channel. If a channel has no keyframe sequences connected, the default value will be used during the animation evaluation. A real scenario: Animation only animates a node's x coordinate, the y and z are not changed, then the default value will be used during full translation evaluation.- Parameters:
value- New value
-
getKeyframeSequences
public java.util.List<KeyframeSequence> getKeyframeSequences()
Gets all keyframe sequences inside this channel
-
addKeyframeSequence
public void addKeyframeSequence(KeyframeSequence sequence)
Adds keyframe sequence to this channel- Parameters:
sequence- The keyframe sequence to add.
-
iterator
public java.util.Iterator<KeyframeSequence> iterator()
Gets an enumerator to walk through all keyframe sequences inside this channel- Specified by:
iteratorin interfacejava.lang.Iterable<KeyframeSequence>- Returns:
- Enumerator
-
-