#include <llmorphview.h>
Public Member Functions | |
LLMorphView (const std::string &name, const LLRect &rect) | |
void | initialize () |
void | shutdown () |
void | setVisible (BOOL visible) |
void | setCameraTargetJoint (LLJoint *joint) |
LLJoint * | getCameraTargetJoint () |
void | setCameraOffset (const LLVector3d &camera_offset) |
void | setCameraTargetOffset (const LLVector3d &camera_target_offset) |
void | setCameraDistToDefault () |
void | updateCamera () |
void | setCameraDrivenByKeys (BOOL b) |
Protected Attributes | |
LLJoint * | mCameraTargetJoint |
LLVector3d | mCameraOffset |
LLVector3d | mCameraTargetOffset |
LLVector3d | mOldCameraPos |
LLVector3d | mOldTargetPos |
F32 | mOldCameraNearClip |
LLFrameTimer | mCameraMoveTimer |
F32 | mCameraPitch |
F32 | mCameraYaw |
F32 | mCameraDist |
BOOL | mCameraDrivenByKeys |
Definition at line 42 of file llmorphview.h.
LLMorphView::LLMorphView | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 69 of file llmorphview.cpp.
void LLMorphView::initialize | ( | ) |
Definition at line 86 of file llmorphview.cpp.
References ANIM_AGENT_BODY_NOISE, LLAgent::changeCameraToDefault(), gAgent, LLAgent::getAvatarObject(), LLSingleton< LLViewerCamera >::getInstance(), LLCamera::getNear(), LLViewerObject::isDead(), mCameraDist, mCameraPitch, mCameraYaw, mOldCameraNearClip, MORPH_NEAR_CLIP, LLVOAvatar::mSpecialRenderMode, LLCamera::setNear(), and LLVOAvatar::stopMotion().
Referenced by setVisible().
void LLMorphView::shutdown | ( | ) |
Definition at line 110 of file llmorphview.cpp.
References ANIM_AGENT_BODY_NOISE, gAgent, LLAgent::getAvatarObject(), LLSingleton< LLViewerCamera >::getInstance(), LLViewerObject::isDead(), mOldCameraNearClip, LLVOAvatar::mSpecialRenderMode, LLVOAvatar::onCustomizeEnd(), LLCamera::setNear(), and LLVOAvatar::startMotion().
Referenced by setVisible().
void LLMorphView::setVisible | ( | BOOL | visible | ) | [virtual] |
Reimplemented from LLView.
Definition at line 128 of file llmorphview.cpp.
References LLFloaterCustomize::fetchInventory(), LLView::getVisible(), gFloaterCustomize, gFloaterView, initialize(), llassert, NULL, LLFloater::open(), LLView::removeChild(), LLView::setVisible(), shutdown(), LLFloaterCustomize::switchToDefaultSubpart(), and LLFirstUse::useAppearance().
Referenced by LLAgent::endAnimationUpdateUI(), LLViewerWindow::initWorldUI(), and LLViewerWindow::~LLViewerWindow().
void LLMorphView::setCameraTargetJoint | ( | LLJoint * | joint | ) | [inline] |
Definition at line 53 of file llmorphview.h.
References mCameraTargetJoint.
Referenced by LLPanelEditWearable::setSubpart(), and updateCamera().
LLJoint* LLMorphView::getCameraTargetJoint | ( | ) | [inline] |
Definition at line 54 of file llmorphview.h.
References mCameraTargetJoint.
Referenced by LLVisualParamHint::render().
void LLMorphView::setCameraOffset | ( | const LLVector3d & | camera_offset | ) | [inline] |
Definition at line 56 of file llmorphview.h.
References mCameraOffset.
Referenced by LLPanelEditWearable::setSubpart().
void LLMorphView::setCameraTargetOffset | ( | const LLVector3d & | camera_target_offset | ) | [inline] |
Definition at line 57 of file llmorphview.h.
References mCameraTargetOffset.
Referenced by LLPanelEditWearable::setSubpart().
void LLMorphView::setCameraDistToDefault | ( | ) | [inline] |
Definition at line 58 of file llmorphview.h.
References mCameraDist.
Referenced by LLPanelEditWearable::setSubpart().
void LLMorphView::updateCamera | ( | ) |
Definition at line 163 of file llmorphview.cpp.
References gAgent, LLAgent::getAvatarObject(), LLAgent::getID(), LLVOAvatar::getJoint(), LLAgent::getPosGlobalFromAgent(), LLVOAvatar::getRootJoint(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), mCameraOffset, mCameraPitch, mCameraTargetJoint, mCameraTargetOffset, mCameraYaw, LLAgent::setCameraPosAndFocusGlobal(), setCameraTargetJoint(), LLVector3::y_axis, and LLVector3::z_axis.
Referenced by setCameraDrivenByKeys(), and LLPanelEditWearable::setSubpart().
void LLMorphView::setCameraDrivenByKeys | ( | BOOL | b | ) |
Definition at line 194 of file llmorphview.cpp.
References mCameraDrivenByKeys, and updateCamera().
Referenced by edit_avatar_move_backward(), edit_avatar_move_forward(), edit_avatar_spin_ccw(), edit_avatar_spin_cw(), edit_avatar_spin_over(), edit_avatar_spin_under(), and LLToolCamera::pickCallback().
LLJoint* LLMorphView::mCameraTargetJoint [protected] |
Definition at line 64 of file llmorphview.h.
Referenced by getCameraTargetJoint(), setCameraTargetJoint(), and updateCamera().
LLVector3d LLMorphView::mCameraOffset [protected] |
LLVector3d LLMorphView::mCameraTargetOffset [protected] |
Definition at line 66 of file llmorphview.h.
Referenced by setCameraTargetOffset(), and updateCamera().
LLVector3d LLMorphView::mOldCameraPos [protected] |
Definition at line 67 of file llmorphview.h.
LLVector3d LLMorphView::mOldTargetPos [protected] |
Definition at line 68 of file llmorphview.h.
F32 LLMorphView::mOldCameraNearClip [protected] |
LLFrameTimer LLMorphView::mCameraMoveTimer [protected] |
Definition at line 70 of file llmorphview.h.
F32 LLMorphView::mCameraPitch [protected] |
F32 LLMorphView::mCameraYaw [protected] |
F32 LLMorphView::mCameraDist [protected] |
Definition at line 77 of file llmorphview.h.
Referenced by initialize(), and setCameraDistToDefault().
BOOL LLMorphView::mCameraDrivenByKeys [protected] |