LLVisualParam Class Reference

#include <llvisualparam.h>

Inheritance diagram for LLVisualParam:

Inheritance graph
[legend]
Collaboration diagram for LLVisualParam:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLVisualParam ()
virtual ~LLVisualParam ()
LLVisualParamInfogetInfo () const
BOOL setInfo (LLVisualParamInfo *info)
virtual void apply (ESex avatar_sex)=0
virtual void setWeight (F32 weight, BOOL set_by_user)
virtual void setAnimationTarget (F32 target_value, BOOL set_by_user)
virtual void animate (F32 delta, BOOL set_by_user)
virtual void stopAnimating (BOOL set_by_user)
S32 getID ()
void setID (S32 id)
const LLStringgetName () const
const LLStringgetDisplayName () const
const LLStringgetMaxDisplayName () const
const LLStringgetMinDisplayName () const
void setDisplayName (const LLString &s)
void setMaxDisplayName (const LLString &s)
void setMinDisplayName (const LLString &s)
EVisualParamGroup getGroup ()
F32 getMinWeight ()
F32 getMaxWeight ()
F32 getDefaultWeight ()
ESex getSex ()
F32 getWeight ()
F32 getCurrentWeight ()
F32 getLastWeight ()
BOOL isAnimating ()
LLVisualParamgetNextParam ()
void setNextParam (LLVisualParam *next)
virtual void setAnimating (BOOL is_animating)
BOOL getAnimating ()

Protected Attributes

F32 mCurWeight
F32 mLastWeight
LLVisualParammNext
F32 mTargetWeight
BOOL mIsAnimating
S32 mID
LLVisualParamInfomInfo

Detailed Description

Definition at line 91 of file llvisualparam.h.


Constructor & Destructor Documentation

LLVisualParam::LLVisualParam (  ) 

Definition at line 152 of file llvisualparam.cpp.

LLVisualParam::~LLVisualParam (  )  [virtual]

Definition at line 167 of file llvisualparam.cpp.

References mNext.


Member Function Documentation

void LLVisualParam::animate ( F32  delta,
BOOL  set_by_user 
) [virtual]

Reimplemented in LLTexLayerParamAlpha, and LLTexParamColor.

Definition at line 270 of file llvisualparam.cpp.

References mCurWeight, mIsAnimating, mTargetWeight, and setWeight().

Referenced by LLTexParamColor::animate(), and LLTexLayerParamAlpha::animate().

virtual void LLVisualParam::apply ( ESex  avatar_sex  )  [pure virtual]

Implemented in LLDriverParam, LLPolySkeletalDistortion, LLPolyMorphTarget, LLTexLayerParamAlpha, and LLTexParamColor.

Referenced by LLPolyMorphTarget::apply().

BOOL LLVisualParam::getAnimating (  )  [inline]

Definition at line 141 of file llvisualparam.h.

References mIsAnimating.

F32 LLVisualParam::getCurrentWeight (  )  [inline]

Definition at line 133 of file llvisualparam.h.

References mCurWeight.

F32 LLVisualParam::getDefaultWeight (  )  [inline]

Definition at line 129 of file llvisualparam.h.

References LLVisualParamInfo::mDefaultWeight, and mInfo.

Referenced by LLPolyMorphTarget::apply(), LLPolySkeletalDistortion::apply(), LLTexParamColor::getNetColor(), LLTexLayerParamAlpha::getSkip(), LLEmote::onDeactivate(), LLTexLayerParamAlpha::render(), LLTexParamColor::setInfo(), LLTexLayerParamAlpha::setInfo(), LLPolyMorphTarget::setInfo(), LLPolySkeletalDistortion::setInfo(), and LLDriverParam::setInfo().

const LLString& LLVisualParam::getDisplayName (  )  const [inline]

Definition at line 118 of file llvisualparam.h.

References LLVisualParamInfo::mDisplayName, and mInfo.

EVisualParamGroup LLVisualParam::getGroup (  )  [inline]

Definition at line 126 of file llvisualparam.h.

References LLVisualParamInfo::mGroup, and mInfo.

Referenced by setAnimationTarget(), and stopAnimating().

S32 LLVisualParam::getID (  )  [inline]

Definition at line 114 of file llvisualparam.h.

References mID.

Referenced by LLCharacter::getVisualParamWeight(), LLScrollingPanelParam::onHintMouseDown(), LLCharacter::setVisualParamWeight(), and LLGenePool::spawn().

LLVisualParamInfo* LLVisualParam::getInfo (  )  const [inline]

