LLVisualParamHint Class Reference

#include <lltoolmorph.h>

Inheritance diagram for LLVisualParamHint:

Inheritance graph
[legend]
Collaboration diagram for LLVisualParamHint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLVisualParamHint (S32 pos_x, S32 pos_y, S32 width, S32 height, LLViewerJointMesh *mesh, LLViewerVisualParam *param, F32 param_weight)
virtual ~LLVisualParamHint ()
BOOL needsRender ()
void preRender (BOOL clear_depth)
BOOL render ()
void requestUpdate (S32 delay_frames)
void setUpdateDelayFrames (S32 delay_frames)
void draw ()
LLViewerVisualParamgetVisualParam ()
F32 getVisualParamWeight ()
BOOL getVisible ()
void setAllowsUpdates (BOOL b)
const LLRectgetRect ()

Static Public Member Functions

static void requestHintUpdates (LLVisualParamHint *exception1=NULL, LLVisualParamHint *exception2=NULL)

Protected Attributes

BOOL mNeedsUpdate
BOOL mIsVisible
LLViewerJointMeshmJointMesh
LLViewerVisualParammVisualParam
F32 mVisualParamWeight
BOOL mAllowsUpdates
S32 mDelayFrames
LLRect mRect
F32 mLastParamWeight
LLPointer< LLViewerImagemBackgroundp

Static Protected Attributes

static LLLinkedList< LLVisualParamHintsInstances

Detailed Description

Definition at line 54 of file lltoolmorph.h.


Constructor & Destructor Documentation

LLVisualParamHint::LLVisualParamHint ( S32  pos_x,
S32  pos_y,
S32  width,
S32  height,
LLViewerJointMesh mesh,
LLViewerVisualParam param,
F32  param_weight 
)

Definition at line 78 of file lltoolmorph.cpp.

References LLLinkedList< DATA_TYPE >::addData(), FALSE, LLViewerImageList::getImage(), LLControlGroup::getString(), gImageList, gViewerArt, llassert, mBackgroundp, sInstances, and TRUE.

LLVisualParamHint::~LLVisualParamHint (  )  [virtual]

Definition at line 109 of file lltoolmorph.cpp.

References LLLinkedList< DATA_TYPE >::removeData(), and sInstances.


Member Function Documentation

void LLVisualParamHint::draw (  ) 

Definition at line 254 of file lltoolmorph.cpp.

References LLDynamicTexture::bindTexture(), f, glBegin, glColor4f, glEnd, glTexCoord2i, LLDynamicTexture::mHeight, mIsVisible, LLDynamicTexture::mWidth, and LLImageGL::unbindTexture().

Referenced by LLScrollingPanelParam::draw().

const LLRect& LLVisualParamHint::getRect (  )  [inline]

Definition at line 79 of file lltoolmorph.h.

References mRect.

Referenced by LLScrollingPanelParam::draw().

BOOL LLVisualParamHint::getVisible (  )  [inline]

Definition at line 75 of file lltoolmorph.h.

References mIsVisible.

Referenced by LLScrollingPanelParam::draw().

LLViewerVisualParam* LLVisualParamHint::getVisualParam (  )  [inline]

Definition at line 73 of file lltoolmorph.h.

References mVisualParam.

Referenced by LLScrollingPanelParam::onHintHeldDown(), LLScrollingPanelParam::onHintMaxMouseUp(), LLScrollingPanelParam::onHintMinMouseUp(), LLScrollingPanelParam::onHintMouseDown(), and LLScrollingPanelParam::updatePanel().

F32 LLVisualParamHint::getVisualParamWeight (  )  [inline]

Definition at line 74 of file lltoolmorph.h.

References mVisualParamWeight.

Referenced by LLScrollingPanelParam::onHintHeldDown(), and LLScrollingPanelParam::onHintMouseDown().

BOOL LLVisualParamHint::needsRender (  )  [virtual]

Reimplemented from LLDynamicTexture.

Definition at line 143 of file lltoolmorph.cpp.

References gAgent, LLAgent::getAvatarObject(), mAllowsUpdates, LLVOAvatar::mAppearanceAnimating, mDelayFrames, and mNeedsUpdate.

void LLVisualParamHint::preRender ( BOOL  clear_depth  )  [virtual]

Reimplemented from LLDynamicTexture.

Definition at line 148 of file lltoolmorph.cpp.

References f, gAgent, LLAgent::getAvatarObject(), LLCharacter::getVisualParamWeight(), LLViewerObject::mDrawable, mLastParamWeight, mVisualParam, mVisualParamWeight, LLDynamicTexture::preRender(), LLCharacter::setVisualParamWeight(), LLVOAvatar::updateComposites(), LLVOAvatar::updateGeometry(), LLVOAvatar::updateLOD(), and LLVOAvatar::updateVisualParams().

BOOL LLVisualParamHint::render (  )  [virtual]

Reimplemented from LLDynamicTexture.

