|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.model.config.AnimationConfig.Implementation
com.threerings.opengl.model.config.AnimationConfig.Original
com.threerings.opengl.model.config.AnimationConfig.Imported
public static class AnimationConfig.Imported
A frame-based animation imported from an export file.
| Field Summary | |
|---|---|
AnimationConfig.FrameAction[] |
actions
Actions to perform at specific times within the animation. |
boolean |
loop
Whether or not the animation loops. |
FloatVariable |
offset
A (possibly random) offset to apply when the animation starts. |
float |
rate
The base animation frame rate. |
float |
scale
The global animation scale. |
boolean |
skipLastFrame
Whether or not to skip the last frame when looping (because it's the same as the first). |
float |
speed
The speed of the animation. |
String[] |
targets
The targets of the animation. |
Transform3D[][] |
transforms
The transforms for each target, each frame. |
float |
transition
The interval over which to transition into the first frame. |
| Fields inherited from class com.threerings.opengl.model.config.AnimationConfig.Original |
|---|
blendIn, blendOut, override, priority, weight |
| Constructor Summary | |
|---|---|
AnimationConfig.Imported()
|
|
| Method Summary | |
|---|---|
Animation.Implementation |
getAnimationImplementation(GlContext ctx,
Scope scope,
Animation.Implementation impl)
Creates or updates an animation implementation for this configuration. |
float |
getDuration()
Returns the duration of the animation (assuming it doesn't loop). |
float |
getScaledRate()
Returns the frame rate as scaled by the speed. |
String |
getSource()
Returns the source resource. |
void |
setDuration(float duration)
Included in order to make duration appear as an editable property. |
void |
setSource(String source)
Sets the source file from which to load the animation data. |
void |
updateFromSource(EditorContext ctx,
boolean force)
Updates this implementation from its external source, if any. |
| Methods inherited from class com.threerings.opengl.model.config.AnimationConfig.Implementation |
|---|
getUpdateReferences, invalidate |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Editable(min=0.0,
step=0.01,
hgroup="t")
public float transition
@Editable(min=0.0,
step=0.01,
hgroup="t")
public float speed
@Editable(min=0.0,
step=0.01,
hgroup="t")
public float scale
@Editable(hgroup="l") public boolean loop
@Editable(hgroup="l") public boolean skipLastFrame
@Editable(min=0.0,
step=0.01,
weight=2.0)
public FloatVariable offset
@Editable(weight=2.0) public AnimationConfig.FrameAction[] actions
public float rate
@Shallow public String[] targets
@Shallow public Transform3D[][] transforms
| Constructor Detail |
|---|
public AnimationConfig.Imported()
| Method Detail |
|---|
@Editable(editor="resource",
weight=-1.0,
nullable=true)
@FileConstraints(description="m.exported_anims",
extensions=".mxml",
directory="exported_anim_dir")
public void setSource(String source)
@Editable public String getSource()
@Editable(step=0.01,
hgroup="l",
weight=1.0,
depends={"transition","source","speed","duration"})
public void setDuration(float duration)
@Editable public float getDuration()
public float getScaledRate()
public void updateFromSource(EditorContext ctx,
boolean force)
AnimationConfig.Implementation
updateFromSource in class AnimationConfig.Implementationforce - if true, reload the source data even if it has already been loaded.
public Animation.Implementation getAnimationImplementation(GlContext ctx,
Scope scope,
Animation.Implementation impl)
AnimationConfig.Implementation
getAnimationImplementation in class AnimationConfig.Implementationscope - the animation's expression scope.impl - an existing implementation to reuse, if possible.
null if no implementation could be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||