LLMorphView Class Reference

#include <llmorphview.h>

Inheritance diagram for LLMorphView:

Inheritance graph
[legend]
Collaboration diagram for LLMorphView:

Collaboration graph
[legend]
List of all members.

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)
LLJointgetCameraTargetJoint ()
void setCameraOffset (const LLVector3d &camera_offset)
void setCameraTargetOffset (const LLVector3d &camera_target_offset)
void setCameraDistToDefault ()
void updateCamera ()
void setCameraDrivenByKeys (BOOL b)

Protected Attributes

LLJointmCameraTargetJoint
LLVector3d mCameraOffset
LLVector3d mCameraTargetOffset
LLVector3d mOldCameraPos
LLVector3d mOldTargetPos
F32 mOldCameraNearClip
LLFrameTimer mCameraMoveTimer
F32 mCameraPitch
F32 mCameraYaw
F32 mCameraDist
BOOL mCameraDrivenByKeys

Detailed Description

Definition at line 42 of file llmorphview.h.


Constructor & Destructor Documentation

LLMorphView::LLMorphView ( const std::string &  name,
const LLRect rect 
)

Definition at line 70 of file llmorphview.cpp.


Member Function Documentation

LLJoint* LLMorphView::getCameraTargetJoint (  )  [inline]

Definition at line 57 of file llmorphview.h.

References mCameraTargetJoint.

Referenced by LLVisualParamHint::render().

LLString LLMorphView::getWidgetTag (  )  const [virtual]

Implements LLView.

Definition at line 89 of file llmorphview.cpp.

References LL_MORPH_VIEW_TAG.

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

void LLMorphView::setCameraDrivenByKeys ( BOOL  b  ) 

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

void LLMorphView::setCameraTargetJoint ( LLJoint joint  )  [inline]

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

void LLMorphView::setVisible ( BOOL  visible  )  [virtual]

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


Member Data Documentation

F32 LLMorphView::mCameraDist [protected]

Definition at line 80 of file llmorphview.h.

Referenced by initialize(), and setCameraDistToDefault().

BOOL LLMorphView::mCameraDrivenByKeys [protected]

Definition at line 82 of file llmorphview.h.

Referenced by setCameraDrivenByKeys().

LLFrameTimer LLMorphView::mCameraMoveTimer [protected]

Definition at line 73 of file llmorphview.h.

LLVector3d LLMorphView::mCameraOffset [protected]

Definition at line 68 of file llmorphview.h.

Referenced by setCameraOffset(), and updateCamera().

F32 LLMorphView::mCameraPitch [protected]

Definition at line 76 of file llmorphview.h.

Referenced by initialize(), and updateCamera().

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]

Definition at line 77 of file llmorphview.h.

Referenced by initialize(), and updateCamera().

F32 LLMorphView::mOldCameraNearClip [protected]

Definition at line 72 of file llmorphview.h.

Referenced by initialize(), and shutdown().

LLVector3d LLMorphView::mOldCameraPos [protected]

Definition at line 70 of file llmorphview.h.

LLVector3d LLMorphView::mOldTargetPos [protected]

Definition at line 71 of file llmorphview.h.


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