LLHandMotion Class Reference

#include <llhandmotion.h>

Inheritance diagram for LLHandMotion:

Inheritance graph
[legend]
Collaboration diagram for LLHandMotion:

Collaboration graph
[legend]
List of all members.

Public Types

typedef enum LLHandMotion::e_hand_pose eHandPose
 HAND_POSE_SPREAD
 HAND_POSE_RELAXED
 HAND_POSE_POINT
 HAND_POSE_FIST
 HAND_POSE_RELAXED_L
 HAND_POSE_POINT_L
 HAND_POSE_FIST_L
 HAND_POSE_RELAXED_R
 HAND_POSE_POINT_R
 HAND_POSE_FIST_R
 HAND_POSE_SALUTE_R
 HAND_POSE_TYPING
 HAND_POSE_PEACE_R
 HAND_POSE_PALM_R
 NUM_HAND_POSES
enum  e_hand_pose {
  HAND_POSE_SPREAD, HAND_POSE_RELAXED, HAND_POSE_POINT, HAND_POSE_FIST,
  HAND_POSE_RELAXED_L, HAND_POSE_POINT_L, HAND_POSE_FIST_L, HAND_POSE_RELAXED_R,
  HAND_POSE_POINT_R, HAND_POSE_FIST_R, HAND_POSE_SALUTE_R, HAND_POSE_TYPING,
  HAND_POSE_PEACE_R, HAND_POSE_PALM_R, NUM_HAND_POSES
}

Public Member Functions

 LLHandMotion (const LLUUID &id)
virtual ~LLHandMotion ()
virtual BOOL getLoop ()
virtual F32 getDuration ()
virtual F32 getEaseInDuration ()
virtual F32 getEaseOutDuration ()
virtual F32 getMinPixelArea ()
virtual LLJoint::JointPriority getPriority ()
virtual LLMotionBlendType getBlendType ()
virtual LLMotionInitStatus onInitialize (LLCharacter *character)
virtual BOOL onActivate ()
virtual BOOL onUpdate (F32 time, U8 *joint_mask)
virtual void onDeactivate ()

Static Public Member Functions

static LLMotioncreate (const LLUUID &id)
static LLString getHandPoseName (eHandPose pose)
static eHandPose getHandPose (LLString posename)

Public Attributes

LLCharactermCharacter
F32 mLastTime
eHandPose mCurrentPose
eHandPose mNewPose

Detailed Description

Definition at line 46 of file llhandmotion.h.


Member Typedef Documentation

typedef enum LLHandMotion::e_hand_pose LLHandMotion::eHandPose


Member Enumeration Documentation

enum LLHandMotion::e_hand_pose

Enumerator:
HAND_POSE_SPREAD 
HAND_POSE_RELAXED 
HAND_POSE_POINT 
HAND_POSE_FIST 
HAND_POSE_RELAXED_L 
HAND_POSE_POINT_L 
HAND_POSE_FIST_L 
HAND_POSE_RELAXED_R 
HAND_POSE_POINT_R 
HAND_POSE_FIST_R 
HAND_POSE_SALUTE_R 
HAND_POSE_TYPING 
HAND_POSE_PEACE_R 
HAND_POSE_PALM_R 
NUM_HAND_POSES 

Definition at line 50 of file llhandmotion.h.


Constructor & Destructor Documentation

LLHandMotion::LLHandMotion ( const LLUUID id  ) 

Definition at line 69 of file llhandmotion.cpp.

References HAND_POSE_RELAXED, LL_HAND_JOINT_NUM, mCharacter, mCurrentPose, LLMotion::mJointSignature, mLastTime, LLMotion::mName, mNewPose, and NULL.

Referenced by create().

LLHandMotion::~LLHandMotion (  )  [virtual]

Definition at line 88 of file llhandmotion.cpp.


Member Function Documentation

static LLMotion* LLHandMotion::create ( const LLUUID id  )  [inline, static]

Reimplemented from LLMotion.

Definition at line 82 of file llhandmotion.h.

References LLHandMotion().

Referenced by LLVOAvatar::LLVOAvatar().

