LLTexParamColor Class Reference

#include <lltexlayer.h>

Inheritance diagram for LLTexParamColor:

Inheritance graph
[legend]
Collaboration diagram for LLTexParamColor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLTexParamColor (LLTexGlobalColor *tex_color)
 LLTexParamColor (LLTexLayer *layer)
 ~LLTexParamColor ()
LLTexParamColorInfogetInfo () const
BOOL setInfo (LLTexParamColorInfo *info)
void apply (ESex avatar_sex)
 *virtual*/ BOOL parseData(LLXmlTreeNode* node);
void setWeight (F32 weight, BOOL set_by_user)
void setAnimationTarget (F32 target_value, BOOL set_by_user)
void animate (F32 delta, 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)
LLColor4 getNetColor ()
EColorOperation getOperation () const

Protected Attributes

LLVector3 mAvgDistortionVec
LLTexGlobalColormTexGlobalColor
LLTexLayermTexLayer
LLVOAvatarmAvatar

Detailed Description

Definition at line 459 of file lltexlayer.h.


Constructor & Destructor Documentation

LLTexParamColor::LLTexParamColor ( LLTexGlobalColor tex_color  ) 

Definition at line 2324 of file lltexlayer.cpp.

LLTexParamColor::LLTexParamColor ( LLTexLayer layer  ) 

Definition at line 2333 of file lltexlayer.cpp.

LLTexParamColor::~LLTexParamColor (  ) 

Definition at line 2343 of file lltexlayer.cpp.


Member Function Documentation

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

Reimplemented from LLVisualParam.

Definition at line 2441 of file lltexlayer.cpp.

References LLVisualParam::animate(), and LLVisualParam::mNext.

void LLTexParamColor::apply ( ESex  avatar_sex  )  [inline, virtual]

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

Implements LLVisualParam.

Definition at line 473 of file lltexlayer.h.

const LLVector3& LLTexParamColor::getAvgDistortion (  )  [inline, virtual]

Implements LLViewerVisualParam.

Definition at line 481 of file lltexlayer.h.

References mAvgDistortionVec.

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

Implements LLViewerVisualParam.

Definition at line 484 of file lltexlayer.h.

References mAvgDistortionVec, and NULL.

LLTexParamColorInfo* LLTexParamColor::getInfo (  )  const [inline]

Reimplemented from LLViewerVisualParam.

Definition at line 467 of file lltexlayer.h.

References LLVisualParam::mInfo.

Referenced by getNetColor(), getOperation(), and setWeight().

F32 LLTexParamColor::getMaxDistortion (  )  [inline, virtual]

Implements LLViewerVisualParam.

Definition at line 482 of file lltexlayer.h.

LLColor4 LLTexParamColor::getNetColor (  ) 

Definition at line 2365 of file lltexlayer.cpp.

References end, f, LLVisualParam::getDefaultWeight(), getInfo(), LLVisualParam::getSex(), LLCharacter::getSex(), llassert, mAvatar, LLTexParamColorInfo::mColors, LLVisualParam::mCurWeight, LLTexParamColorInfo::mNumColors, S32, start, VW, VX, VY, and VZ.

const LLVector3* LLTexParamColor::getNextDistortion ( U32 index,
LLPolyMesh **  poly_mesh 
) [inline, virtual]

Implements LLViewerVisualParam.

Definition at line 485 of file lltexlayer.h.

References NULL.

EColorOperation LLTexParamColor::getOperation (  )  const [inline]

Definition at line 489 of file lltexlayer.h.

References getInfo(), and LLTexParamColorInfo::mOperation.

F32 LLTexParamColor::getTotalDistortion (  )  [inline, virtual]

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

Implements LLViewerVisualParam.

Definition at line 480 of file lltexlayer.h.

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

Implements LLViewerVisualParam.

Definition at line 483 of file lltexlayer.h.

References f.

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

Reimplemented from LLVisualParam.

Definition at line 2429 of file lltexlayer.cpp.

References LLVisualParam::mIsAnimating, LLVisualParam::mNext, LLVisualParam::mTargetWeight, LLVisualParam::setAnimationTarget(), setWeight(), and TRUE.

BOOL LLTexParamColor::setInfo ( LLTexParamColorInfo info  ) 

Definition at line 2351 of file lltexlayer.cpp.

References LLCharacter::addVisualParam(), FALSE, LLVisualParam::getDefaultWeight(), llassert, mAvatar, LLVisualParam::mID, LLVisualParamInfo::mID, LLVisualParam::mInfo, NULL, setWeight(), and TRUE.

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

Reimplemented from LLVisualParam.

Definition at line 2392 of file lltexlayer.cpp.

References F32_to_U8(), getInfo(), LLVisualParam::getMaxWeight(), LLVisualParam::getMinWeight(), LLVisualParam::getSex(), LLCharacter::getSex(), LLTexLayer::getTexLayerSet(), LLVOAvatar::invalidateComposite(), llclamp(), mAvatar, LLVisualParam::mCurWeight, LLVisualParam::mIsAnimating, mTexGlobalColor, mTexLayer, and LLVOAvatar::onGlobalColorChanged().

Referenced by setAnimationTarget(), and setInfo().


Member Data Documentation

LLVOAvatar* LLTexParamColor::mAvatar [protected]

Definition at line 496 of file lltexlayer.h.

Referenced by getNetColor(), setInfo(), and setWeight().

LLVector3 LLTexParamColor::mAvgDistortionVec [protected]

Definition at line 493 of file lltexlayer.h.

Referenced by getAvgDistortion(), and getFirstDistortion().

LLTexGlobalColor* LLTexParamColor::mTexGlobalColor [protected]

Definition at line 494 of file lltexlayer.h.

Referenced by setWeight().

LLTexLayer* LLTexParamColor::mTexLayer [protected]

Definition at line 495 of file lltexlayer.h.

Referenced by setWeight().


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