diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/lllocalanimationobject.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lllocalanimationobject.h | 131 |
1 files changed, 0 insertions, 131 deletions
diff --git a/linden/indra/newview/lllocalanimationobject.h b/linden/indra/newview/lllocalanimationobject.h deleted file mode 100644 index 6bea2bb..0000000 --- a/linden/indra/newview/lllocalanimationobject.h +++ /dev/null | |||
@@ -1,131 +0,0 @@ | |||
1 | /** | ||
2 | * @file lllocalanimationobject.h | ||
3 | * @brief LLHUDLocalAnimationObject class definition | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2006&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2006-2008, Linden Research, Inc. | ||
8 | * | ||
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 http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | ||
22 | * By copying, modifying or distributing this software, you acknowledge | ||
23 | * that you have read and understood your obligations described above, | ||
24 | * and agree to abide by those obligations. | ||
25 | * | ||
26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
28 | * COMPLETENESS OR PERFORMANCE. | ||
29 | * $/LicenseInfo$ | ||
30 | */ | ||
31 | |||
32 | #ifndef LL_LOCALANIMATIONOBJECT_H | ||
33 | #define LL_LOCALANIMATIONOBJECT_H | ||
34 | |||
35 | #include "llhudobject.h" | ||
36 | #include "llflexibleobject.h" | ||
37 | |||
38 | //----------------------------------------------------------------------------------- | ||
39 | // Default setting for the attributes of a localAnimationObjectControls object... | ||
40 | //----------------------------------------------------------------------------------- | ||
41 | //const LLVector3 LOCAL_ANIMATION_OBJECT_DEFAULT_ANCHOR_DIRECTION = LLVector3::z_axis; | ||
42 | //const LLVector3 LOCAL_ANIMATION_OBJECT_DEFAULT_ANCHOR_POSITION_OFFSET = LLVector3::zero; | ||
43 | //const LLColor4 LOCAL_ANIMATION_OBJECT_DEFAULT_COLOR = LLColor4( 1.0f, 1.0f, 1.0f, 1.0f ); | ||
44 | //const F32 LOCAL_ANIMATION_OBJECT_DEFAULT_GRAVITY = 0.3f; | ||
45 | //const F32 LOCAL_ANIMATION_OBJECT_DEFAULT_TENSION = 10.0f; | ||
46 | //const F32 LOCAL_ANIMATION_OBJECT_DEFAULT_AIR_FRICTION = 10.0f; | ||
47 | //const F32 LOCAL_ANIMATION_OBJECT_DEFAULT_LENGTH = 1.0f; | ||
48 | //const int LOCAL_ANIMATION_OBJECT_DEFAULT_NUM_SECTIONS = 4; | ||
49 | //const F32 LOCAL_ANIMATION_OBJECT_DEFAULT_ANCHOR_RADIUS = 0.05f; | ||
50 | //const F32 LOCAL_ANIMATION_OBJECT_DEFAULT_RADIUS_CHANGE = -0.01f; | ||
51 | |||
52 | class LLViewerObject; | ||
53 | /* | ||
54 | |||
55 | //------------------------------------------------- | ||
56 | // This structure is also used in the part of the | ||
57 | // code that creates new localAnimationObjectControls objects. | ||
58 | //------------------------------------------------- | ||
59 | struct LLLocalAnimationObjectAttributes | ||
60 | { | ||
61 | //LLVector3 mAnchorPositionOffset; | ||
62 | //LLVector3 mAnchorDirection; | ||
63 | //LLColor4 mColor; | ||
64 | //F32 mAnchorRadius; | ||
65 | //S32 mNumSections; | ||
66 | //F32 mLength; | ||
67 | //F32 mGravity; | ||
68 | //F32 mAirFriction; | ||
69 | //F32 mTension; | ||
70 | //F32 mRadiusChange; | ||
71 | bool mUsingBodyControls; | ||
72 | bool mUsingHeadControls; | ||
73 | bool mUsingTailControls; | ||
74 | bool mUsingLegControls; | ||
75 | |||
76 | //------ the constructor for the structure ------------ | ||
77 | LLLocalAnimationObjectAttributes() | ||
78 | { | ||
79 | //mAnchorPositionOffset = LOCAL_ANIMATION_OBJECT_DEFAULT_ANCHOR_DIRECTION; | ||
80 | //mAnchorDirection = LOCAL_ANIMATION_OBJECT_DEFAULT_ANCHOR_POSITION_OFFSET; | ||
81 | //mAnchorRadius = LOCAL_ANIMATION_OBJECT_DEFAULT_ANCHOR_RADIUS; | ||
82 | //mColor = LOCAL_ANIMATION_OBJECT_DEFAULT_COLOR; | ||
83 | //mNumSections = LOCAL_ANIMATION_OBJECT_DEFAULT_NUM_SECTIONS; | ||
84 | //mLength = LOCAL_ANIMATION_OBJECT_DEFAULT_LENGTH; | ||
85 | //mGravity = LOCAL_ANIMATION_OBJECT_DEFAULT_GRAVITY; | ||
86 | //mAirFriction = LOCAL_ANIMATION_OBJECT_DEFAULT_AIR_FRICTION; | ||
87 | //mTension = LOCAL_ANIMATION_OBJECT_DEFAULT_TENSION; | ||
88 | //mRadiusChange = LOCAL_ANIMATION_OBJECT_DEFAULT_RADIUS_CHANGE; | ||
89 | } | ||
90 | };// end of attributes structure | ||
91 | |||
92 | |||
93 | |||
94 | //--------------------------------------------------------- | ||
95 | // The LLHUDLocalAnimationObject class | ||
96 | //--------------------------------------------------------- | ||
97 | class LLHUDLocalAnimationObject : public LLHUDObject | ||
98 | { | ||
99 | public: | ||
100 | LLHUDLocalAnimationObject(); | ||
101 | void setParentObject( LLViewerObject * ); | ||
102 | void setAttributes( LLLocalAnimationObjectAttributes ); | ||
103 | void markAsDead(); | ||
104 | void update(); | ||
105 | LLViewerObject * getParentObject(); | ||
106 | void render(); | ||
107 | |||
108 | private: | ||
109 | //-------------------------------------- | ||
110 | // private members | ||
111 | //-------------------------------------- | ||
112 | LLViewerObject* mParentObject; | ||
113 | LLLocalAnimationObjectAttributes mAttributes; | ||
114 | LLHUDFlexibleObject mTrunk; | ||
115 | LLHUDFlexibleObject mFrond1; | ||
116 | LLHUDFlexibleObject mFrond2; | ||
117 | LLHUDFlexibleObject mFrond3; | ||
118 | LLHUDFlexibleObject mFrond4; | ||
119 | LLHUDFlexibleObject mFrond5; | ||
120 | |||
121 | //-------------------------------------- | ||
122 | // private methods | ||
123 | //-------------------------------------- | ||
124 | void updateVirtualServer(); | ||
125 | |||
126 | friend class LLHUDObject; | ||
127 | |||
128 | };// end of class definition | ||
129 | */ | ||
130 | |||
131 | #endif // LL_LOCALANIMATIONOBJECT_H | ||