VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Static Public Member Functions
makVrv::DtArticulatedModelAnimationHelper Class Reference

A helper class to help with animations of a DtOsgArticulatedModel. More...

Static Public Member Functions

static int animationFrameCount (const DtOsgArticulatedModel *articulatedModel, const std::string &animationName)
 Get number of frames in an animation. More...
 
static int animationCurrentFrame (const DtOsgArticulatedModel *articulatedModel, const std::string &animationName)
 Get the current frame of an animation. More...
 
static int animationFirstFrame (const DtOsgArticulatedModel *articulatedModel, const std::string &animationName)
 Get the first frame in the current range in an animation. More...
 
static int animationLastFrame (const DtOsgArticulatedModel *articulatedModel, const std::string &animationName)
 Get the last frame in the current range in an animation. More...
 
static double animationSpeed (const DtOsgArticulatedModel *articulatedModel, const std::string &animationName)
 Get the speed of an animation. More...
 
static
DtArticulatedModel::AnimationState 
animationState (const DtOsgArticulatedModel *articulatedModel, const std::string &animationName)
 Get the animation mode of an animation. More...
 
static double animationLastFrameTime (const DtOsgArticulatedModel *articulatedModel, const std::string &animationName)
 Get the last frame time in the current range in an animation. More...
 
static int animationLoopCount (const DtOsgArticulatedModel *articulatedModel, const std::string &animationName)
 Get the animation loop count in an animation. More...
 

Detailed Description

A helper class to help with animations of a DtOsgArticulatedModel.

Member Function Documentation

static int makVrv::DtArticulatedModelAnimationHelper::animationFrameCount ( const DtOsgArticulatedModel articulatedModel,
const std::string &  animationName 
)
static

Get number of frames in an animation.

Return values
-1when the animation number is invalid.
static int makVrv::DtArticulatedModelAnimationHelper::animationCurrentFrame ( const DtOsgArticulatedModel articulatedModel,
const std::string &  animationName 
)
static

Get the current frame of an animation.

Return values
-1when the animation number is invalid.
static int makVrv::DtArticulatedModelAnimationHelper::animationFirstFrame ( const DtOsgArticulatedModel articulatedModel,
const std::string &  animationName 
)
static

Get the first frame in the current range in an animation.

Return values
-1when the animation number is invalid. only support in non-instance model
static int makVrv::DtArticulatedModelAnimationHelper::animationLastFrame ( const DtOsgArticulatedModel articulatedModel,
const std::string &  animationName 
)
static

Get the last frame in the current range in an animation.

Return values
-1when the animation number is invalid. only support in non-instance model
static double makVrv::DtArticulatedModelAnimationHelper::animationSpeed ( const DtOsgArticulatedModel articulatedModel,
const std::string &  animationName 
)
static

Get the speed of an animation.

Return values
-1.0when the animation number is invalid.
static DtArticulatedModel::AnimationState makVrv::DtArticulatedModelAnimationHelper::animationState ( const DtOsgArticulatedModel articulatedModel,
const std::string &  animationName 
)
static

Get the animation mode of an animation.

Return values
STOPwhen the animation name is invalid
static double makVrv::DtArticulatedModelAnimationHelper::animationLastFrameTime ( const DtOsgArticulatedModel articulatedModel,
const std::string &  animationName 
)
static

Get the last frame time in the current range in an animation.

Return values
-1when the animation number is invalid. only support in non-instance model
static int makVrv::DtArticulatedModelAnimationHelper::animationLoopCount ( const DtOsgArticulatedModel articulatedModel,
const std::string &  animationName 
)
static

Get the animation loop count in an animation.

only support in non-instance model


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)