#include <lltoolmorph.h>
Inheritance diagram for LLVisualParamHint:
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 () |
LLViewerVisualParam * | getVisualParam () |
F32 | getVisualParamWeight () |
BOOL | getVisible () |
void | setAllowsUpdates (BOOL b) |
const LLRect & | getRect () |
Static Public Member Functions | |
static void | requestHintUpdates (LLVisualParamHint *exception1=NULL, LLVisualParamHint *exception2=NULL) |
Protected Attributes | |
BOOL | mNeedsUpdate |
BOOL | mIsVisible |
LLViewerJointMesh * | mJointMesh |
LLViewerVisualParam * | mVisualParam |
F32 | mVisualParamWeight |
BOOL | mAllowsUpdates |
S32 | mDelayFrames |
LLRect | mRect |
F32 | mLastParamWeight |
LLPointer< LLViewerImage > | mBackgroundp |
Static Protected Attributes | |
static LLLinkedList< LLVisualParamHint > | sInstances |
Definition at line 54 of file lltoolmorph.h.
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.
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.
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().
Definition at line 69 of file lltoolmorph.h.
References mDelayFrames, mNeedsUpdate, and TRUE.
Referenced by LLScrollingPanelParam::updatePanel().
Definition at line 77 of file lltoolmorph.h.
References mAllowsUpdates.
Referenced by LLScrollingPanelParam::LLScrollingPanelParam(), and LLScrollingPanelParam::setVisible().
Definition at line 70 of file lltoolmorph.h.
References mDelayFrames.
Referenced by LLScrollingPanelParam::setVisible().
BOOL LLVisualParamHint::mAllowsUpdates [protected] |
LLPointer<LLViewerImage> LLVisualParamHint::mBackgroundp [protected] |
S32 LLVisualParamHint::mDelayFrames [protected] |
Definition at line 91 of file lltoolmorph.h.
Referenced by needsRender(), requestUpdate(), and setUpdateDelayFrames().
BOOL LLVisualParamHint::mIsVisible [protected] |
LLViewerJointMesh* LLVisualParamHint::mJointMesh [protected] |
Definition at line 87 of file lltoolmorph.h.
F32 LLVisualParamHint::mLastParamWeight [protected] |
BOOL LLVisualParamHint::mNeedsUpdate [protected] |
Definition at line 85 of file lltoolmorph.h.
Referenced by needsRender(), render(), and requestUpdate().
LLRect LLVisualParamHint::mRect [protected] |
LLViewerVisualParam* LLVisualParamHint::mVisualParam [protected] |
Definition at line 88 of file lltoolmorph.h.
Referenced by getVisualParam(), preRender(), and render().
F32 LLVisualParamHint::mVisualParamWeight [protected] |
LLLinkedList< LLVisualParamHint > LLVisualParamHint::sInstances [static, protected] |
Reimplemented from LLDynamicTexture.
Definition at line 97 of file lltoolmorph.h.
Referenced by LLVisualParamHint(), requestHintUpdates(), and ~LLVisualParamHint().