public final class TestGltfAnimation


A test-only data class that mirrors the properties of a GltfAnimation.

This is used to define the characteristics of an animation to be added to a GltfModelEntityTester for testing purposes.

Summary

Nested types

public final class TestGltfAnimation.Builder

Builder for TestGltfAnimation.

Public methods

boolean
equals(Object other)
final float

The duration of the animation in seconds.

final int

The index of the animation in the glTF model file.

final String

The optional name of the animation.

final float

Retrieves the seek start time (in seconds) for the animation.

final float

Retrieves the current playback speed of the animation.

int
final boolean

Checks whether the animation is currently configured to loop.

Public methods

equals

public boolean equals(Object other)

getAnimationDuration

Added in 1.0.0-alpha16
public final float getAnimationDuration()

The duration of the animation in seconds.

getAnimationIndex

Added in 1.0.0-alpha16
public final int getAnimationIndex()

The index of the animation in the glTF model file.

getAnimationName

Added in 1.0.0-alpha16
public final String getAnimationName()

The optional name of the animation.

getSeekStartTime

Added in 1.0.0-alpha16
public final float getSeekStartTime()

Retrieves the seek start time (in seconds) for the animation.

This reflects the underlying runtime state typically configured when starting the animation via GltfAnimation.start.

Returns
float

The seek start time of the animation in seconds.

getSpeed

Added in 1.0.0-alpha16
public final float getSpeed()

Retrieves the current playback speed of the animation.

This reflects the underlying runtime state typically modified by GltfAnimation.start or GltfAnimation.setSpeed.

Returns
float

The playback speed multiplier of the animation.

hashCode

public int hashCode()

shouldLoop

Added in 1.0.0-alpha16
public final boolean shouldLoop()

Checks whether the animation is currently configured to loop.

This reflects the underlying runtime state typically modified by GltfAnimation.start.

Returns
boolean

true if the animation is set to loop, false otherwise.