diff options
author | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
commit | 420b91db29485df39fd6e724e782c449158811cb (patch) | |
tree | b471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/llmorphview.h |
Print done when done.
Diffstat (limited to 'indra/newview/llmorphview.h')
-rw-r--r-- | indra/newview/llmorphview.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/indra/newview/llmorphview.h b/indra/newview/llmorphview.h new file mode 100644 index 0000000000..676564ac49 --- /dev/null +++ b/indra/newview/llmorphview.h @@ -0,0 +1,68 @@ +/** + * @file llmorphview.h + * @brief Container for character morph controls + * + * Copyright (c) 2001-$CurrentYear$, Linden Research, Inc. + * $License$ + */ + +#ifndef LL_LLMORPHVIEW_H +#define LL_LLMORPHVIEW_H + +#include "llview.h" +#include "v3dmath.h" +#include "llframetimer.h" + +class LLJoint; +class LLFloaterCustomize; + +class LLMorphView : public LLView +{ +public: + LLMorphView(const std::string& name, const LLRect& rect); + + virtual EWidgetType getWidgetType() const; + virtual LLString getWidgetTag() const; + + void initialize(); + void shutdown(); + + // inherited methods + /*virtual*/ void setVisible(BOOL visible); + + void setCameraTargetJoint(LLJoint *joint) {mCameraTargetJoint = joint;} + LLJoint* getCameraTargetJoint() {return mCameraTargetJoint;} + + void setCameraOffset(const LLVector3d& camera_offset) {mCameraOffset = camera_offset;} + void setCameraTargetOffset(const LLVector3d& camera_target_offset) {mCameraTargetOffset = camera_target_offset;} + void setCameraDistToDefault() { mCameraDist = -1.f; } + + void updateCamera(); + void setCameraDrivenByKeys( BOOL b ); + +protected: + LLJoint* mCameraTargetJoint; + LLVector3d mCameraOffset; + LLVector3d mCameraTargetOffset; + LLVector3d mOldCameraPos; + LLVector3d mOldTargetPos; + F32 mOldCameraNearClip; + LLFrameTimer mCameraMoveTimer; + + // camera rotation + F32 mCameraPitch; + F32 mCameraYaw; + + // camera zoom + F32 mCameraDist; + + BOOL mCameraDrivenByKeys; +}; + +// +// Globals +// + +extern LLMorphView *gMorphView; + +#endif |