public static final class B3DLoader.B3DState extends java.lang.Object implements IModelState
Constructor and Description |
---|
B3DState(B3DModel.Animation animation,
int frame) |
B3DState(B3DModel.Animation animation,
int frame,
IModelState parent) |
B3DState(B3DModel.Animation animation,
int frame,
int nextFrame,
float progress) |
B3DState(B3DModel.Animation animation,
int frame,
int nextFrame,
float progress,
IModelState parent) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<TRSRTransformation> |
apply(com.google.common.base.Optional<? extends IModelPart> part) |
B3DModel.Animation |
getAnimation() |
int |
getFrame() |
int |
getNextFrame() |
static TRSRTransformation |
getNodeMatrix(B3DModel.Animation animation,
B3DModel.Node<?> node,
int frame) |
TRSRTransformation |
getNodeMatrix(B3DModel.Node<?> node) |
TRSRTransformation |
getNodeMatrix(B3DModel.Node<?> node,
int frame) |
IModelState |
getParent() |
float |
getProgress() |
public B3DState(B3DModel.Animation animation, int frame)
public B3DState(B3DModel.Animation animation, int frame, IModelState parent)
public B3DState(B3DModel.Animation animation, int frame, int nextFrame, float progress)
public B3DState(B3DModel.Animation animation, int frame, int nextFrame, float progress, @Nullable IModelState parent)
public B3DModel.Animation getAnimation()
public int getFrame()
public int getNextFrame()
public float getProgress()
@Nullable public IModelState getParent()
public com.google.common.base.Optional<TRSRTransformation> apply(com.google.common.base.Optional<? extends IModelPart> part)
apply
in interface IModelState
public TRSRTransformation getNodeMatrix(B3DModel.Node<?> node)
public TRSRTransformation getNodeMatrix(B3DModel.Node<?> node, int frame)
public static TRSRTransformation getNodeMatrix(B3DModel.Animation animation, B3DModel.Node<?> node, int frame)