LLPreviewAnimation Class Reference

#include <llfloateranimpreview.h>

Inheritance diagram for LLPreviewAnimation:

Inheritance graph
[legend]
Collaboration diagram for LLPreviewAnimation:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPreviewAnimation (S32 width, S32 height)
virtual ~LLPreviewAnimation ()
BOOL render ()
void requestUpdate ()
void rotate (F32 yaw_radians, F32 pitch_radians)
void zoom (F32 zoom_delta)
void setZoom (F32 zoom_amt)
void pan (F32 right, F32 up)
virtual BOOL needsUpdate ()
LLVOAvatargetDummyAvatar ()

Protected Attributes

BOOL mNeedsUpdate
F32 mCameraDistance
F32 mCameraYaw
F32 mCameraPitch
F32 mCameraZoom
LLVector3 mCameraOffset
LLVector3 mCameraRelPos
LLPointer< LLVOAvatarmDummyAvatar

Detailed Description

Definition at line 43 of file llfloateranimpreview.h.


Constructor & Destructor Documentation

LLPreviewAnimation::LLPreviewAnimation ( S32  width,
S32  height 
)

Definition at line 1002 of file llfloateranimpreview.cpp.

References ANIM_AGENT_BODY_NOISE, ANIM_AGENT_BREATHE_ROT, ANIM_AGENT_EYE, ANIM_AGENT_HEAD_ROT, ANIM_AGENT_STAND, LLViewerObjectList::createObjectViewer(), f, FALSE, gAgent, gCamera, LLAgent::getRegion(), gObjectList, gPipeline, LL_PCODE_LEGACY_AVATAR, LLPipeline::markVisible(), mCameraDistance, mCameraPitch, mCameraYaw, mCameraZoom, mDummyAvatar, mNeedsUpdate, PREVIEW_CAMERA_DISTANCE, TRUE, and LLVector3::zero.

LLPreviewAnimation::~LLPreviewAnimation (  )  [virtual]

Definition at line 1032 of file llfloateranimpreview.cpp.

References mDummyAvatar.


Member Function Documentation

LLVOAvatar* LLPreviewAnimation::getDummyAvatar (  )  [inline]

Definition at line 57 of file llfloateranimpreview.h.

References mDummyAvatar.

Referenced by LLFloaterAnimPreview::draw(), LLFloaterAnimPreview::onBtnOK(), LLFloaterAnimPreview::onBtnPlay(), LLFloaterAnimPreview::onBtnStop(), LLFloaterAnimPreview::onCommitBaseAnim(), LLFloaterAnimPreview::onCommitEaseIn(), LLFloaterAnimPreview::onCommitEaseOut(), LLFloaterAnimPreview::onCommitEmote(), LLFloaterAnimPreview::onCommitHandPose(), LLFloaterAnimPreview::onCommitLoop(), LLFloaterAnimPreview::onCommitLoopIn(), LLFloaterAnimPreview::onCommitLoopOut(), LLFloaterAnimPreview::onCommitName(), LLFloaterAnimPreview::onCommitPriority(), LLFloaterAnimPreview::onSliderMove(), LLFloaterAnimPreview::postBuild(), LLFloaterAnimPreview::refresh(), LLFloaterAnimPreview::resetMotion(), LLFloaterAnimPreview::validateEaseIn(), and LLFloaterAnimPreview::validateEaseOut().

virtual BOOL LLPreviewAnimation::needsUpdate (  )  [inline, virtual]

Definition at line 55 of file llfloateranimpreview.h.

References mNeedsUpdate.

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

Definition at line 1152 of file llfloateranimpreview.cpp.

References llclamp(), mCameraDistance, mCameraOffset, mCameraZoom, LLVector3::mV, VY, and VZ.

Referenced by LLFloaterAnimPreview::handleHover().

BOOL LLPreviewAnimation::render (  )  [virtual]

Reimplemented from LLDynamicTexture.

Definition at line 1040 of file llfloateranimpreview.cpp.

