#include <llfloateranimpreview.h>
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 () |
LLVOAvatar * | getDummyAvatar () |
Protected Attributes | |
BOOL | mNeedsUpdate |
F32 | mCameraDistance |
F32 | mCameraYaw |
F32 | mCameraPitch |
F32 | mCameraZoom |
LLVector3 | mCameraOffset |
LLVector3 | mCameraRelPos |
LLPointer< LLVOAvatar > | mDummyAvatar |
Definition at line 43 of file llfloateranimpreview.h.
Definition at line 1029 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(), FALSE, gAgent, LLSingleton< LLViewerCamera >::getInstance(), 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] |
BOOL LLPreviewAnimation::render | ( | ) | [virtual] |
Reimplemented from LLDynamicTexture.
Definition at line 1067 of file llfloateranimpreview.cpp.
References LLCharacter::areAnimationsPaused(), LLGLImmediate::color4f(), FALSE, LLGLImmediate::flush(), LLSingleton< LLViewerCamera >::getInstance(), LLCoordFrame::getOrigin(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), gGL, gl_rect_2d_simple(), 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(), LLGLImmediate::popMatrix(), LLGLImmediate::pushMatrix(), LLDrawPoolAvatar::renderAvatars(), LLCoordFrame::setOriginAndLookAt(), LLViewerCamera::setPerspective(), LLCharacter::setTimeStep(), LLCamera::setView(), stop_glerror, TRUE, LLVertexBuffer::unbind(), LLVOAvatar::updateLOD(), LLCharacter::updateMotion(), LLJoint::updateWorldMatrixChildren(), LLVector3::y_axis, and LLVector3::z_axis.
void LLPreviewAnimation::requestUpdate | ( | ) |
Definition at line 1148 of file llfloateranimpreview.cpp.
References mNeedsUpdate, and TRUE.
Referenced by LLFloaterAnimPreview::draw(), LLFloaterAnimPreview::handleHover(), LLFloaterAnimPreview::handleScrollWheel(), and LLFloaterAnimPreview::refresh().
Definition at line 1156 of file llfloateranimpreview.cpp.
References F_PI_BY_TWO, llclamp(), mCameraPitch, and mCameraYaw.
Referenced by LLFloaterAnimPreview::handleHover().
void LLPreviewAnimation::zoom | ( | F32 | zoom_delta | ) |
Definition at line 1166 of file llfloateranimpreview.cpp.
References mCameraZoom, and setZoom().
Referenced by LLFloaterAnimPreview::handleHover(), and LLFloaterAnimPreview::handleScrollWheel().
void LLPreviewAnimation::setZoom | ( | F32 | zoom_amt | ) |
Definition at line 1174 of file llfloateranimpreview.cpp.
References llclamp(), MAX_CAMERA_ZOOM, mCameraZoom, and MIN_CAMERA_ZOOM.
Referenced by LLFloaterAnimPreview::postBuild(), and zoom().
Definition at line 1182 of file llfloateranimpreview.cpp.
References llclamp(), mCameraDistance, mCameraOffset, mCameraZoom, LLVector3::mV, VY, and VZ.
Referenced by LLFloaterAnimPreview::handleHover().
virtual BOOL LLPreviewAnimation::needsUpdate | ( | ) | [inline, virtual] |
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().
BOOL LLPreviewAnimation::mNeedsUpdate [protected] |
Definition at line 60 of file llfloateranimpreview.h.
Referenced by LLPreviewAnimation(), needsUpdate(), render(), and requestUpdate().
F32 LLPreviewAnimation::mCameraDistance [protected] |
Definition at line 61 of file llfloateranimpreview.h.
Referenced by LLPreviewAnimation(), pan(), and render().
F32 LLPreviewAnimation::mCameraYaw [protected] |
Definition at line 62 of file llfloateranimpreview.h.
Referenced by LLPreviewAnimation(), render(), and rotate().
F32 LLPreviewAnimation::mCameraPitch [protected] |
Definition at line 63 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().
LLVector3 LLPreviewAnimation::mCameraOffset [protected] |
LLVector3 LLPreviewAnimation::mCameraRelPos [protected] |
LLPointer<LLVOAvatar> LLPreviewAnimation::mDummyAvatar [protected] |
Definition at line 67 of file llfloateranimpreview.h.
Referenced by getDummyAvatar(), LLPreviewAnimation(), render(), and ~LLPreviewAnimation().