#include <llcharacter.h>
Inheritance diagram for LLCharacter:
Definition at line 62 of file llcharacter.h.
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.
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.
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().
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().
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().
Definition at line 216 of file llcharacter.cpp.
References LLJoint::getName(), LLJoint::getParent(), getRootJoint(), llendl, llinfos, LLJoint::mChildren, and NULL.
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] |
U32 LLCharacter::getAppearanceSerialNum | ( | ) | const [inline] |
virtual LLVector3 LLCharacter::getCharacterAngularVelocity | ( | ) | [pure virtual] |
Implemented in LLVOAvatar.
Referenced by LLFlyAdjustMotion::onUpdate(), and LLWalkAdjustMotion::onUpdate().
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] |
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] |
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] |
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] |
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] |
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] |
S32 LLCharacter::getVisualParamID | ( | LLVisualParam * | id | ) | [inline] |
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().
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().
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().
Reimplemented in LLVOAvatar.
Definition at line 164 of file llcharacter.cpp.
Referenced by LLMotionController::updateMotionsByType().
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().
Definition at line 170 of file llcharacter.h.
References mMotionController, and LLMotionController::setTimeFactor().
Referenced by slow_mo_animations().
Definition at line 245 of file llcharacter.h.
References mSex.
Referenced by LLVOAvatar::updateVisualParams().
Definition at line 251 of file llcharacter.h.
References mSkeletonSerialNum.
Referenced by LLPolySkeletalDistortion::apply().
Definition at line 171 of file llcharacter.h.
References mMotionController, and LLMotionController::setTimeStep().
Referenced by LLPreviewAnimation::render().
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().
Reimplemented in LLVOAvatar.
Definition at line 132 of file llcharacter.cpp.
References mMotionController, and LLMotionController::startMotion().
Referenced by LLKeyframeMotion::onActivate(), and LLVOAvatar::startMotion().
Reimplemented in LLVOAvatar.
Definition at line 141 of file llcharacter.cpp.
References mMotionController, and LLMotionController::stopMotionLocally().
Referenced by LLVOAvatar::stopMotion().
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().
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] |
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().
Definition at line 270 of file llcharacter.h.
Referenced by addSharedVisualParam(), addVisualParam(), getFirstVisualParam(), getNextVisualParam(), getVisualParam(), getVisualParamCount(), getVisualParamID(), getVisualParamWeight(), and setVisualParamWeight().
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().