#include <lltoolmorph.h>
Definition at line 53 of file lltoolmorph.h.
typedef std::set<LLVisualParamHint*> LLVisualParamHint::instance_list_t [protected] |
LLVisualParamHint::LLVisualParamHint | ( | S32 | pos_x, | |
S32 | pos_y, | |||
S32 | width, | |||
S32 | height, | |||
LLViewerJointMesh * | mesh, | |||
LLViewerVisualParam * | param, | |||
F32 | param_weight | |||
) |
Definition at line 77 of file lltoolmorph.cpp.
References LLUI::getUIImage(), llassert, mBackgroundp, and sInstances.
LLVisualParamHint::~LLVisualParamHint | ( | ) | [virtual] |
BOOL LLVisualParamHint::needsRender | ( | ) | [virtual] |
Reimplemented from LLDynamicTexture.
Definition at line 140 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 145 of file lltoolmorph.cpp.
References 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 164 of file lltoolmorph.cpp.
References LLGLImmediate::color4f(), cosf, DEG_TO_RAD, FALSE, LLGLImmediate::flush(), gAgent, LLAgent::getAvatarObject(), LLViewerVisualParam::getCameraAngle(), LLViewerVisualParam::getCameraDistance(), LLViewerVisualParam::getCameraElevation(), LLMorphView::getCameraTargetJoint(), LLViewerVisualParam::getCameraTargetName(), LLSingleton< LLViewerCamera >::getInstance(), LLVOAvatar::getJoint(), LLVOAvatar::getRootJoint(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), gGL, gMorphView, mBackgroundp, LLViewerObject::mDrawable, LLDynamicTexture::mHeight, mIsVisible, mLastParamWeight, mNeedsUpdate, LLDynamicTexture::mOrigin, mVisualParam, LLDynamicTexture::mWidth, LLCoord::mX, LLCoord::mY, LLPointer< Type >::notNull(), NULL, LLDrawPoolAvatar::renderAvatars(), LLVisualParamReset::sDirty, LLCamera::setAspect(), LLCoordFrame::setOriginAndLookAt(), LLViewerCamera::setPerspective(), LLCharacter::setVisualParamWeight(), sinf, and TRUE.
void LLVisualParamHint::requestUpdate | ( | S32 | delay_frames | ) | [inline] |
Definition at line 68 of file lltoolmorph.h.
References mDelayFrames, mNeedsUpdate, and TRUE.
Referenced by LLScrollingPanelParam::updatePanel().
void LLVisualParamHint::setUpdateDelayFrames | ( | S32 | delay_frames | ) | [inline] |
Definition at line 69 of file lltoolmorph.h.
References mDelayFrames.
Referenced by LLScrollingPanelParam::setVisible().
void LLVisualParamHint::draw | ( | void | ) |
Definition at line 250 of file lltoolmorph.cpp.
References LLGLImmediate::begin(), LLDynamicTexture::bindTexture(), LLGLImmediate::color4f(), LLGLImmediate::end(), gGL, LLDynamicTexture::mHeight, mIsVisible, LLDynamicTexture::mWidth, LLVertexBuffer::QUADS, LLGLImmediate::texCoord2i(), LLImageGL::unbindTexture(), and LLGLImmediate::vertex2i().
Referenced by LLScrollingPanelParam::draw().
LLViewerVisualParam* LLVisualParamHint::getVisualParam | ( | ) | [inline] |
Definition at line 72 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 73 of file lltoolmorph.h.
References mVisualParamWeight.
Referenced by LLScrollingPanelParam::onHintHeldDown(), and LLScrollingPanelParam::onHintMouseDown().
BOOL LLVisualParamHint::getVisible | ( | ) | [inline] |
Definition at line 74 of file lltoolmorph.h.
References mIsVisible.
Referenced by LLScrollingPanelParam::draw().
void LLVisualParamHint::setAllowsUpdates | ( | BOOL | b | ) | [inline] |
Definition at line 76 of file lltoolmorph.h.
References mAllowsUpdates.
Referenced by LLScrollingPanelParam::LLScrollingPanelParam(), and LLScrollingPanelParam::setVisible().
const LLRect& LLVisualParamHint::getRect | ( | ) | [inline] |
Definition at line 78 of file lltoolmorph.h.
References mRect.
Referenced by LLScrollingPanelParam::draw().
void LLVisualParamHint::requestHintUpdates | ( | LLVisualParamHint * | exception1 = NULL , |
|
LLVisualParamHint * | exception2 = NULL | |||
) | [static] |
Definition at line 116 of file lltoolmorph.cpp.
References mAllowsUpdates, mDelayFrames, mNeedsUpdate, 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().
BOOL LLVisualParamHint::mNeedsUpdate [protected] |
Definition at line 84 of file lltoolmorph.h.
Referenced by needsRender(), render(), requestHintUpdates(), and requestUpdate().
BOOL LLVisualParamHint::mIsVisible [protected] |
LLViewerJointMesh* LLVisualParamHint::mJointMesh [protected] |
Definition at line 86 of file lltoolmorph.h.
LLViewerVisualParam* LLVisualParamHint::mVisualParam [protected] |
Definition at line 87 of file lltoolmorph.h.
Referenced by getVisualParam(), preRender(), and render().
F32 LLVisualParamHint::mVisualParamWeight [protected] |
BOOL LLVisualParamHint::mAllowsUpdates [protected] |
Definition at line 89 of file lltoolmorph.h.
Referenced by needsRender(), requestHintUpdates(), and setAllowsUpdates().
S32 LLVisualParamHint::mDelayFrames [protected] |
Definition at line 90 of file lltoolmorph.h.
Referenced by needsRender(), requestHintUpdates(), requestUpdate(), and setUpdateDelayFrames().
LLRect LLVisualParamHint::mRect [protected] |
F32 LLVisualParamHint::mLastParamWeight [protected] |
LLUIImagePtr LLVisualParamHint::mBackgroundp [protected] |
LLVisualParamHint::instance_list_t LLVisualParamHint::sInstances [static, protected] |
Reimplemented from LLDynamicTexture.
Definition at line 97 of file lltoolmorph.h.
Referenced by LLVisualParamHint(), requestHintUpdates(), and ~LLVisualParamHint().