aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llmanipscale.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llmanipscale.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-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 'linden/indra/newview/llmanipscale.h')
-rw-r--r--linden/indra/newview/llmanipscale.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/linden/indra/newview/llmanipscale.h b/linden/indra/newview/llmanipscale.h
index ebc8eda..f3d0996 100644
--- a/linden/indra/newview/llmanipscale.h
+++ b/linden/indra/newview/llmanipscale.h
@@ -124,6 +124,20 @@ private:
124 void updateSnapGuides(const LLBBox& bbox); 124 void updateSnapGuides(const LLBBox& bbox);
125private: 125private:
126 126
127 struct compare_manipulators
128 {
129 bool operator() (const ManipulatorHandle* const a, const ManipulatorHandle* const b) const
130 {
131 if (a->mType != b->mType)
132 return a->mType < b->mType;
133 else if (a->mPosition.mV[VZ] != b->mPosition.mV[VZ])
134 return a->mPosition.mV[VZ] < b->mPosition.mV[VZ];
135 else
136 return a->mManipID < b->mManipID;
137 }
138 };
139
140
127 F32 mBoxHandleSize; // The size of the handles at the corners of the bounding box 141 F32 mBoxHandleSize; // The size of the handles at the corners of the bounding box
128 F32 mScaledBoxHandleSize; // handle size after scaling for selection feedback 142 F32 mScaledBoxHandleSize; // handle size after scaling for selection feedback
129 EManipPart mManipPart; 143 EManipPart mManipPart;
@@ -135,7 +149,8 @@ private:
135 S32 mLastMouseY; 149 S32 mLastMouseY;
136 BOOL mSendUpdateOnMouseUp; 150 BOOL mSendUpdateOnMouseUp;
137 U32 mLastUpdateFlags; 151 U32 mLastUpdateFlags;
138 LLLinkedList<ManipulatorHandle> mProjectedManipulators; 152 typedef std::set<ManipulatorHandle*, compare_manipulators> minpulator_list_t;
153 minpulator_list_t mProjectedManipulators;
139 LLVector4 mManipulatorVertices[14]; 154 LLVector4 mManipulatorVertices[14];
140 F32 mScaleSnapUnit1; // size of snap multiples for axis 1 155 F32 mScaleSnapUnit1; // size of snap multiples for axis 1
141 F32 mScaleSnapUnit2; // size of snap multiples for axis 2 156 F32 mScaleSnapUnit2; // size of snap multiples for axis 2