public class Animation extends GlTFChildOfRootProperty
| Constructor and Description |
|---|
Animation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannels(AnimationChannel element)
Add the given channels.
|
void |
addParameters(java.lang.String key,
java.lang.String value)
Add the given parameters.
|
void |
addSamplers(java.lang.String key,
AnimationSampler value)
Add the given samplers.
|
java.util.List<AnimationChannel> |
defaultChannels()
Returns the default value of the channels
|
java.util.Map<java.lang.String,java.lang.String> |
defaultParameters()
Returns the default value of the parameters
|
java.util.Map<java.lang.String,AnimationSampler> |
defaultSamplers()
Returns the default value of the samplers
|
java.util.List<AnimationChannel> |
getChannels()
An array of channels, each of which targets an animation's sampler at
a node's property.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
A dictionary object of strings whose values are IDs of accessors with
keyframe data, e.g., time, translation, rotation, etc.
|
java.util.Map<java.lang.String,AnimationSampler> |
getSamplers()
A dictionary object of samplers that combines input and output
parameters with an interpolation algorithm to define a keyframe graph
(but not its target).
|
void |
removeChannels(AnimationChannel element)
Remove the given channels.
|
void |
removeParameters(java.lang.String key)
Remove the given parameters.
|
void |
removeSamplers(java.lang.String key)
Remove the given samplers.
|
void |
setChannels(java.util.List<AnimationChannel> channels)
An array of channels, each of which targets an animation's sampler at
a node's property.
|
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
A dictionary object of strings whose values are IDs of accessors with
keyframe data, e.g., time, translation, rotation, etc.
|
void |
setSamplers(java.util.Map<java.lang.String,AnimationSampler> samplers)
A dictionary object of samplers that combines input and output
parameters with an interpolation algorithm to define a keyframe graph
(but not its target).
|
getName, setNameaddExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setChannels(java.util.List<AnimationChannel> channels)
channels - The channels to setpublic java.util.List<AnimationChannel> getChannels()
public void addChannels(AnimationChannel element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeChannels(AnimationChannel element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullpublic java.util.List<AnimationChannel> defaultChannels()
getChannels()public void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters - The parameters to setpublic java.util.Map<java.lang.String,java.lang.String> getParameters()
public void addParameters(java.lang.String key,
java.lang.String value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeParameters(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,java.lang.String> defaultParameters()
getParameters()public void setSamplers(java.util.Map<java.lang.String,AnimationSampler> samplers)
samplers - The samplers to setpublic java.util.Map<java.lang.String,AnimationSampler> getSamplers()
public void addSamplers(java.lang.String key,
AnimationSampler value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeSamplers(java.lang.String key)
null.key - The keyjava.lang.NullPointerException - If the given key is nullpublic java.util.Map<java.lang.String,AnimationSampler> defaultSamplers()
getSamplers()Copyright © 2024. All Rights Reserved.