virtual LLMotionBlendType LLHandMotion::getBlendType (  )  [inline, virtual]

Implements LLMotion.

Definition at line 107 of file llhandmotion.h.

References LLMotion::NORMAL_BLEND.

virtual F32 LLHandMotion::getDuration (  )  [inline, virtual]

Implements LLMotion.

Definition at line 93 of file llhandmotion.h.

virtual F32 LLHandMotion::getEaseInDuration (  )  [inline, virtual]

Implements LLMotion.

Definition at line 96 of file llhandmotion.h.

virtual F32 LLHandMotion::getEaseOutDuration (  )  [inline, virtual]

Implements LLMotion.

Definition at line 99 of file llhandmotion.h.

LLHandMotion::eHandPose LLHandMotion::getHandPose ( LLString  posename  )  [static]

Definition at line 213 of file llhandmotion.cpp.

References gHandPoseNames, NUM_HAND_POSES, and S32.

Referenced by LLFloaterAnimPreview::onCommitHandPose().

LLString LLHandMotion::getHandPoseName ( eHandPose  pose  )  [static]

Definition at line 204 of file llhandmotion.cpp.

References gHandPoseNames, NUM_HAND_POSES, and S32.

Referenced by LLFloaterAnimPreview::postBuild().

virtual BOOL LLHandMotion::getLoop (  )  [inline, virtual]

Implements LLMotion.

Definition at line 90 of file llhandmotion.h.

References TRUE.

virtual F32 LLHandMotion::getMinPixelArea (  )  [inline, virtual]

Implements LLMotion.

Definition at line 102 of file llhandmotion.h.

References MIN_REQUIRED_PIXEL_AREA_HAND.

virtual LLJoint::JointPriority LLHandMotion::getPriority (  )  [inline, virtual]

Implements LLMotion.

Definition at line 105 of file llhandmotion.h.

References LLJoint::MEDIUM_PRIORITY.

BOOL LLHandMotion::onActivate (  )  [virtual]

Implements LLMotion.

Definition at line 106 of file llhandmotion.cpp.

References f, LLCharacter::getUpperBodyMesh(), gHandPoseNames, i, mCharacter, mCurrentPose, NUM_HAND_POSES, S32, LLCharacter::setVisualParamWeight(), TRUE, and LLCharacter::updateVisualParams().

void LLHandMotion::onDeactivate (  )  [virtual]

Implements LLMotion.

Definition at line 197 of file llhandmotion.cpp.

LLMotion::LLMotionInitStatus LLHandMotion::onInitialize ( LLCharacter character  )  [virtual]

Implements LLMotion.

Definition at line 95 of file llhandmotion.cpp.

References mCharacter, and LLMotion::STATUS_SUCCESS.

BOOL LLHandMotion::onUpdate ( F32  time,
U8 joint_mask 
) [virtual]

Implements LLMotion.

Definition at line 127 of file llhandmotion.cpp.

References f, LLCharacter::getAnimationData(), LLCharacter::getVisualParamWeight(), gHandPoseNames, HAND_MORPH_BLEND_TIME, HAND_POSE_RELAXED, HAND_POSE_SPREAD, llclamp(), mCharacter, mCurrentPose, mLastTime, mNewPose, LLCharacter::removeAnimationData(), LLCharacter::setVisualParamWeight(), TRUE, and LLCharacter::updateVisualParams().


Member Data Documentation

LLCharacter* LLHandMotion::mCharacter

Definition at line 135 of file llhandmotion.h.

Referenced by LLHandMotion(), onActivate(), onInitialize(), and onUpdate().

eHandPose LLHandMotion::mCurrentPose

Definition at line 138 of file llhandmotion.h.

Referenced by LLHandMotion(), onActivate(), and onUpdate().

F32 LLHandMotion::mLastTime

Definition at line 137 of file llhandmotion.h.

Referenced by LLHandMotion(), and onUpdate().

eHandPose LLHandMotion::mNewPose

Definition at line 139 of file llhandmotion.h.

Referenced by LLHandMotion(), and onUpdate().


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