#include <lldriverparam.h>
Public Member Functions | |
LLDriverParam (LLVOAvatar *avatarp) | |
~LLDriverParam () | |
LLDriverParamInfo * | getInfo () const |
BOOL | setInfo (LLDriverParamInfo *info) |
void | apply (ESex sex) |
*virtual*/ BOOL parseData(LLXmlTreeNode* node); | |
void | setWeight (F32 weight, BOOL set_by_user) |
void | setAnimationTarget (F32 target_value, BOOL set_by_user) |
void | stopAnimating (BOOL set_by_user) |
F32 | getTotalDistortion () |
*virtual*/ BOOL parseData(LLXmlTreeNode* node); | |
const LLVector3 & | getAvgDistortion () |
F32 | getMaxDistortion () |
LLVector3 | getVertexDistortion (S32 index, LLPolyMesh *poly_mesh) |
const LLVector3 * | getFirstDistortion (U32 *index, LLPolyMesh **poly_mesh) |
const LLVector3 * | getNextDistortion (U32 *index, LLPolyMesh **poly_mesh) |
Protected Types | |
typedef std::vector < LLDrivenEntry > | entry_list_t |
Protected Member Functions | |
F32 | getDrivenWeight (const LLDrivenEntry *driven, F32 input_weight) |
Protected Attributes | |
LLVector3 | mDefaultVec |
entry_list_t | mDriven |
LLViewerVisualParam * | mCurrentDistortionParam |
LLVOAvatar * | mAvatarp |
Definition at line 77 of file lldriverparam.h.
typedef std::vector<LLDrivenEntry> LLDriverParam::entry_list_t [protected] |
Definition at line 107 of file lldriverparam.h.
LLDriverParam::LLDriverParam | ( | LLVOAvatar * | avatarp | ) |
Definition at line 105 of file lldriverparam.cpp.
LLDriverParam::~LLDriverParam | ( | ) |
Definition at line 110 of file lldriverparam.cpp.
LLDriverParamInfo* LLDriverParam::getInfo | ( | ) | const [inline] |
Reimplemented from LLViewerVisualParam.
Definition at line 84 of file lldriverparam.h.
References LLVisualParam::mInfo.
Referenced by setInfo().
BOOL LLDriverParam::setInfo | ( | LLDriverParamInfo * | info | ) |
Definition at line 114 of file lldriverparam.cpp.
References FALSE, LLVisualParam::getDefaultWeight(), getInfo(), LLCharacter::getVisualParam(), llassert, llendl, llerrs, mAvatarp, mDriven, LLDrivenEntryInfo::mDrivenID, LLDriverParamInfo::mDrivenInfoList, LLVisualParam::mID, LLVisualParamInfo::mID, LLVisualParam::mInfo, NULL, S32, setWeight(), and TRUE.
Referenced by LLVOAvatar::loadAvatar().
void LLDriverParam::apply | ( | ESex | sex | ) | [inline, virtual] |
*virtual*/ BOOL parseData(LLXmlTreeNode* node);
Implements LLVisualParam.
Definition at line 90 of file lldriverparam.h.
Reimplemented from LLVisualParam.
Definition at line 161 of file lldriverparam.cpp.
References LLVisualParam::getAnimating(), getDrivenWeight(), LLVisualParam::getMaxWeight(), LLVisualParam::getMinWeight(), llclamp(), LLVisualParam::mCurWeight, mDriven, LLDrivenEntry::mInfo, LLVisualParam::mIsAnimating, LLDrivenEntryInfo::mMax1, LLDrivenEntryInfo::mMax2, LLDrivenEntryInfo::mMin1, LLDrivenEntryInfo::mMin2, LLDrivenEntry::mParam, and LLVisualParam::setWeight().
Referenced by setInfo().
Reimplemented from LLVisualParam.
Definition at line 374 of file lldriverparam.cpp.
References getDrivenWeight(), mDriven, LLDrivenEntry::mParam, LLVisualParam::mTargetWeight, and LLVisualParam::setAnimationTarget().
void LLDriverParam::stopAnimating | ( | BOOL | set_by_user | ) | [virtual] |
Reimplemented from LLVisualParam.
Definition at line 392 of file lldriverparam.cpp.
References FALSE, mDriven, LLDrivenEntry::mParam, LLVisualParam::setAnimating(), and LLVisualParam::stopAnimating().
F32 LLDriverParam::getTotalDistortion | ( | ) | [virtual] |
*virtual*/ BOOL parseData(LLXmlTreeNode* node);
Implements LLViewerVisualParam.
Definition at line 254 of file lldriverparam.cpp.
References LLViewerVisualParam::getTotalDistortion(), mDriven, and LLDrivenEntry::mParam.
const LLVector3 & LLDriverParam::getAvgDistortion | ( | ) | [virtual] |
Implements LLViewerVisualParam.
Definition at line 266 of file lldriverparam.cpp.
References LLViewerVisualParam::getAvgDistortion(), mDefaultVec, mDriven, LLDrivenEntry::mParam, and S32.
F32 LLDriverParam::getMaxDistortion | ( | ) | [virtual] |
Implements LLViewerVisualParam.
Definition at line 283 of file lldriverparam.cpp.
References LLViewerVisualParam::getMaxDistortion(), mDriven, and LLDrivenEntry::mParam.
LLVector3 LLDriverParam::getVertexDistortion | ( | S32 | index, | |
LLPolyMesh * | poly_mesh | |||
) | [virtual] |
Implements LLViewerVisualParam.
Definition at line 300 of file lldriverparam.cpp.
References LLViewerVisualParam::getVertexDistortion(), mDriven, and LLDrivenEntry::mParam.
const LLVector3 * LLDriverParam::getFirstDistortion | ( | U32 * | index, | |
LLPolyMesh ** | poly_mesh | |||
) | [virtual] |
Implements LLViewerVisualParam.
Definition at line 311 of file lldriverparam.cpp.
References LLViewerVisualParam::getFirstDistortion(), mCurrentDistortionParam, mDriven, LLDrivenEntry::mParam, and NULL.
const LLVector3 * LLDriverParam::getNextDistortion | ( | U32 * | index, | |
LLPolyMesh ** | poly_mesh | |||
) | [virtual] |
Implements LLViewerVisualParam.
Definition at line 329 of file lldriverparam.cpp.
References LLViewerVisualParam::getFirstDistortion(), LLViewerVisualParam::getNextDistortion(), llassert, mCurrentDistortionParam, mDriven, LLDrivenEntry::mParam, and NULL.
F32 LLDriverParam::getDrivenWeight | ( | const LLDrivenEntry * | driven, | |
F32 | input_weight | |||
) | [protected] |
Definition at line 406 of file lldriverparam.cpp.
References LLVisualParam::getMaxWeight(), LLVisualParam::getMinWeight(), LLDrivenEntry::mInfo, LLDrivenEntryInfo::mMax1, LLDrivenEntryInfo::mMax2, LLDrivenEntryInfo::mMin1, LLDrivenEntryInfo::mMin2, and LLDrivenEntry::mParam.
Referenced by setAnimationTarget(), and setWeight().
LLVector3 LLDriverParam::mDefaultVec [protected] |
entry_list_t LLDriverParam::mDriven [protected] |
Definition at line 108 of file lldriverparam.h.
Referenced by getAvgDistortion(), getFirstDistortion(), getMaxDistortion(), getNextDistortion(), getTotalDistortion(), getVertexDistortion(), setAnimationTarget(), setInfo(), setWeight(), and stopAnimating().
Definition at line 109 of file lldriverparam.h.
Referenced by getFirstDistortion(), and getNextDistortion().
LLVOAvatar* LLDriverParam::mAvatarp [protected] |