LLCharacter Class Reference

#include <llcharacter.h>

Inheritance diagram for LLCharacter:

Inheritance graph
[legend]
Collaboration diagram for LLCharacter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLCharacter ()
virtual ~LLCharacter ()
virtual const char * getAnimationPrefix ()=0
virtual LLJointgetRootJoint ()=0
virtual LLJointgetJoint (const std::string &name)
virtual LLVector3 getCharacterPosition ()=0
virtual LLQuaternion getCharacterRotation ()=0
virtual LLVector3 getCharacterVelocity ()=0
virtual LLVector3 getCharacterAngularVelocity ()=0
virtual void getGround (const LLVector3 &inPos, LLVector3 &outPos, LLVector3 &outNorm)=0
virtual BOOL allocateCharacterJoints (U32 num)=0
virtual LLJointgetCharacterJoint (U32 i)=0
virtual F32 getTimeDilation ()=0
virtual F32 getPixelArea () const =0
virtual LLPolyMeshgetHeadMesh ()=0
virtual LLPolyMeshgetUpperBodyMesh ()=0
virtual LLVector3d getPosGlobalFromAgent (const LLVector3 &position)=0
virtual LLVector3 getPosAgentFromGlobal (const LLVector3d &position)=0
virtual void updateVisualParams ()
virtual void addDebugText (const std::string &text)=0
virtual const LLUUIDgetID ()=0
BOOL addMotion (const LLUUID &id, LLMotionConstructor create)
void removeMotion (const LLUUID &id)
LLMotioncreateMotion (const LLUUID &id)
virtual BOOL startMotion (const LLUUID &id, F32 start_offset=0.f)
virtual BOOL stopMotion (const LLUUID &id, BOOL stop_immediate=FALSE)
BOOL isMotionActive (const LLUUID &id)
virtual void requestStopMotion (LLMotion *motion)
void updateMotion (BOOL force_update=FALSE)
LLAnimPauseRequest requestPause ()
BOOL areAnimationsPaused ()
void setAnimTimeFactor (F32 factor)
void setTimeStep (F32 time_step)
virtual void flushAllMotions ()
virtual void deactivateAllMotions ()
virtual void dumpCharacter (LLJoint *joint=NULL)
virtual F32 getPreferredPelvisHeight ()
virtual LLVector3 getVolumePos (S32 joint_index, LLVector3 &volume_offset)
virtual LLJointfindCollisionVolume (U32 volume_id)
virtual S32 getCollisionVolumeID (std::string &name)
void setAnimationData (std::string name, void *data)
voidgetAnimationData (std::string name)
void removeAnimationData (std::string name)
void addVisualParam (LLVisualParam *param)
void addSharedVisualParam (LLVisualParam *param)
BOOL setVisualParamWeight (LLVisualParam *which_param, F32 weight, BOOL set_by_user=FALSE)
BOOL setVisualParamWeight (const char *param_name, F32 weight, BOOL set_by_user=FALSE)
BOOL setVisualParamWeight (S32 index, F32 weight, BOOL set_by_user=FALSE)
F32 getVisualParamWeight (LLVisualParam *distortion)
F32 getVisualParamWeight (const char *param_name)
F32 getVisualParamWeight (S32 index)
void clearVisualParamWeights ()
LLVisualParamgetFirstVisualParam ()
LLVisualParamgetNextVisualParam ()
LLVisualParamgetVisualParam (S32 id)
S32 getVisualParamID (LLVisualParam *id)
S32 getVisualParamCount ()
LLVisualParamgetVisualParam (const char *name)
ESex getSex ()
void setSex (ESex sex)
U32 getAppearanceSerialNum () const
void setAppearanceSerialNum (U32 num)
U32 getSkeletonSerialNum () const
void setSkeletonSerialNum (U32 num)

Static Public Attributes

static std::vector< LLCharacter * > sInstances

Protected Attributes

LLMotionController mMotionController
LLAssocList< std::string,
void * > 
mAnimationData
F32 mPreferredPelvisHeight
ESex mSex
U32 mAppearanceSerialNum
U32 mSkeletonSerialNum
LLAnimPauseRequest mPauseRequest

Private Types

typedef std::map< S32, LLVisualParam * > VisualParamIndexMap_t
typedef std::map< char *,
LLVisualParam * > 
VisualParamNameMap_t