References LLCharacter::areAnimationsPaused(), f, FALSE, gCamera, LLViewerCamera::getDefaultFOV(), LLCoordFrame::getOrigin(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), gl_rect_2d_simple(), glColor4f, glOrtho, glPopMatrix, mCameraDistance, mCameraOffset, mCameraPitch, mCameraRelPos, mCameraYaw, mCameraZoom, LLViewerObject::mDrawable, mDummyAvatar, LLVOAvatar::mHeadp, LLDynamicTexture::mHeight, mNeedsUpdate, LLDynamicTexture::mOrigin, LLVOAvatar::mRoot, LLDynamicTexture::mWidth, LLCoord::mX, LLCoord::mY, LLPointer< Type >::notNull(), LLCoordFrame::setOriginAndLookAt(), LLViewerCamera::setPerspective(), LLCharacter::setTimeStep(), LLCamera::setView(), LLVertexBuffer::startRender(), stop_glerror, LLVertexBuffer::stopRender(), TRUE, LLVOAvatar::updateLOD(), LLCharacter::updateMotion(), LLJoint::updateWorldMatrixChildren(), LLVector3::y_axis, and LLVector3::z_axis.

void LLPreviewAnimation::requestUpdate (  ) 

Definition at line 1118 of file llfloateranimpreview.cpp.

References mNeedsUpdate, and TRUE.

Referenced by LLFloaterAnimPreview::draw(), LLFloaterAnimPreview::handleHover(), LLFloaterAnimPreview::handleScrollWheel(), and LLFloaterAnimPreview::refresh().

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

Definition at line 1126 of file llfloateranimpreview.cpp.

References f, F_PI_BY_TWO, llclamp(), mCameraPitch, and mCameraYaw.

Referenced by LLFloaterAnimPreview::handleHover().

void LLPreviewAnimation::setZoom ( F32  zoom_amt  ) 

Definition at line 1144 of file llfloateranimpreview.cpp.

References llclamp(), MAX_CAMERA_ZOOM, mCameraZoom, and MIN_CAMERA_ZOOM.

Referenced by LLFloaterAnimPreview::postBuild(), and zoom().

void LLPreviewAnimation::zoom ( F32  zoom_delta  ) 

Definition at line 1136 of file llfloateranimpreview.cpp.

References mCameraZoom, and setZoom().

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


Member Data Documentation

F32 LLPreviewAnimation::mCameraDistance [protected]

Definition at line 61 of file llfloateranimpreview.h.

Referenced by LLPreviewAnimation(), pan(), and render().

LLVector3 LLPreviewAnimation::mCameraOffset [protected]

Definition at line 65 of file llfloateranimpreview.h.

Referenced by pan(), and render().

F32 LLPreviewAnimation::mCameraPitch [protected]

Definition at line 63 of file llfloateranimpreview.h.

Referenced by LLPreviewAnimation(), render(), and rotate().

LLVector3 LLPreviewAnimation::mCameraRelPos [protected]

Definition at line 66 of file llfloateranimpreview.h.

Referenced by render().

F32 LLPreviewAnimation::mCameraYaw [protected]

Definition at line 62 of file llfloateranimpreview.h.

Referenced by LLPreviewAnimation(), render(), and rotate().

F32 LLPreviewAnimation::mCameraZoom [protected]

Definition at line 64 of file llfloateranimpreview.h.

Referenced by LLPreviewAnimation(), pan(), render(), setZoom(), and zoom().

LLPointer<LLVOAvatar> LLPreviewAnimation::mDummyAvatar [protected]

Definition at line 67 of file llfloateranimpreview.h.

Referenced by getDummyAvatar(), LLPreviewAnimation(), render(), and ~LLPreviewAnimation().

BOOL LLPreviewAnimation::mNeedsUpdate [protected]

Definition at line 60 of file llfloateranimpreview.h.

Referenced by LLPreviewAnimation(), needsUpdate(), render(), and requestUpdate().


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