LLPoseBlender Class Reference

#include <llpose.h>

Collaboration diagram for LLPoseBlender:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPoseBlender ()
 ~LLPoseBlender ()
BOOL addMotion (LLMotion *motion)
void blendAndApply ()
void clearBlenders ()
void blendAndCache (BOOL reset_cached_joints)
void interpolate (F32 u)
LLPosegetBlendedPose ()

Protected Types

typedef std::list< LLJointStateBlender * > blender_list_t
typedef std::map< LLJoint *,
LLJointStateBlender * > 
blender_map_t

Protected Attributes

blender_map_t mJointStateBlenderPool
blender_list_t mActiveBlenders
S32 mNextPoseSlot
LLPose mBlendedPose

Detailed Description

Definition at line 110 of file llpose.h.


Member Typedef Documentation

typedef std::list<LLJointStateBlender*> LLPoseBlender::blender_list_t [protected]

Definition at line 113 of file llpose.h.

typedef std::map<LLJoint*,LLJointStateBlender*> LLPoseBlender::blender_map_t [protected]

Definition at line 114 of file llpose.h.


Constructor & Destructor Documentation

LLPoseBlender::LLPoseBlender (  ) 

Definition at line 455 of file llpose.cpp.

LLPoseBlender::~LLPoseBlender (  ) 

Definition at line 459 of file llpose.cpp.

References mJointStateBlenderPool.


Member Function Documentation

BOOL LLPoseBlender::addMotion ( LLMotion motion  ) 

Definition at line 467 of file llpose.cpp.

References LLMotion::ADDITIVE_BLEND, LLJointStateBlender::addJointState(), LLMotion::getBlendType(), LLPose::getFirstJointState(), LLPose::getNextJointState(), LLMotion::getPose(), LLMotion::getPriority(), mActiveBlenders, mJointStateBlenderPool, TRUE, and LLJoint::USE_MOTION_PRIORITY.

Referenced by LLKeyframeMotionParam::onInitialize(), and LLMotionController::updateMotionsByType().

void LLPoseBlender::blendAndApply (  ) 

Definition at line 508 of file llpose.cpp.

References mActiveBlenders.

Referenced by LLKeyframeMotionParam::onUpdate(), and LLMotionController::updateMotion().

void LLPoseBlender::blendAndCache ( BOOL  reset_cached_joints  ) 

Definition at line 524 of file llpose.cpp.

References FALSE, and mActiveBlenders.

Referenced by LLMotionController::updateMotion().

void LLPoseBlender::clearBlenders (  ) 

Definition at line 554 of file llpose.cpp.

References mActiveBlenders.

Referenced by LLMotionController::addLoadedMotion(), and LLMotionController::updateMotion().

LLPose* LLPoseBlender::getBlendedPose (  )  [inline]

Definition at line 141 of file llpose.h.

References mBlendedPose.

Referenced by LLKeyframeMotionParam::getPose(), LLKeyframeMotionParam::onInitialize(), and LLKeyframeMotionParam::onUpdate().

void LLPoseBlender::interpolate ( F32  u  ) 

Definition at line 541 of file llpose.cpp.

References mActiveBlenders.

Referenced by LLMotionController::updateMotion().


Member Data Documentation

blender_list_t LLPoseBlender::mActiveBlenders [protected]

Definition at line 116 of file llpose.h.

Referenced by addMotion(), blendAndApply(), blendAndCache(), clearBlenders(), and interpolate().

LLPose LLPoseBlender::mBlendedPose [protected]

Definition at line 119 of file llpose.h.

Referenced by getBlendedPose().

blender_map_t LLPoseBlender::mJointStateBlenderPool [protected]

Definition at line 115 of file llpose.h.

Referenced by addMotion(), and ~LLPoseBlender().

S32 LLPoseBlender::mNextPoseSlot [protected]

Definition at line 118 of file llpose.h.


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:39 2010 for Second Life Viewer by  doxygen 1.4.7