Private Attributes

VisualParamIndexMap_t mVisualParamIndexMap
VisualParamIndexMap_t::iterator mCurIterator
VisualParamNameMap_t mVisualParamNameMap

Static Private Attributes

static LLStringTable sVisualParamNames

Detailed Description

Definition at line 62 of file llcharacter.h.


Member Typedef Documentation

typedef std::map<S32, LLVisualParam *> LLCharacter::VisualParamIndexMap_t [private]

Definition at line 269 of file llcharacter.h.

typedef std::map<char *, LLVisualParam *> LLCharacter::VisualParamNameMap_t [private]

Definition at line 272 of file llcharacter.h.


Constructor & Destructor Documentation

LLCharacter::LLCharacter (  ) 

Definition at line 52 of file llcharacter.cpp.

References mMotionController, mPauseRequest, LLMotionController::setCharacter(), and sInstances.

LLCharacter::~LLCharacter (  )  [virtual]

Definition at line 69 of file llcharacter.cpp.

References getFirstVisualParam(), getNextVisualParam(), param, and sInstances.


Member Function Documentation

virtual void LLCharacter::addDebugText ( const std::string &  text  )  [pure virtual]

Implemented in LLVOAvatar.

BOOL LLCharacter::addMotion ( const LLUUID id,
LLMotionConstructor  create 
)

Definition at line 108 of file llcharacter.cpp.

References LLMotionController::addMotion(), and mMotionController.

Referenced by LLVOAvatar::LLVOAvatar().

void LLCharacter::addSharedVisualParam ( LLVisualParam param  ) 

Definition at line 417 of file llcharacter.cpp.

References LLVisualParam::getNextParam(), llendl, llwarns, mVisualParamIndexMap, param, S32, and LLVisualParam::setNextParam().

Referenced by LLVOAvatar::loadMeshNodes().

void LLCharacter::addVisualParam ( LLVisualParam param  ) 

Definition at line 443 of file llcharacter.cpp.

References LLStringTable::addString(), llendl, llwarns, mVisualParamIndexMap, mVisualParamNameMap, param, S32, sVisualParamNames, and LLStringBase< char >::toLower().

Referenced by LLVOAvatar::loadAvatar(), LLVOAvatar::loadMeshNodes(), LLVOAvatar::loadSkeletonNode(), LLTexParamColor::setInfo(), and LLTexLayerParamAlpha::setInfo().

virtual BOOL LLCharacter::allocateCharacterJoints ( U32  num  )  [pure virtual]

Implemented in LLVOAvatar.

BOOL LLCharacter::areAnimationsPaused (  )  [inline]

Definition at line 169 of file llcharacter.h.

References LLMotionController::isPaused(), and mMotionController.

Referenced by LLFloaterAnimPreview::draw(), LLFloaterAnimPreview::onCommitBaseAnim(), LLFloaterAnimPreview::refresh(), LLPreviewAnimation::render(), and LLFloaterAnimPreview::resetMotion().

void LLCharacter::clearVisualParamWeights (  ) 

Definition at line 384 of file llcharacter.cpp.

References FALSE, getFirstVisualParam(), getNextVisualParam(), param, and VISUAL_PARAM_GROUP_TWEAKABLE.

Referenced by LLAgent::clearVisualParams().

LLMotion * LLCharacter::createMotion ( const LLUUID id  ) 

Definition at line 124 of file llcharacter.cpp.

References LLMotionController::createMotion(), and mMotionController.

Referenced by LLKeyframeMotionParam::addKeyframeMotion(), LLPreviewAnim::LLPreviewAnim(), LLVOAvatar::LLVOAvatar(), LLKeyframeMotion::onLoadComplete(), LLFloaterAnimPreview::postBuild(), and LLPreviewAnim::saveAnim().

void LLCharacter::deactivateAllMotions (  )  [virtual]

Definition at line 198 of file llcharacter.cpp.

References LLMotionController::deactivateAllMotions(), and mMotionController.

Referenced by LLToolsStopAllAnimations::handleEvent().

void LLCharacter::dumpCharacter ( LLJoint joint = NULL  )  [virtual]

Definition at line 216 of file llcharacter.cpp.

References LLJoint::getName(), LLJoint::getParent(), getRootJoint(), llendl, llinfos, LLJoint::mChildren, and NULL.

