Annotation of /trunk/indra/llcharacter/llkeyframestandmotion.h
Parent Directory
|
Revision Log
Revision 137 - (view) (download)
| 1 : | mjm | 135 | /** |
| 2 : | * @file llkeyframestandmotion.h | ||
| 3 : | * @brief Implementation of LLKeyframeStandMotion class. | ||
| 4 : | * | ||
| 5 : | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
| 6 : | * | ||
| 7 : | mjm | 137 | * Copyright (c) 2001-2010, Linden Research, Inc. |
| 8 : | mjm | 135 | * |
| 9 : | * Second Life Viewer Source Code | ||
| 10 : | * The source code in this file ("Source Code") is provided by Linden Lab | ||
| 11 : | * to you under the terms of the GNU General Public License, version 2.0 | ||
| 12 : | * ("GPL"), unless you have obtained a separate licensing agreement | ||
| 13 : | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
| 14 : | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
| 15 : | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
| 16 : | * | ||
| 17 : | * There are special exceptions to the terms and conditions of the GPL as | ||
| 18 : | * it is applied to this Source Code. View the full text of the exception | ||
| 19 : | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
| 20 : | * online at | ||
| 21 : | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
| 22 : | * | ||
| 23 : | * By copying, modifying or distributing this software, you acknowledge | ||
| 24 : | * that you have read and understood your obligations described above, | ||
| 25 : | * and agree to abide by those obligations. | ||
| 26 : | * | ||
| 27 : | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
| 28 : | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
| 29 : | * COMPLETENESS OR PERFORMANCE. | ||
| 30 : | * $/LicenseInfo$ | ||
| 31 : | */ | ||
| 32 : | |||
| 33 : | #ifndef LL_LLKEYFRAMESTANDMOTION_H | ||
| 34 : | #define LL_LLKEYFRAMESTANDMOTION_H | ||
| 35 : | |||
| 36 : | //----------------------------------------------------------------------------- | ||
| 37 : | // Header files | ||
| 38 : | //----------------------------------------------------------------------------- | ||
| 39 : | #include "llkeyframemotion.h" | ||
| 40 : | #include "lljointsolverrp3.h" | ||
| 41 : | |||
| 42 : | |||
| 43 : | //----------------------------------------------------------------------------- | ||
| 44 : | // class LLKeyframeStandMotion | ||
| 45 : | //----------------------------------------------------------------------------- | ||
| 46 : | class LLKeyframeStandMotion : | ||
| 47 : | public LLKeyframeMotion | ||
| 48 : | { | ||
| 49 : | public: | ||
| 50 : | // Constructor | ||
| 51 : | LLKeyframeStandMotion(const LLUUID &id); | ||
| 52 : | |||
| 53 : | // Destructor | ||
| 54 : | virtual ~LLKeyframeStandMotion(); | ||
| 55 : | |||
| 56 : | public: | ||
| 57 : | //------------------------------------------------------------------------- | ||
| 58 : | // functions to support MotionController and MotionRegistry | ||
| 59 : | //------------------------------------------------------------------------- | ||
| 60 : | |||
| 61 : | // static constructor | ||
| 62 : | // all subclasses must implement such a function and register it | ||
| 63 : | static LLMotion *create(const LLUUID &id) { return new LLKeyframeStandMotion(id); } | ||
| 64 : | |||
| 65 : | public: | ||
| 66 : | //------------------------------------------------------------------------- | ||
| 67 : | // animation callbacks to be implemented by subclasses | ||
| 68 : | //------------------------------------------------------------------------- | ||
| 69 : | virtual LLMotionInitStatus onInitialize(LLCharacter *character); | ||
| 70 : | virtual BOOL onActivate(); | ||
| 71 : | void onDeactivate(); | ||
| 72 : | virtual BOOL onUpdate(F32 time, U8* joint_mask); | ||
| 73 : | |||
| 74 : | public: | ||
| 75 : | //------------------------------------------------------------------------- | ||
| 76 : | // Member Data | ||
| 77 : | //------------------------------------------------------------------------- | ||
| 78 : | LLCharacter *mCharacter; | ||
| 79 : | |||
| 80 : | BOOL mFlipFeet; | ||
| 81 : | |||
| 82 : | LLPointer<LLJointState> mPelvisState; | ||
| 83 : | |||
| 84 : | LLPointer<LLJointState> mHipLeftState; | ||
| 85 : | LLPointer<LLJointState> mKneeLeftState; | ||
| 86 : | LLPointer<LLJointState> mAnkleLeftState; | ||
| 87 : | |||
| 88 : | LLPointer<LLJointState> mHipRightState; | ||
| 89 : | LLPointer<LLJointState> mKneeRightState; | ||
| 90 : | LLPointer<LLJointState> mAnkleRightState; | ||
| 91 : | |||
| 92 : | LLJoint mPelvisJoint; | ||
| 93 : | |||
| 94 : | LLJoint mHipLeftJoint; | ||
| 95 : | LLJoint mKneeLeftJoint; | ||
| 96 : | LLJoint mAnkleLeftJoint; | ||
| 97 : | LLJoint mTargetLeft; | ||
| 98 : | |||
| 99 : | LLJoint mHipRightJoint; | ||
| 100 : | LLJoint mKneeRightJoint; | ||
| 101 : | LLJoint mAnkleRightJoint; | ||
| 102 : | LLJoint mTargetRight; | ||
| 103 : | |||
| 104 : | LLJointSolverRP3 mIKLeft; | ||
| 105 : | LLJointSolverRP3 mIKRight; | ||
| 106 : | |||
| 107 : | LLVector3 mPositionLeft; | ||
| 108 : | LLVector3 mPositionRight; | ||
| 109 : | LLVector3 mNormalLeft; | ||
| 110 : | LLVector3 mNormalRight; | ||
| 111 : | LLQuaternion mRotationLeft; | ||
| 112 : | LLQuaternion mRotationRight; | ||
| 113 : | |||
| 114 : | LLQuaternion mLastGoodPelvisRotation; | ||
| 115 : | LLVector3 mLastGoodPosition; | ||
| 116 : | BOOL mTrackAnkles; | ||
| 117 : | |||
| 118 : | S32 mFrameNum; | ||
| 119 : | }; | ||
| 120 : | |||
| 121 : | #endif // LL_LLKEYFRAMESTANDMOTION_H | ||
| 122 : |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