Reimplemented in LLDriverParam, LLPolySkeletalDistortion, LLPolyMorphTarget, LLTexLayerParamAlpha, LLTexParamColor, and LLViewerVisualParam.

Definition at line 99 of file llvisualparam.h.

References mInfo.

F32 LLVisualParam::getLastWeight (  )  [inline]

Definition at line 134 of file llvisualparam.h.

References mLastWeight.

const LLString& LLVisualParam::getMaxDisplayName (  )  const [inline]

Definition at line 119 of file llvisualparam.h.

References mInfo, and LLVisualParamInfo::mMaxName.

F32 LLVisualParam::getMaxWeight (  )  [inline]

Definition at line 128 of file llvisualparam.h.

References mInfo, and LLVisualParamInfo::mMaxWeight.

Referenced by LLDriverParam::getDrivenWeight(), LLEmote::onActivate(), LLEmote::onDeactivate(), LLEmote::onUpdate(), LLTexParamColor::setWeight(), LLTexLayerParamAlpha::setWeight(), and LLDriverParam::setWeight().

const LLString& LLVisualParam::getMinDisplayName (  )  const [inline]

Definition at line 120 of file llvisualparam.h.

References mInfo, and LLVisualParamInfo::mMinName.

F32 LLVisualParam::getMinWeight (  )  [inline]

Definition at line 127 of file llvisualparam.h.

References mInfo, and LLVisualParamInfo::mMinWeight.

Referenced by LLDriverParam::getDrivenWeight(), LLEmote::onUpdate(), LLTexParamColor::setWeight(), LLTexLayerParamAlpha::setWeight(), and LLDriverParam::setWeight().

const LLString& LLVisualParam::getName (  )  const [inline]

Definition at line 117 of file llvisualparam.h.

References mInfo, and LLVisualParamInfo::mName.

LLVisualParam* LLVisualParam::getNextParam (  )  [inline]

Definition at line 137 of file llvisualparam.h.

References mNext.

Referenced by LLCharacter::addSharedVisualParam().

ESex LLVisualParam::getSex (  )  [inline]

Definition at line 130 of file llvisualparam.h.

References mInfo, and LLVisualParamInfo::mSex.

Referenced by LLPolyMorphTarget::apply(), LLPolySkeletalDistortion::apply(), LLTexParamColor::getNetColor(), LLTexLayerParamAlpha::getSkip(), LLTexLayerParamAlpha::render(), LLTexParamColor::setWeight(), and LLTexLayerParamAlpha::setWeight().

F32 LLVisualParam::getWeight (  )  [inline]

Definition at line 132 of file llvisualparam.h.

References mCurWeight, mIsAnimating, and mTargetWeight.

Referenced by LLGenePool::spawn().

BOOL LLVisualParam::isAnimating (  )  [inline]

Definition at line 135 of file llvisualparam.h.

References mIsAnimating.

virtual void LLVisualParam::setAnimating ( BOOL  is_animating  )  [inline, virtual]

Definition at line 140 of file llvisualparam.h.

References mIsAnimating.

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

Reimplemented in LLDriverParam, LLTexLayerParamAlpha, and LLTexParamColor.

Definition at line 236 of file llvisualparam.cpp.

References getGroup(), llclamp(), mInfo, mIsAnimating, LLVisualParamInfo::mMaxWeight, LLVisualParamInfo::mMinWeight, mNext, mTargetWeight, setAnimationTarget(), TRUE, and VISUAL_PARAM_GROUP_TWEAKABLE.

Referenced by setAnimationTarget(), LLTexParamColor::setAnimationTarget(), LLTexLayerParamAlpha::setAnimationTarget(), and LLDriverParam::setAnimationTarget().

void LLVisualParam::setDisplayName ( const LLString s  )  [inline]

Definition at line 122 of file llvisualparam.h.

References LLVisualParamInfo::mDisplayName, mInfo, and s.

void LLVisualParam::setID ( S32  id  )  [inline]

Definition at line 115 of file llvisualparam.h.

References llassert, mID, and mInfo.

BOOL LLVisualParam::setInfo ( LLVisualParamInfo info  ) 

void LLVisualParam::setMaxDisplayName ( const LLString s  )  [inline]

Definition at line 123 of file llvisualparam.h.

References mInfo, LLVisualParamInfo::mMaxName, and s.

void LLVisualParam::setMinDisplayName ( const LLString s  )  [inline]

Definition at line 124 of file llvisualparam.h.

References mInfo, LLVisualParamInfo::mMinName, and s.

void LLVisualParam::setNextParam ( LLVisualParam next  ) 

