LLImagePreviewAvatar Class Reference

#include <llfloaterimagepreview.h>

Inheritance diagram for LLImagePreviewAvatar:

Inheritance graph
[legend]
Collaboration diagram for LLImagePreviewAvatar:

Collaboration graph
[legend]
List of all members.

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
LLJointmTargetJoint
LLViewerJointMeshmTargetMesh
F32 mCameraDistance
F32 mCameraYaw
F32 mCameraPitch
F32 mCameraZoom
LLVector3 mCameraOffset
LLPointer< LLVOAvatarmDummyAvatar
U32 mTextureName

Detailed Description

Definition at line 73 of file llfloaterimagepreview.h.


Constructor & Destructor Documentation

LLImagePreviewAvatar::LLImagePreviewAvatar ( S32  width,
S32  height 
)

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]

Definition at line 625 of file llfloaterimagepreview.cpp.

References mDummyAvatar.


Member Function Documentation

virtual BOOL LLImagePreviewAvatar::needsRender (  )  [inline, virtual]

Reimplemented from LLDynamicTexture.

Definition at line 87 of file llfloaterimagepreview.h.

References mNeedsUpdate.

void LLImagePreviewAvatar::pan ( F32  right,
F32  up 
)

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.

void LLImagePreviewAvatar::rotate ( F32  yaw_radians,
F32  pitch_radians 
)

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().

void LLImagePreviewAvatar::setTexture ( U32  name  )  [inline]

Definition at line 80 of file llfloaterimagepreview.h.

References mTextureName.

Referenced by LLFloaterImagePreview::draw().

void LLImagePreviewAvatar::zoom ( F32  zoom_amt  ) 

Definition at line 748 of file llfloaterimagepreview.cpp.

References f, llclamp(), and mCameraZoom.

Referenced by LLFloaterImagePreview::handleHover(), and LLFloaterImagePreview::handleScrollWheel().


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:25 2010 for Second Life Viewer by  doxygen 1.4.7