Assimp  v3.1.1 (June 2014)
jassimp.AiAnimation Class Reference

An animation. More...

Public Member Functions

List< AiNodeAnimgetChannels ()
 Returns the list of bone animation channels. More...
 
double getDuration ()
 Returns the duration of the animation in ticks. More...
 
List< AiMeshAnimgetMeshChannels ()
 Returns the list of mesh animation channels. More...
 
String getName ()
 Returns the name of the animation. More...
 
int getNumChannels ()
 Returns the number of bone animation channels. More...
 
int getNumMeshChannels ()
 Returns the number of mesh animation channels. More...
 
double getTicksPerSecond ()
 Returns the ticks per second. More...
 

Detailed Description

An animation.

An animation consists of keyframe data for a number of nodes. For each node affected by the animation a separate series of data is given.

Like AiMesh, the animation related classes offer a Buffer API, a Direct API and a wrapped API. Please consult the documentation of AiMesh for a description and comparison of these APIs.

Member Function Documentation

◆ getChannels()

List<AiNodeAnim> jassimp.AiAnimation.getChannels ( )
inline

Returns the list of bone animation channels.

Each channel affects a single node. The array is mNumChannels in size.

Returns
the list of bone animation channels

◆ getDuration()

double jassimp.AiAnimation.getDuration ( )
inline

Returns the duration of the animation in ticks.

Returns
the duration

◆ getMeshChannels()

List<AiMeshAnim> jassimp.AiAnimation.getMeshChannels ( )
inline

Returns the list of mesh animation channels.

Each channel affects a single mesh.

Returns
the list of mesh animation channels

◆ getName()

String jassimp.AiAnimation.getName ( )
inline

Returns the name of the animation.

If the modeling package this data was exported from does support only a single animation channel, this name is usually empty (length is zero).

Returns
the name

◆ getNumChannels()

int jassimp.AiAnimation.getNumChannels ( )
inline

Returns the number of bone animation channels.

Each channel affects a single node. This method will return the same value as getChannels().size()

Returns
the number of bone animation channels

◆ getNumMeshChannels()

int jassimp.AiAnimation.getNumMeshChannels ( )
inline

Returns the number of mesh animation channels.

Each channel affects a single mesh and defines vertex-based animation. This method will return the same value as getMeshChannels().size()

Returns
the number of mesh animation channels

◆ getTicksPerSecond()

double jassimp.AiAnimation.getTicksPerSecond ( )
inline

Returns the ticks per second.

0 if not specified in the imported file

Returns
the number of ticks per second

The documentation for this class was generated from the following file: