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/llmaniptranslate.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/llmaniptranslate.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/linden/indra/newview/llmaniptranslate.h b/linden/indra/newview/llmaniptranslate.h index 7f206eb..05decfb 100644 --- a/linden/indra/newview/llmaniptranslate.h +++ b/linden/indra/newview/llmaniptranslate.h | |||
@@ -35,7 +35,6 @@ | |||
35 | #include "llmanip.h" | 35 | #include "llmanip.h" |
36 | #include "lltimer.h" | 36 | #include "lltimer.h" |
37 | #include "v4math.h" | 37 | #include "v4math.h" |
38 | #include "linked_lists.h" | ||
39 | #include "llquaternion.h" | 38 | #include "llquaternion.h" |
40 | 39 | ||
41 | class LLManipTranslate : public LLManip | 40 | class LLManipTranslate : public LLManip |
@@ -88,6 +87,17 @@ protected: | |||
88 | F32 getMinGridScale(); | 87 | F32 getMinGridScale(); |
89 | 88 | ||
90 | private: | 89 | private: |
90 | struct compare_manipulators | ||
91 | { | ||
92 | bool operator() (const ManipulatorHandle* const a, const ManipulatorHandle* const b) const | ||
93 | { | ||
94 | if (a->mEndPosition.mV[VZ] != b->mEndPosition.mV[VZ]) | ||
95 | return (a->mEndPosition.mV[VZ] < b->mEndPosition.mV[VZ]); | ||
96 | else | ||
97 | return a->mManipID < b->mManipID; | ||
98 | } | ||
99 | }; | ||
100 | |||
91 | S32 mLastHoverMouseX; | 101 | S32 mLastHoverMouseX; |
92 | S32 mLastHoverMouseY; | 102 | S32 mLastHoverMouseY; |
93 | BOOL mSendUpdateOnMouseUp; | 103 | BOOL mSendUpdateOnMouseUp; |
@@ -105,7 +115,8 @@ private: | |||
105 | LLVector3d mDragCursorStartGlobal; | 115 | LLVector3d mDragCursorStartGlobal; |
106 | LLVector3d mDragSelectionStartGlobal; | 116 | LLVector3d mDragSelectionStartGlobal; |
107 | LLTimer mUpdateTimer; | 117 | LLTimer mUpdateTimer; |
108 | LLLinkedList<ManipulatorHandle> mProjectedManipulators; | 118 | typedef std::set<ManipulatorHandle*, compare_manipulators> minpulator_list_t; |
119 | minpulator_list_t mProjectedManipulators; | ||
109 | LLVector4 mManipulatorVertices[18]; | 120 | LLVector4 mManipulatorVertices[18]; |
110 | F32 mSnapOffsetMeters; | 121 | F32 mSnapOffsetMeters; |
111 | LLVector3 mSnapOffsetAxis; | 122 | LLVector3 mSnapOffsetAxis; |