#include <llfloaterimagepreview.h>
Inheritance diagram for LLImagePreviewAvatar:
Public Member Functions | |
LLImagePreviewAvatar (S32 width, S32 height) | |
virtual | ~LLImagePreviewAvatar () |
void | setPreviewTarget (const char *joint_name, const char *mesh_name, LLImageRaw *imagep, F32 distance, BOOL male) |
void | setTexture (U32 name) |
BOOL | render () |
void | refresh () |
void | rotate (F32 yaw_radians, F32 pitch_radians) |
void | zoom (F32 zoom_amt) |
void | pan (F32 right, F32 up) |
virtual BOOL | needsRender () |
Protected Attributes | |
BOOL | mNeedsUpdate |
LLJoint * | mTargetJoint |
LLViewerJointMesh * | mTargetMesh |
F32 | mCameraDistance |
F32 | mCameraYaw |
F32 | mCameraPitch |
F32 | mCameraZoom |
LLVector3 | mCameraOffset |
LLPointer< LLVOAvatar > | mDummyAvatar |
U32 | mTextureName |
Definition at line 73 of file llfloaterimagepreview.h.
Definition at line 601 of file llfloaterimagepreview.cpp.
References gAgent, gCamera, LLAgent::getRegion(), gPipeline, LL_PCODE_LEGACY_AVATAR, LLPipeline::markVisible(), mCameraDistance, mCameraPitch, mCameraYaw, mCameraZoom, mDummyAvatar, mNeedsUpdate, mTargetJoint, mTargetMesh, mTextureName, LLUUID::null, NULL, TRUE, and LLVector3::zero.
LLImagePreviewAvatar::~LLImagePreviewAvatar | ( | ) | [virtual] |
virtual BOOL LLImagePreviewAvatar::needsRender | ( | ) | [inline, virtual] |
Reimplemented from LLDynamicTexture.
Definition at line 87 of file llfloaterimagepreview.h.
References mNeedsUpdate.
Definition at line 753 of file llfloaterimagepreview.cpp.
References llclamp(), mCameraDistance, mCameraOffset, mCameraZoom, LLVector3::mV, VY, and VZ.
Referenced by LLFloaterImagePreview::handleHover().
void LLImagePreviewAvatar::refresh | ( | ) |
Definition at line 730 of file llfloaterimagepreview.cpp.
References mNeedsUpdate, and TRUE.
Referenced by LLFloaterImagePreview::handleHover(), LLFloaterImagePreview::handleScrollWheel(), and LLFloaterImagePreview::onPreviewTypeCommit().
BOOL LLImagePreviewAvatar::render | ( | ) | [virtual] |
Reimplemented from LLDynamicTexture.
Definition at line 667 of file llfloaterimagepreview.cpp.
References f, FALSE, gCamera, LLViewerCamera::getDefaultFOV(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), gl_rect_2d_simple(), glColor4f, glOrtho, glPopMatrix, mCameraDistance, mCameraOffset, mCameraPitch, mCameraYaw, mCameraZoom, LLViewerObject::mDrawable, mDummyAvatar, LLDynamicTexture::mHeight, mNeedsUpdate, LLDynamicTexture::mOrigin, LLVOAvatar::mPelvisp, mTargetJoint, LLDynamicTexture::mWidth, LLCoord::mX, LLCoord::mY, LLPointer< Type >::notNull(), LLDrawPoolAvatar::renderAvatars(), LLCamera::setAspect(), LLCoordFrame::setOriginAndLookAt(), LLViewerCamera::setPerspective(), LLCamera::setView(), LLVertexBuffer::startRender(), stop_glerror, LLVertexBuffer::stopRender(), TRUE, LLVOAvatar::updateLOD(), LLVector3::y_axis, and LLVector3::z_axis.
Definition at line 738 of file llfloaterimagepreview.cpp.
References f, F_PI_BY_TWO, llclamp(), mCameraPitch, and mCameraYaw.
Referenced by LLFloaterImagePreview::handleHover().
void LLImagePreviewAvatar::setPreviewTarget | ( | const char * | joint_name, | |
const char * | mesh_name, | |||
LLImageRaw * | imagep, | |||
F32 | distance, | |||
BOOL | male | |||
) |
Definition at line 631 of file llfloaterimagepreview.cpp.
References LLVector3::clearVec(), f, FALSE, mCameraDistance, mCameraOffset, mCameraPitch, mCameraYaw, mCameraZoom, mDummyAvatar, mTargetJoint, mTargetMesh, mTextureName, LLViewerJointMesh::setTestTexture(), LLViewerJoint::setVisible(), and TRUE.
Referenced by LLFloaterImagePreview::onPreviewTypeCommit(), and LLFloaterImagePreview::postBuild().
Definition at line 80 of file llfloaterimagepreview.h.
References mTextureName.
Referenced by LLFloaterImagePreview::draw().
Definition at line 748 of file llfloaterimagepreview.cpp.
References f, llclamp(), and mCameraZoom.
Referenced by LLFloaterImagePreview::handleHover(), and LLFloaterImagePreview::handleScrollWheel().
F32 LLImagePreviewAvatar::mCameraDistance [protected] |
Definition at line 93 of file llfloaterimagepreview.h.
Referenced by LLImagePreviewAvatar(), pan(), render(), and setPreviewTarget().
LLVector3 LLImagePreviewAvatar::mCameraOffset [protected] |
Definition at line 97 of file llfloaterimagepreview.h.
Referenced by pan(), render(), and setPreviewTarget().
F32 LLImagePreviewAvatar::mCameraPitch [protected] |
Definition at line 95 of file llfloaterimagepreview.h.
Referenced by LLImagePreviewAvatar(), render(), rotate(), and setPreviewTarget().
F32 LLImagePreviewAvatar::mCameraYaw [protected] |
Definition at line 94 of file llfloaterimagepreview.h.
Referenced by LLImagePreviewAvatar(), render(), rotate(), and setPreviewTarget().
F32 LLImagePreviewAvatar::mCameraZoom [protected] |
Definition at line 96 of file llfloaterimagepreview.h.
Referenced by LLImagePreviewAvatar(), pan(), render(), setPreviewTarget(), and zoom().
LLPointer<LLVOAvatar> LLImagePreviewAvatar::mDummyAvatar [protected] |
Definition at line 98 of file llfloaterimagepreview.h.
Referenced by LLImagePreviewAvatar(), render(), setPreviewTarget(), and ~LLImagePreviewAvatar().
BOOL LLImagePreviewAvatar::mNeedsUpdate [protected] |
Definition at line 90 of file llfloaterimagepreview.h.
Referenced by LLImagePreviewAvatar(), needsRender(), refresh(), and render().
LLJoint* LLImagePreviewAvatar::mTargetJoint [protected] |
Definition at line 91 of file llfloaterimagepreview.h.
Referenced by LLImagePreviewAvatar(), render(), and setPreviewTarget().
LLViewerJointMesh* LLImagePreviewAvatar::mTargetMesh [protected] |
Definition at line 92 of file llfloaterimagepreview.h.
Referenced by LLImagePreviewAvatar(), and setPreviewTarget().
U32 LLImagePreviewAvatar::mTextureName [protected] |
Definition at line 99 of file llfloaterimagepreview.h.
Referenced by LLImagePreviewAvatar(), setPreviewTarget(), and setTexture().