virtual LLJoint* LLCharacter::findCollisionVolume ( U32  volume_id  )  [inline, virtual]

Reimplemented in LLVOAvatar.

Definition at line 187 of file llcharacter.h.

References NULL.

Referenced by LLKeyframeMotion::applyConstraint(), LLKeyframeMotion::deserialize(), LLKeyframeMotion::initializeConstraint(), and LLKeyframeMotion::serialize().

void LLCharacter::flushAllMotions (  )  [virtual]

Definition at line 207 of file llcharacter.cpp.

References LLMotionController::flushAllMotions(), and mMotionController.

Referenced by LLVOAvatar::buildCharacter(), and LLVOAvatar::resetAnimations().

void * LLCharacter::getAnimationData ( std::string  name  ) 

Definition at line 257 of file llcharacter.cpp.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::getValue(), mAnimationData, and NULL.

Referenced by LLKeyframeMotion::applyKeyframes(), LLTargetingMotion::onUpdate(), LLKeyframeWalkMotion::onUpdate(), LLKeyframeMotionParam::onUpdate(), LLEyeMotion::onUpdate(), LLHeadRotMotion::onUpdate(), LLHandMotion::onUpdate(), and LLEditingMotion::onUpdate().

virtual const char* LLCharacter::getAnimationPrefix (  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLKeyframeMotionParam::loadMotions().

U32 LLCharacter::getAppearanceSerialNum (  )  const [inline]

Definition at line 247 of file llcharacter.h.

References mAppearanceSerialNum.

virtual LLVector3 LLCharacter::getCharacterAngularVelocity (  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLFlyAdjustMotion::onUpdate(), and LLWalkAdjustMotion::onUpdate().

virtual LLJoint* LLCharacter::getCharacterJoint ( U32  i  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLViewerJointMesh::writeCAL3D().

virtual LLVector3 LLCharacter::getCharacterPosition (  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLWalkAdjustMotion::onActivate(), LLKeyframeFallMotion::onActivate(), LLKeyframeStandMotion::onUpdate(), and LLEditingMotion::onUpdate().

virtual LLQuaternion LLCharacter::getCharacterRotation (  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLKeyframeFallMotion::onActivate().

virtual LLVector3 LLCharacter::getCharacterVelocity (  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLKeyframeFallMotion::onActivate(), LLFlyAdjustMotion::onUpdate(), and LLWalkAdjustMotion::onUpdate().

virtual S32 LLCharacter::getCollisionVolumeID ( std::string &  name  )  [inline, virtual]

Reimplemented in LLVOAvatar.

Definition at line 189 of file llcharacter.h.

Referenced by LLKeyframeMotion::deserialize().

LLVisualParam* LLCharacter::getFirstVisualParam (  )  [inline]

Definition at line 213 of file llcharacter.h.

References getNextVisualParam(), mCurIterator, and mVisualParamIndexMap.

Referenced by clearVisualParamWeights(), LLWearable::copyDataFrom(), LLVOAvatar::dumpArchetypeXML(), LLVOAvatar::idleUpdate(), LLWearable::isDirty(), LLWearable::isOldVersion(), LLVOAvatar::processAvatarAppearance(), LLWearable::readFromAvatar(), LLWearable::removeFromAvatar(), LLWearable::setParamsToDefaults(), LLPanelEditWearable::setSubpart(), LLUndoWearable::setWearable(), LLGenePool::spawn(), updateVisualParams(), LLWearable::writeToAvatar(), and ~LLCharacter().

virtual void LLCharacter::getGround ( const LLVector3 inPos,
LLVector3 outPos,
LLVector3 outNorm 
) [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLKeyframeMotion::activateConstraint(), LLKeyframeFallMotion::onActivate(), and LLKeyframeStandMotion::onUpdate().

virtual LLPolyMesh* LLCharacter::getHeadMesh (  )  [pure virtual]

Implemented in LLVOAvatar.

virtual const LLUUID& LLCharacter::getID (  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLKeyframeMotion::onInitialize().

LLJoint * LLCharacter::getJoint ( const std::string &  name  )  [virtual]

Reimplemented in LLVOAvatar.

Definition at line 88 of file llcharacter.cpp.

References LLJoint::findJoint(), getRootJoint(), llendl, llwarns, and NULL.

Referenced by LLKeyframeMotion::deserialize(), LLPelvisFixMotion::onInitialize(), LLBreatheMotionRot::onInitialize(), LLBodyNoiseMotion::onInitialize(), LLTargetingMotion::onInitialize(), LLFlyAdjustMotion::onInitialize(), LLWalkAdjustMotion::onInitialize(), LLKeyframeMotion::onInitialize(), LLEyeMotion::onInitialize(), LLHeadRotMotion::onInitialize(), LLEditingMotion::onInitialize(), LLKeyframeMotion::setupPose(), and LLKeyframeMotion::writeCAL3D().

LLVisualParam* LLCharacter::getNextVisualParam (  )  [inline]

Definition at line 218 of file llcharacter.h.

References mCurIterator, and mVisualParamIndexMap.

Referenced by clearVisualParamWeights(), LLWearable::copyDataFrom(), LLVOAvatar::dumpArchetypeXML(), getFirstVisualParam(), LLVOAvatar::idleUpdate(), LLWearable::isDirty(), LLWearable::isOldVersion(), LLVOAvatar::processAvatarAppearance(), LLWearable::readFromAvatar(), LLWearable::removeFromAvatar(), LLWearable::setParamsToDefaults(), LLPanelEditWearable::setSubpart(), LLUndoWearable::setWearable(), LLGenePool::spawn(), updateVisualParams(), LLWearable::writeToAvatar(), and ~LLCharacter().

virtual F32 LLCharacter::getPixelArea (  )  const [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLKeyframeMotion::applyConstraint(), LLVOAvatar::CompareScreenAreaGreater::operator()(), and LLMotionController::updateMotionsByType().

virtual LLVector3 LLCharacter::getPosAgentFromGlobal ( const LLVector3d position  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLKeyframeMotion::applyConstraint().

virtual LLVector3d LLCharacter::getPosGlobalFromAgent ( const LLVector3 position  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLKeyframeMotion::activateConstraint(), LLWalkAdjustMotion::onActivate(), and LLWalkAdjustMotion::onUpdate().

virtual F32 LLCharacter::getPreferredPelvisHeight (  )  [inline, virtual]

Definition at line 183 of file llcharacter.h.

References mPreferredPelvisHeight.

Referenced by LLKeyframeFallMotion::getEaseInDuration().

virtual LLJoint* LLCharacter::getRootJoint (  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by dumpCharacter(), and getJoint().

ESex LLCharacter::getSex (  )  [inline]

Definition at line 244 of file llcharacter.h.

References mSex.

Referenced by LLUndoWearable::applyUndoRedo(), LLPanelEditWearable::draw(), LLTexParamColor::getNetColor(), LLTexLayerParamAlpha::getSkip(), LLVOAvatar::idleUpdate(), LLFloaterCustomize::LLFloaterCustomize(), LLPanelEditWearable::onBtnRandomize(), LLVOAvatar::processAvatarAppearance(), LLTexLayerParamAlpha::render(), LLStatusBar::setHealth(), LLPanelEditWearable::setSubpart(), LLFloaterCustomize::setWearable(), LLTexParamColor::setWeight(), LLTexLayerParamAlpha::setWeight(), LLVOAvatar::startMotion(), LLHUDEffectLookAt::update(), LLVOAvatar::writeCAL3D(), and LLWearable::writeToAvatar().

U32 LLCharacter::getSkeletonSerialNum (  )  const [inline]

Definition at line 250 of file llcharacter.h.

References mSkeletonSerialNum.

Referenced by LLPolySkeletalDistortion::apply(), and LLKeyframeMotion::applyConstraints().

virtual F32 LLCharacter::getTimeDilation (  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLFlyAdjustMotion::onUpdate(), and LLWalkAdjustMotion::onUpdate().

virtual LLPolyMesh* LLCharacter::getUpperBodyMesh (  )  [pure virtual]

Implemented in LLVOAvatar.

Referenced by LLHandMotion::onActivate().

LLVisualParam * LLCharacter::getVisualParam ( const char *  name  ) 

Definition at line 400 of file llcharacter.cpp.

References LLStringTable::checkString(), llendl, llwarns, mVisualParamNameMap, NULL, sVisualParamNames, and LLStringBase< char >::toLower().

LLVisualParam* LLCharacter::getVisualParam ( S32  id  )  [inline]

Definition at line 225 of file llcharacter.h.

References mVisualParamIndexMap.

Referenced by LLGenePool::loadNodeArchetype(), LLEmote::onActivate(), LLPanelEditWearable::onCommitSexChange(), LLEmote::onDeactivate(), LLEmote::onUpdate(), LLUndoWearable::setColor(), LLDriverParam::setInfo(), and LLGenePool::spawn().

S32 LLCharacter::getVisualParamCount (  )  [inline]

Definition at line 240 of file llcharacter.h.

References mVisualParamIndexMap, and S32.

S32 LLCharacter::getVisualParamID ( LLVisualParam id  )  [inline]

Definition at line 230 of file llcharacter.h.

References mVisualParamIndexMap.

F32 LLCharacter::getVisualParamWeight ( S32  index  ) 

Definition at line 367 of file llcharacter.cpp.

References llendl, llwarns, and mVisualParamIndexMap.

F32 LLCharacter::getVisualParamWeight ( const char *  param_name  ) 

Definition at line 350 of file llcharacter.cpp.

References LLStringTable::checkString(), llendl, llwarns, mVisualParamNameMap, sVisualParamNames, and LLStringBase< char >::toLower().

F32 LLCharacter::getVisualParamWeight ( LLVisualParam distortion  ) 

Definition at line 332 of file llcharacter.cpp.

References LLVisualParam::getID(), llendl, llwarns, mVisualParamIndexMap, and S32.

Referenced by LLUndoWearable::applyUndoRedo(), LLVOAvatar::getClothesColor(), LLScrollingPanelParam::onHintHeldDown(), LLScrollingPanelParam::onHintMaxMouseUp(), LLScrollingPanelParam::onHintMinMouseUp(), LLScrollingPanelParam::onHintMouseDown(), LLScrollingPanelParam::onSliderMouseDown(), LLScrollingPanelParam::onSliderMoved(), LLHandMotion::onUpdate(), LLVisualParamHint::preRender(), LLVOAvatar::processAvatarAppearance(), and LLVOAvatar::updateVisualParams().

virtual LLVector3 LLCharacter::getVolumePos ( S32  joint_index,
LLVector3 volume_offset 
) [inline, virtual]

Reimplemented in LLVOAvatar.

Definition at line 185 of file llcharacter.h.

References LLVector3::zero.

Referenced by LLKeyframeMotion::activateConstraint(), LLKeyframeMotion::applyConstraint(), and LLKeyframeMotion::initializeConstraint().

BOOL LLCharacter::isMotionActive ( const LLUUID id  ) 

Definition at line 149 of file llcharacter.cpp.

References FALSE, LLMotionController::findMotion(), LLMotionController::isMotionActive(), and mMotionController.

Referenced by LLFloaterAnimPreview::onSliderMove(), LLFloaterAnimPreview::refresh(), and LLVOAvatar::updateCharacter().

void LLCharacter::removeAnimationData ( std::string  name  ) 

Definition at line 276 of file llcharacter.cpp.

References mAnimationData, and LLAssocList< INDEX_TYPE, VALUE_TYPE >::remove().

Referenced by LLMotionController::flushAllMotions(), LLWalkAdjustMotion::onDeactivate(), LLKeyframeWalkMotion::onDeactivate(), LLHandMotion::onUpdate(), and LLVOAvatar::updateCharacter().

void LLCharacter::removeMotion ( const LLUUID id  ) 

Definition at line 116 of file llcharacter.cpp.

References mMotionController, and LLMotionController::removeMotion().

Referenced by LLFloaterAnimPreview::onBtnOK().

LLAnimPauseRequest LLCharacter::requestPause (  ) 

Definition at line 497 of file llcharacter.cpp.

References mMotionController, mPauseRequest, and LLMotionController::pause().

Referenced by LLFloaterAnimPreview::onSliderMove(), LLFloaterAnimPreview::refresh(), LLFloaterAnimPreview::resetMotion(), LLFloaterSnapshot::Impl::updateLayout(), and LLSelectMgr::updateSelectionCenter().

void LLCharacter::requestStopMotion ( LLMotion motion  )  [virtual]

Reimplemented in LLVOAvatar.

Definition at line 164 of file llcharacter.cpp.

Referenced by LLMotionController::updateMotionsByType().

void LLCharacter::setAnimationData ( std::string  name,
void data 
)

Definition at line 242 of file llcharacter.cpp.

References LLAssocList< INDEX_TYPE, VALUE_TYPE >::addToHead(), LLAssocList< INDEX_TYPE, VALUE_TYPE >::getValue(), and mAnimationData.

Referenced by LLKeyframeMotion::applyKeyframes(), LLHUDEffectLookAt::calcTargetPosition(), LLVOAvatar::LLVOAvatar(), LLWalkAdjustMotion::onUpdate(), and LLEditingMotion::onUpdate().

void LLCharacter::setAnimTimeFactor ( F32  factor  )  [inline]

Definition at line 170 of file llcharacter.h.

References mMotionController, and LLMotionController::setTimeFactor().

Referenced by slow_mo_animations().

void LLCharacter::setAppearanceSerialNum ( U32  num  )  [inline]

Definition at line 248 of file llcharacter.h.

References mAppearanceSerialNum.

void LLCharacter::setSex ( ESex  sex  )  [inline]

Definition at line 245 of file llcharacter.h.

References mSex.

Referenced by LLVOAvatar::updateVisualParams().

void LLCharacter::setSkeletonSerialNum ( U32  num  )  [inline]

Definition at line 251 of file llcharacter.h.

References mSkeletonSerialNum.

Referenced by LLPolySkeletalDistortion::apply().

void LLCharacter::setTimeStep ( F32  time_step  )  [inline]

Definition at line 171 of file llcharacter.h.

References mMotionController, and LLMotionController::setTimeStep().

Referenced by LLPreviewAnimation::render().

BOOL LLCharacter::setVisualParamWeight ( S32  index,
F32  weight,
BOOL  set_by_user = FALSE 
)

Definition at line 317 of file llcharacter.cpp.

References FALSE, llendl, llwarns, mVisualParamIndexMap, and TRUE.

BOOL LLCharacter::setVisualParamWeight ( const char *  param_name,
F32  weight,
BOOL  set_by_user = FALSE 
)

Definition at line 299 of file llcharacter.cpp.

References LLStringTable::checkString(), FALSE, llendl, llwarns, mVisualParamNameMap, sVisualParamNames, LLStringBase< char >::toLower(), and TRUE.

BOOL LLCharacter::setVisualParamWeight ( LLVisualParam which_param,
F32  weight,
BOOL  set_by_user = FALSE 
)

Definition at line 284 of file llcharacter.cpp.

References FALSE, LLVisualParam::getID(), mVisualParamIndexMap, S32, and TRUE.

Referenced by LLUndoWearable::applyUndoRedo(), LLHandMotion::onActivate(), LLScrollingPanelParam::onHintHeldDown(), LLScrollingPanelParam::onHintMaxMouseUp(), LLScrollingPanelParam::onHintMinMouseUp(), LLScrollingPanelParam::onSliderMoved(), LLEyeMotion::onUpdate(), LLHandMotion::onUpdate(), LLVisualParamHint::preRender(), LLWearable::removeFromAvatar(), LLVisualParamHint::render(), LLVOAvatar::setClothesColor(), LLVOAvatar::writeCAL3D(), and LLWearable::writeToAvatar().

BOOL LLCharacter::startMotion ( const LLUUID id,
F32  start_offset = 0.f 
) [virtual]

Reimplemented in LLVOAvatar.

Definition at line 132 of file llcharacter.cpp.

References mMotionController, and LLMotionController::startMotion().

Referenced by LLKeyframeMotion::onActivate(), and LLVOAvatar::startMotion().

BOOL LLCharacter::stopMotion ( const LLUUID id,
BOOL  stop_immediate = FALSE 
) [virtual]

Reimplemented in LLVOAvatar.

Definition at line 141 of file llcharacter.cpp.

References mMotionController, and LLMotionController::stopMotionLocally().

Referenced by LLVOAvatar::stopMotion().

void LLCharacter::updateMotion ( BOOL  force_update = FALSE  ) 

Definition at line 173 of file llcharacter.cpp.

References LLMotionController::isPaused(), mMotionController, mPauseRequest, LLMotionController::pause(), LLMotionController::unpause(), and LLMotionController::updateMotion().

Referenced by LLPreviewAnimation::render(), and LLVOAvatar::updateCharacter().

void LLCharacter::updateVisualParams (  )  [virtual]

Reimplemented in LLVOAvatar.

Definition at line 478 of file llcharacter.cpp.

References getFirstVisualParam(), getNextVisualParam(), mSex, and param.

Referenced by LLHandMotion::onActivate(), LLEmote::onActivate(), LLEmote::onDeactivate(), LLEyeMotion::onUpdate(), LLHandMotion::onUpdate(), LLEmote::onUpdate(), and LLVOAvatar::updateVisualParams().


Member Data Documentation

LLAssocList<std::string, void *> LLCharacter::mAnimationData [protected]

Definition at line 258 of file llcharacter.h.

Referenced by getAnimationData(), removeAnimationData(), and setAnimationData().

U32 LLCharacter::mAppearanceSerialNum [protected]

Definition at line 262 of file llcharacter.h.

Referenced by getAppearanceSerialNum(), and setAppearanceSerialNum().

VisualParamIndexMap_t::iterator LLCharacter::mCurIterator [private]

Definition at line 271 of file llcharacter.h.

Referenced by getFirstVisualParam(), and getNextVisualParam().

LLMotionController LLCharacter::mMotionController [protected]

Definition at line 256 of file llcharacter.h.

Referenced by addMotion(), areAnimationsPaused(), createMotion(), deactivateAllMotions(), LLVOAvatar::findMotion(), flushAllMotions(), isMotionActive(), LLCharacter(), removeMotion(), requestPause(), setAnimTimeFactor(), setTimeStep(), startMotion(), stopMotion(), LLVOAvatar::updateCharacter(), and updateMotion().

LLAnimPauseRequest LLCharacter::mPauseRequest [protected]

Definition at line 264 of file llcharacter.h.

Referenced by LLCharacter(), requestPause(), and updateMotion().

F32 LLCharacter::mPreferredPelvisHeight [protected]

Definition at line 260 of file llcharacter.h.

Referenced by getPreferredPelvisHeight().

ESex LLCharacter::mSex [protected]

Definition at line 261 of file llcharacter.h.

Referenced by getSex(), setSex(), and updateVisualParams().

U32 LLCharacter::mSkeletonSerialNum [protected]

Definition at line 263 of file llcharacter.h.

Referenced by getSkeletonSerialNum(), setSkeletonSerialNum(), and LLVOAvatar::updateVisualParams().

VisualParamIndexMap_t LLCharacter::mVisualParamIndexMap [private]

Definition at line 270 of file llcharacter.h.

Referenced by addSharedVisualParam(), addVisualParam(), getFirstVisualParam(), getNextVisualParam(), getVisualParam(), getVisualParamCount(), getVisualParamID(), getVisualParamWeight(), and setVisualParamWeight().

VisualParamNameMap_t LLCharacter::mVisualParamNameMap [private]

Definition at line 273 of file llcharacter.h.

Referenced by addVisualParam(), getVisualParam(), getVisualParamWeight(), and setVisualParamWeight().

std::vector< LLCharacter * > LLCharacter::sInstances [static]

Definition at line 253 of file llcharacter.h.

Referenced by LLVOAvatar::areAllNearbyInstancesBaked(), LLVOAvatar::cullAvatarsByPixelArea(), LLVOAvatar::deleteCachedImages(), LLVOAvatar::dumpBakedStatus(), LLVOAvatar::dumpTotalLocalTextureByteCount(), LLVOAvatar::getUnbakedPixelAreaRank(), LLCharacter(), LLVOAvatar::LLVOAvatar(), LLKeyframeMotion::onLoadComplete(), LLVOAvatar::releaseMeshData(), LLViewerObjectList::renderObjectsForSelect(), LLVOAvatar::restoreGL(), LLVOAvatar::updateAllAvatarVisiblity(), LLFloaterAvatarList::updateAvatarList(), LLVOAvatar::updateCharacter(), LLFloaterSnapshot::Impl::updateLayout(), LLLocalSpeakerMgr::updateSpeakerList(), and ~LLCharacter().

LLStringTable LLCharacter::sVisualParamNames [static, private]

Definition at line 275 of file llcharacter.h.

Referenced by addVisualParam(), getVisualParam(), getVisualParamWeight(), and setVisualParamWeight().


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