#include <llmorphview.h>
Inheritance diagram for LLMorphView:
Public Member Functions | |
LLMorphView (const std::string &name, const LLRect &rect) | |
virtual EWidgetType | getWidgetType () const |
virtual LLString | getWidgetTag () const |
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 70 of file llmorphview.cpp.
LLJoint* LLMorphView::getCameraTargetJoint | ( | ) | [inline] |
Definition at line 57 of file llmorphview.h.
References mCameraTargetJoint.
Referenced by LLVisualParamHint::render().
LLString LLMorphView::getWidgetTag | ( | ) | const [virtual] |
EWidgetType LLMorphView::getWidgetType | ( | ) | const [virtual] |
Implements LLView.
Definition at line 84 of file llmorphview.cpp.
References WIDGET_TYPE_MORPH_VIEW.
void LLMorphView::initialize | ( | ) |
Definition at line 97 of file llmorphview.cpp.
References ANIM_AGENT_BODY_NOISE, LLAgent::changeCameraToDefault(), gAgent, gCamera, LLAgent::getAvatarObject(), LLCamera::getNear(), LLViewerObject::isDead(), mCameraDist, mCameraPitch, mCameraYaw, mOldCameraNearClip, MORPH_NEAR_CLIP, LLVOAvatar::mSpecialRenderMode, LLCamera::setNear(), and LLVOAvatar::stopMotion().
Referenced by setVisible().
void LLMorphView::setCameraDistToDefault | ( | ) | [inline] |
Definition at line 61 of file llmorphview.h.
References mCameraDist.
Referenced by LLPanelEditWearable::setSubpart().
Definition at line 205 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().
void LLMorphView::setCameraOffset | ( | const LLVector3d & | camera_offset | ) | [inline] |
Definition at line 59 of file llmorphview.h.
References mCameraOffset.
Referenced by LLPanelEditWearable::setSubpart().
Definition at line 56 of file llmorphview.h.
References mCameraTargetJoint.
Referenced by LLPanelEditWearable::setSubpart(), and updateCamera().
void LLMorphView::setCameraTargetOffset | ( | const LLVector3d & | camera_target_offset | ) | [inline] |
Definition at line 60 of file llmorphview.h.
References mCameraTargetOffset.
Referenced by LLPanelEditWearable::setSubpart().
Reimplemented from LLView.
Definition at line 139 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::shutdown | ( | ) |
Definition at line 121 of file llmorphview.cpp.
References ANIM_AGENT_BODY_NOISE, gAgent, gCamera, LLAgent::getAvatarObject(), LLViewerObject::isDead(), mOldCameraNearClip, LLVOAvatar::mSpecialRenderMode, LLVOAvatar::onCustomizeEnd(), LLCamera::setNear(), and LLVOAvatar::startMotion().
Referenced by setVisible().
void LLMorphView::updateCamera | ( | ) |
Definition at line 174 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().
F32 LLMorphView::mCameraDist [protected] |
Definition at line 80 of file llmorphview.h.
Referenced by initialize(), and setCameraDistToDefault().
BOOL LLMorphView::mCameraDrivenByKeys [protected] |
LLFrameTimer LLMorphView::mCameraMoveTimer [protected] |
Definition at line 73 of file llmorphview.h.
LLVector3d LLMorphView::mCameraOffset [protected] |
F32 LLMorphView::mCameraPitch [protected] |
LLJoint* LLMorphView::mCameraTargetJoint [protected] |
Definition at line 67 of file llmorphview.h.
Referenced by getCameraTargetJoint(), setCameraTargetJoint(), and updateCamera().
LLVector3d LLMorphView::mCameraTargetOffset [protected] |
Definition at line 69 of file llmorphview.h.
Referenced by setCameraTargetOffset(), and updateCamera().
F32 LLMorphView::mCameraYaw [protected] |
F32 LLMorphView::mOldCameraNearClip [protected] |
LLVector3d LLMorphView::mOldCameraPos [protected] |
Definition at line 70 of file llmorphview.h.
LLVector3d LLMorphView::mOldTargetPos [protected] |
Definition at line 71 of file llmorphview.h.