public class AnimGraph
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected KeyRange<Percent> |
keyRange |
protected Percent |
weightP |
| Constructor and Description |
|---|
AnimGraph() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean[] |
allocBooleans(int length) |
protected Transform[] |
allocTransforms(int length) |
AnimGraph |
clone() |
static AnimGraph |
create(Animation animation) |
static AnimGraph |
create(AnimationTrack[] tracks,
Animation[] animations,
double duration) |
protected void |
free(boolean[] array) |
protected void |
free(Transform[] array) |
Animation |
getAnimation(java.lang.Object context,
java.lang.String animationName) |
AnimNode |
getKeyFrameNode() |
float |
getKeyFrameTime() |
GraphNode |
getMorphGraph() |
Params |
getParams() |
boolean |
getPose(Model model,
Transform[] dst) |
GraphNode |
getSkeletonGraph() |
void |
getTargets(Model model,
java.util.HashMap<java.lang.String,Percent> targetWeightMap) |
Timeline |
getTimeline() |
boolean |
isActive() |
void |
onChange() |
void |
resetTimelines()
Reset this
AnimGraph timelines |
void |
setActive(boolean active) |
void |
setKeyFrameNode(AnimNode keyFrameNode) |
void |
setKeyFrameTime(float trackTime) |
void |
setMorphGraph(GraphNode morphGraph) |
void |
setSkeletonGraph(GraphNode skeletonGraph) |
void |
syncAnimation() |
boolean |
update(Animation animation,
long timePassedMs) |
boolean |
update(Model model,
long timePassedMs) |
protected final Percent weightP
public final AnimGraph clone()
clone in class java.lang.Objectpublic Params getParams()
public final Timeline getTimeline()
Timeline for the root state of this AnimationContextStateNode, which defines its own Timeline for all of its childspublic void resetTimelines()
AnimGraph timelinespublic final void setActive(boolean active)
public final boolean isActive()
public void syncAnimation()
public final boolean update(Animation animation, long timePassedMs)
public final boolean update(Model model, long timePassedMs)
public void onChange()
public final Animation getAnimation(java.lang.Object context, java.lang.String animationName)
public final boolean getPose(Model model, Transform[] dst)
model - dst - JointMotion different to bind posepublic final void getTargets(Model model, java.util.HashMap<java.lang.String,Percent> targetWeightMap)
model - targetWeightMap - hashmap containing the list of targets to get there weights (Percent values are usually zero'd before calling)public final void setKeyFrameNode(AnimNode keyFrameNode)
keyFrameNode - set the keyframe AnimNodepublic final float getKeyFrameTime()
public final void setKeyFrameTime(float trackTime)
trackTime - seek to the specified timegetKeyFrameTime()public final void setSkeletonGraph(GraphNode skeletonGraph)
public final GraphNode getSkeletonGraph()
public final void setMorphGraph(GraphNode morphGraph)
public final GraphNode getMorphGraph()
public static final AnimGraph create(AnimationTrack[] tracks, Animation[] animations, double duration)
protected final Transform[] allocTransforms(int length)
protected final void free(Transform[] array)
protected final boolean[] allocBooleans(int length)
protected final void free(boolean[] array)
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com