LLDriverParam Class Reference

#include <lldriverparam.h>

Inheritance diagram for LLDriverParam:

Inheritance graph
[legend]
Collaboration diagram for LLDriverParam:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLDriverParam (LLVOAvatar *avatarp)
 ~LLDriverParam ()
LLDriverParamInfogetInfo () 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 LLVector3getAvgDistortion ()
F32 getMaxDistortion ()
LLVector3 getVertexDistortion (S32 index, LLPolyMesh *poly_mesh)
const LLVector3getFirstDistortion (U32 *index, LLPolyMesh **poly_mesh)
const LLVector3getNextDistortion (U32 *index, LLPolyMesh **poly_mesh)

Protected Types

typedef std::vector< LLDrivenEntryentry_list_t

Protected Member Functions

F32 getDrivenWeight (const LLDrivenEntry *driven, F32 input_weight)

Protected Attributes

LLVector3 mDefaultVec
entry_list_t mDriven
LLViewerVisualParammCurrentDistortionParam
LLVOAvatarmAvatarp

Detailed Description

Definition at line 77 of file lldriverparam.h.


Member Typedef Documentation

typedef std::vector<LLDrivenEntry> LLDriverParam::entry_list_t [protected]

Definition at line 107 of file lldriverparam.h.


Constructor & Destructor Documentation

LLDriverParam::LLDriverParam ( LLVOAvatar avatarp  ) 

Definition at line 105 of file lldriverparam.cpp.

LLDriverParam::~LLDriverParam (  ) 

Definition at line 110 of file lldriverparam.cpp.


Member Function Documentation

void LLDriverParam::apply ( ESex  sex  )  [inline, virtual]

*virtual*/ BOOL parseData(LLXmlTreeNode* node);

Implements LLVisualParam.

Definition at line 90 of file lldriverparam.h.

const LLVector3 & LLDriverParam::getAvgDistortion (  )  [virtual]

Implements LLViewerVisualParam.

Definition at line 266 of file lldriverparam.cpp.

References count, mDefaultVec, mDriven, and S32.

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, LLDrivenEntry::mParam, and t.

Referenced by setAnimationTarget(), and setWeight().

const LLVector3 * LLDriverParam::getFirstDistortion ( U32 index,
LLPolyMesh **  poly_mesh 
) [virtual]

Implements LLViewerVisualParam.

Definition at line 311 of file lldriverparam.cpp.

References mCurrentDistortionParam, mDriven, NULL, and v.

LLDriverParamInfo* LLDriverParam::getInfo (  )  const [inline]

Reimplemented from LLViewerVisualParam.

Definition at line 84 of file lldriverparam.h.

References LLVisualParam::mInfo.

Referenced by setInfo().

F32 LLDriverParam::getMaxDistortion (  )  [virtual]

Implements LLViewerVisualParam.

Definition at line 283 of file lldriverparam.cpp.

References mDriven.

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, NULL, and v.

F32 LLDriverParam::getTotalDistortion (  )  [virtual]

*virtual*/ BOOL parseData(LLXmlTreeNode* node);

Implements LLViewerVisualParam.

Definition at line 254 of file lldriverparam.cpp.

References mDriven.

LLVector3 LLDriverParam::getVertexDistortion ( S32  index,
LLPolyMesh poly_mesh 
) [virtual]

Implements LLViewerVisualParam.

Definition at line 300 of file lldriverparam.cpp.

References mDriven.

void LLDriverParam::setAnimationTarget ( F32  target_value,
BOOL  set_by_user 
) [virtual]

Reimplemented from LLVisualParam.

Definition at line 374 of file lldriverparam.cpp.

References getDrivenWeight(), mDriven, LLVisualParam::mTargetWeight, and LLVisualParam::setAnimationTarget().

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, LLDriverParamInfo::mDrivenInfoList, LLVisualParam::mID, LLVisualParamInfo::mID, LLVisualParam::mInfo, NULL, param, S32, setWeight(), and TRUE.

Referenced by LLVOAvatar::loadAvatar().

void LLDriverParam::setWeight ( F32  weight,
BOOL  set_by_user 
) [virtual]

Reimplemented from LLVisualParam.

Definition at line 161 of file lldriverparam.cpp.

References getDrivenWeight(), LLVisualParam::getMaxWeight(), LLVisualParam::getMinWeight(), llclamp(), LLVisualParam::mCurWeight, mDriven, LLVisualParam::mIsAnimating, LLDrivenEntryInfo::mMax1, LLDrivenEntryInfo::mMax2, LLDrivenEntryInfo::mMin1, LLDrivenEntryInfo::mMin2, and t.

Referenced by setInfo().

void LLDriverParam::stopAnimating ( BOOL  set_by_user  )  [virtual]

Reimplemented from LLVisualParam.

Definition at line 392 of file lldriverparam.cpp.

References FALSE, mDriven, and LLVisualParam::stopAnimating().


Member Data Documentation

LLVOAvatar* LLDriverParam::mAvatarp [protected]

Definition at line 111 of file lldriverparam.h.

Referenced by setInfo().

LLViewerVisualParam* LLDriverParam::mCurrentDistortionParam [protected]

Definition at line 109 of file lldriverparam.h.

Referenced by getFirstDistortion(), and getNextDistortion().

LLVector3 LLDriverParam::mDefaultVec [protected]

Definition at line 106 of file lldriverparam.h.

Referenced by getAvgDistortion().

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().


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