A helper class to help with animations of a DtOsgArticulatedModel.
More...
A helper class to help with animations of a DtOsgArticulatedModel.
| static int makVrv::DtArticulatedModelAnimationHelper::animationFrameCount |
( |
const DtOsgArticulatedModel * |
articulatedModel, |
|
|
const std::string & |
animationName |
|
) |
| |
|
static |
Get number of frames in an animation.
- Return values
-
| -1 | when 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
-
| -1 | when 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
-
| -1 | when 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
-
| -1 | when 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.0 | when the animation number is invalid. |
Get the animation mode of an animation.
- Return values
-
| STOP | when 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
-
| -1 | when 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: