LLTexLayerParamAlpha Class Reference

#include <lltexlayer.h>

Inheritance diagram for LLTexLayerParamAlpha:

Inheritance graph
[legend]
Collaboration diagram for LLTexLayerParamAlpha:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::list< LLTexLayerParamAlpha * > param_alpha_ptr_list_t

Public Member Functions

 LLTexLayerParamAlpha (LLTexLayer *layer)
 ~LLTexLayerParamAlpha ()
LLTexLayerParamAlphaInfogetInfo () const
BOOL setInfo (LLTexLayerParamAlphaInfo *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)
BOOL render (S32 x, S32 y, S32 width, S32 height)
BOOL getSkip ()
void deleteCaches ()
LLTexLayergetTexLayer ()
BOOL getMultiplyBlend ()

Static Public Member Functions

static void dumpCacheByteCount ()
static void getCacheByteCount (S32 *gl_bytes)

Static Public Attributes

static param_alpha_ptr_list_t sInstances

Protected Attributes

LLPointer< LLImageGLmCachedProcessedImageGL
LLTexLayermTexLayer
LLPointer< LLImageTGAmStaticImageTGA
LLPointer< LLImageRawmStaticImageRaw
BOOL mNeedsCreateTexture
BOOL mStaticImageInvalid
LLVector3 mAvgDistortionVec
F32 mCachedEffectiveWeight

Detailed Description

Definition at line 375 of file lltexlayer.h.


Member Typedef Documentation

typedef std::list< LLTexLayerParamAlpha* > LLTexLayerParamAlpha::param_alpha_ptr_list_t

Definition at line 423 of file lltexlayer.h.


Constructor & Destructor Documentation

LLTexLayerParamAlpha::LLTexLayerParamAlpha ( LLTexLayer layer  ) 

Definition at line 1878 of file lltexlayer.cpp.

References sInstances.

LLTexLayerParamAlpha::~LLTexLayerParamAlpha (  ) 

Definition at line 1890 of file lltexlayer.cpp.

References deleteCaches(), and sInstances.


Member Function Documentation

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

Reimplemented from LLVisualParam.

Definition at line 1958 of file lltexlayer.cpp.

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

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

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

Implements LLVisualParam.

Definition at line 388 of file lltexlayer.h.

void LLTexLayerParamAlpha::deleteCaches (  ) 

Definition at line 1915 of file lltexlayer.cpp.

References FALSE, mCachedProcessedImageGL, mNeedsCreateTexture, mStaticImageRaw, mStaticImageTGA, and NULL.

Referenced by ~LLTexLayerParamAlpha().

void LLTexLayerParamAlpha::dumpCacheByteCount (  )  [static]

Definition at line 1849 of file lltexlayer.cpp.

References getCacheByteCount(), llendl, llinfos, and S32.

Referenced by output_statistics().

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

Implements LLViewerVisualParam.

Definition at line 395 of file lltexlayer.h.

References mAvgDistortionVec.

void LLTexLayerParamAlpha::getCacheByteCount ( S32 gl_bytes  )  [static]

Definition at line 1857 of file lltexlayer.cpp.

References LLImageGL::getComponents(), LLImageGL::getHasGLTexture(), LLImageGL::getHeight(), LLImageGL::getWidth(), S32, and sInstances.

Referenced by dumpCacheByteCount().

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

Implements LLViewerVisualParam.

Definition at line 398 of file lltexlayer.h.

References mAvgDistortionVec, and NULL.

LLTexLayerParamAlphaInfo* LLTexLayerParamAlpha::getInfo (  )  const [inline]

Reimplemented from LLViewerVisualParam.

Definition at line 382 of file lltexlayer.h.

References LLVisualParam::mInfo.

Referenced by getMultiplyBlend(), getSkip(), and render().

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

Implements LLViewerVisualParam.

Definition at line 396 of file lltexlayer.h.

BOOL LLTexLayerParamAlpha::getMultiplyBlend (  )  [inline]

Definition at line 406 of file lltexlayer.h.

References getInfo(), and LLTexLayerParamAlphaInfo::mMultiplyBlend.

Referenced by LLTexLayer::renderAlphaMasks().

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

Implements LLViewerVisualParam.

Definition at line 399 of file lltexlayer.h.

References NULL.

BOOL LLTexLayerParamAlpha::getSkip (  ) 

Definition at line 1966 of file lltexlayer.cpp.

References FALSE, LLTexLayerSet::getAvatar(), LLVisualParam::getDefaultWeight(), getInfo(), LLVisualParam::getSex(), LLCharacter::getSex(), LLTexLayer::getTexLayerSet(), LLViewerVisualParam::getWearableType(), is_approx_zero(), LLVOAvatar::isWearingWearableType(), LLVisualParam::mCurWeight, mTexLayer, TRUE, type, and WT_INVALID.

Referenced by render().

LLTexLayer* LLTexLayerParamAlpha::getTexLayer (  )  [inline]

Definition at line 405 of file lltexlayer.h.

References mTexLayer.

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

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

Implements LLViewerVisualParam.

Definition at line 394 of file lltexlayer.h.

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

Implements LLViewerVisualParam.

Definition at line 397 of file lltexlayer.h.

References f.

BOOL LLTexLayerParamAlpha::render ( S32  x,
S32  y,
S32  width,
S32  height 
)

Definition at line 1989 of file lltexlayer.cpp.

References f, FALSE, LLTexLayerSet::getAvatar(), LLVisualParam::getDefaultWeight(), LLTexStaticImageList::getImageTGA(), getInfo(), LLVisualParam::getSex(), LLCharacter::getSex(), getSkip(), LLTexLayer::getTexLayerSet(), gGLManager, gGradientPaletteList, gl_rect_2d_simple(), gl_rect_2d_simple_tex(), glBlendFunc, glColor4f, gPipeline, gTexStaticImageList, LLPipeline::hasRenderDebugFeatureMask(), LLPointer< Type >::isNull(), llendl, llwarns, mCachedEffectiveWeight, mCachedProcessedImageGL, LLVisualParam::mCurWeight, LLGLManager::mHasPalettedTextures, LLVOAvatar::mIsSelf, mNeedsCreateTexture, LLTexLayerParamAlphaInfo::mStaticImageFileName, mStaticImageInvalid, mStaticImageRaw, mStaticImageTGA, mTexLayer, LLPointer< Type >::notNull(), NULL, LLPipeline::RENDER_DEBUG_FEATURE_PALETTE, S32, LLGradientPaletteList::setHardwarePalette(), LLTexLayerSet::sHasCaches, stop_glerror, and TRUE.

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

Reimplemented from LLVisualParam.

Definition at line 1947 of file lltexlayer.cpp.

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

BOOL LLTexLayerParamAlpha::setInfo ( LLTexLayerParamAlphaInfo info  ) 

Definition at line 1899 of file lltexlayer.cpp.

References LLCharacter::addVisualParam(), FALSE, LLTexLayerSet::getAvatar(), LLVisualParam::getDefaultWeight(), LLTexLayer::getTexLayerSet(), llassert, LLVisualParam::mID, LLVisualParamInfo::mID, LLVisualParam::mInfo, mTexLayer, NULL, setWeight(), and TRUE.

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

Reimplemented from LLVisualParam.

Definition at line 1923 of file lltexlayer.cpp.

References F32_to_U8(), LLTexLayerSet::getAvatar(), LLVisualParam::getMaxWeight(), LLVisualParam::getMinWeight(), LLVisualParam::getSex(), LLCharacter::getSex(), LLTexLayer::getTexLayerSet(), LLVOAvatar::invalidateComposite(), LLTexLayer::invalidateMorphMasks(), llclamp(), LLVisualParam::mCurWeight, LLVisualParam::mIsAnimating, and mTexLayer.

Referenced by setAnimationTarget(), and setInfo().


Member Data Documentation

LLVector3 LLTexLayerParamAlpha::mAvgDistortionVec [protected]

Definition at line 415 of file lltexlayer.h.

Referenced by getAvgDistortion(), and getFirstDistortion().

F32 LLTexLayerParamAlpha::mCachedEffectiveWeight [protected]

Definition at line 416 of file lltexlayer.h.

Referenced by render().

LLPointer<LLImageGL> LLTexLayerParamAlpha::mCachedProcessedImageGL [protected]

Definition at line 409 of file lltexlayer.h.

Referenced by deleteCaches(), and render().

BOOL LLTexLayerParamAlpha::mNeedsCreateTexture [protected]

Definition at line 413 of file lltexlayer.h.

Referenced by deleteCaches(), and render().

BOOL LLTexLayerParamAlpha::mStaticImageInvalid [protected]

Definition at line 414 of file lltexlayer.h.

Referenced by render().

LLPointer<LLImageRaw> LLTexLayerParamAlpha::mStaticImageRaw [protected]

Definition at line 412 of file lltexlayer.h.

Referenced by deleteCaches(), and render().

LLPointer<LLImageTGA> LLTexLayerParamAlpha::mStaticImageTGA [protected]

Definition at line 411 of file lltexlayer.h.

Referenced by deleteCaches(), and render().

LLTexLayer* LLTexLayerParamAlpha::mTexLayer [protected]

Definition at line 410 of file lltexlayer.h.

Referenced by getSkip(), getTexLayer(), render(), setInfo(), and setWeight().

LLTexLayerParamAlpha::param_alpha_ptr_list_t LLTexLayerParamAlpha::sInstances [static]

Definition at line 424 of file lltexlayer.h.

Referenced by getCacheByteCount(), LLTexLayerParamAlpha(), LLTexLayerParamAlphaInfo::parseXml(), and ~LLTexLayerParamAlpha().


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