Definition at line 167 of file lltoolmorph.cpp.

References LLViewerImage::bindTexture(), cosf, DEG_TO_RAD, f, FALSE, gAgent, gCamera, LLAgent::getAvatarObject(), LLViewerVisualParam::getCameraAngle(), LLViewerVisualParam::getCameraDistance(), LLViewerVisualParam::getCameraElevation(), LLMorphView::getCameraTargetJoint(), LLViewerVisualParam::getCameraTargetName(), LLVOAvatar::getJoint(), LLVOAvatar::getRootJoint(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), gl_rect_2d_simple_tex(), glColor4f, glOrtho, glPopMatrix, gMorphView, mBackgroundp, LLViewerObject::mDrawable, LLDynamicTexture::mHeight, mIsVisible, mLastParamWeight, mNeedsUpdate, LLDynamicTexture::mOrigin, mVisualParam, LLDynamicTexture::mWidth, LLCoord::mX, LLCoord::mY, LLPointer< Type >::notNull(), NULL, LLVisualParamReset::sDirty, LLCamera::setAspect(), LLCoordFrame::setOriginAndLookAt(), LLViewerCamera::setPerspective(), LLCharacter::setVisualParamWeight(), sinf, and TRUE.

void LLVisualParamHint::requestHintUpdates ( LLVisualParamHint exception1 = NULL,
LLVisualParamHint exception2 = NULL 
) [static]

Definition at line 119 of file lltoolmorph.cpp.

References LLLinkedList< DATA_TYPE >::getFirstData(), LLLinkedList< DATA_TYPE >::getNextData(), S32, sInstances, and TRUE.

Referenced by LLUndoWearable::applyUndoRedo(), LLPanelEditWearable::onColorCommit(), LLScrollingPanelParam::onHintMaxMouseUp(), LLScrollingPanelParam::onHintMinMouseUp(), LLVOAvatar::onLocalTextureLoaded(), LLScrollingPanelParam::onSliderMouseUp(), LLViewerWindow::restoreGL(), LLVOAvatar::setLocalTexture(), and LLVOAvatar::setLocTexTE().

void LLVisualParamHint::requestUpdate ( S32  delay_frames  )  [inline]

Definition at line 69 of file lltoolmorph.h.

References mDelayFrames, mNeedsUpdate, and TRUE.

Referenced by LLScrollingPanelParam::updatePanel().

void LLVisualParamHint::setAllowsUpdates ( BOOL  b  )  [inline]

Definition at line 77 of file lltoolmorph.h.

References mAllowsUpdates.

Referenced by LLScrollingPanelParam::LLScrollingPanelParam(), and LLScrollingPanelParam::setVisible().

void LLVisualParamHint::setUpdateDelayFrames ( S32  delay_frames  )  [inline]

Definition at line 70 of file lltoolmorph.h.

References mDelayFrames.

Referenced by LLScrollingPanelParam::setVisible().


Member Data Documentation

BOOL LLVisualParamHint::mAllowsUpdates [protected]

Definition at line 90 of file lltoolmorph.h.

Referenced by needsRender(), and setAllowsUpdates().

LLPointer<LLViewerImage> LLVisualParamHint::mBackgroundp [protected]

Definition at line 95 of file lltoolmorph.h.

Referenced by LLVisualParamHint(), and render().

S32 LLVisualParamHint::mDelayFrames [protected]

Definition at line 91 of file lltoolmorph.h.

Referenced by needsRender(), requestUpdate(), and setUpdateDelayFrames().

BOOL LLVisualParamHint::mIsVisible [protected]

Definition at line 86 of file lltoolmorph.h.

Referenced by draw(), getVisible(), and render().

LLViewerJointMesh* LLVisualParamHint::mJointMesh [protected]

Definition at line 87 of file lltoolmorph.h.

F32 LLVisualParamHint::mLastParamWeight [protected]

Definition at line 93 of file lltoolmorph.h.

Referenced by preRender(), and render().

BOOL LLVisualParamHint::mNeedsUpdate [protected]

Definition at line 85 of file lltoolmorph.h.

Referenced by needsRender(), render(), and requestUpdate().

LLRect LLVisualParamHint::mRect [protected]

Definition at line 92 of file lltoolmorph.h.

Referenced by getRect().

LLViewerVisualParam* LLVisualParamHint::mVisualParam [protected]

Definition at line 88 of file lltoolmorph.h.

Referenced by getVisualParam(), preRender(), and render().

F32 LLVisualParamHint::mVisualParamWeight [protected]

Definition at line 89 of file lltoolmorph.h.

Referenced by getVisualParamWeight(), and preRender().

LLLinkedList< LLVisualParamHint > LLVisualParamHint::sInstances [static, protected]

Reimplemented from LLDynamicTexture.

Definition at line 97 of file lltoolmorph.h.

Referenced by LLVisualParamHint(), requestHintUpdates(), and ~LLVisualParamHint().


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