Definition at line 260 of file llvisualparam.cpp.

References llassert, and mNext.

Referenced by LLCharacter::addSharedVisualParam().

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

Reimplemented in LLDriverParam, LLTexLayerParamAlpha, and LLTexParamColor.

Definition at line 211 of file llvisualparam.cpp.

References llclamp(), mCurWeight, mInfo, mIsAnimating, LLVisualParamInfo::mMaxWeight, LLVisualParamInfo::mMinWeight, mNext, and setWeight().

Referenced by animate(), LLEmote::onActivate(), LLEmote::onDeactivate(), LLEmote::onUpdate(), LLPolyMorphTarget::setInfo(), LLPolySkeletalDistortion::setInfo(), setWeight(), and stopAnimating().

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

Reimplemented in LLDriverParam.

Definition at line 282 of file llvisualparam.cpp.

References FALSE, getGroup(), mIsAnimating, mTargetWeight, setWeight(), and VISUAL_PARAM_GROUP_TWEAKABLE.

Referenced by LLDriverParam::stopAnimating().


Member Data Documentation

F32 LLVisualParam::mCurWeight [protected]

Definition at line 144 of file llvisualparam.h.

Referenced by animate(), LLPolyMorphTarget::apply(), LLPolySkeletalDistortion::apply(), getCurrentWeight(), LLTexParamColor::getNetColor(), LLTexLayerParamAlpha::getSkip(), getWeight(), LLTexLayerParamAlpha::render(), setWeight(), LLTexParamColor::setWeight(), LLTexLayerParamAlpha::setWeight(), and LLDriverParam::setWeight().

S32 LLVisualParam::mID [protected]

Definition at line 150 of file llvisualparam.h.

Referenced by getID(), setID(), LLTexParamColor::setInfo(), LLTexLayerParamAlpha::setInfo(), LLPolyMorphTarget::setInfo(), LLPolySkeletalDistortion::setInfo(), and LLDriverParam::setInfo().

LLVisualParamInfo* LLVisualParam::mInfo [protected]

Definition at line 151 of file llvisualparam.h.

Referenced by getDefaultWeight(), getDisplayName(), getGroup(), getInfo(), LLViewerVisualParam::getInfo(), LLTexParamColor::getInfo(), LLTexLayerParamAlpha::getInfo(), LLPolyMorphTarget::getInfo(), LLPolySkeletalDistortion::getInfo(), LLDriverParam::getInfo(), getMaxDisplayName(), getMaxWeight(), getMinDisplayName(), getMinWeight(), getName(), getSex(), setAnimationTarget(), setDisplayName(), setID(), LLTexParamColor::setInfo(), LLTexLayerParamAlpha::setInfo(), LLPolyMorphTarget::setInfo(), LLPolySkeletalDistortion::setInfo(), LLDriverParam::setInfo(), setMaxDisplayName(), setMinDisplayName(), and setWeight().

BOOL LLVisualParam::mIsAnimating [protected]

Definition at line 148 of file llvisualparam.h.

Referenced by animate(), LLPolySkeletalDistortion::apply(), getAnimating(), getWeight(), isAnimating(), setAnimating(), setAnimationTarget(), LLTexParamColor::setAnimationTarget(), LLTexLayerParamAlpha::setAnimationTarget(), setWeight(), LLTexParamColor::setWeight(), LLTexLayerParamAlpha::setWeight(), LLDriverParam::setWeight(), and stopAnimating().

F32 LLVisualParam::mLastWeight [protected]

Definition at line 145 of file llvisualparam.h.

Referenced by LLPolyMorphTarget::apply(), LLPolySkeletalDistortion::apply(), LLPolyMorphTarget::applyMask(), and getLastWeight().

LLVisualParam* LLVisualParam::mNext [protected]

Definition at line 146 of file llvisualparam.h.

Referenced by LLTexParamColor::animate(), LLTexLayerParamAlpha::animate(), LLPolyMorphTarget::apply(), getNextParam(), setAnimationTarget(), LLTexParamColor::setAnimationTarget(), LLTexLayerParamAlpha::setAnimationTarget(), setNextParam(), setWeight(), and ~LLVisualParam().

F32 LLVisualParam::mTargetWeight [protected]

Definition at line 147 of file llvisualparam.h.

Referenced by animate(), getWeight(), setAnimationTarget(), LLTexParamColor::setAnimationTarget(), LLTexLayerParamAlpha::setAnimationTarget(), LLDriverParam::setAnimationTarget(), and stopAnimating().


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