aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llmanip.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llmanip.h
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llmanip.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/linden/indra/newview/llmanip.h b/linden/indra/newview/llmanip.h
index 7382bd4..7f83ae2 100644
--- a/linden/indra/newview/llmanip.h
+++ b/linden/indra/newview/llmanip.h
@@ -36,6 +36,7 @@ class LLTextBox;
36class LLViewerObject; 36class LLViewerObject;
37class LLToolComposite; 37class LLToolComposite;
38class LLVector3; 38class LLVector3;
39class LLObjectSelection;
39 40
40const S32 MIN_DIVISION_PIXEL_WIDTH = 9; 41const S32 MIN_DIVISION_PIXEL_WIDTH = 9;
41 42
@@ -121,14 +122,18 @@ public:
121 void renderGuidelines(BOOL draw_x = TRUE, BOOL draw_y = TRUE, BOOL draw_z = TRUE); 122 void renderGuidelines(BOOL draw_x = TRUE, BOOL draw_y = TRUE, BOOL draw_z = TRUE);
122 static void renderXYZ(const LLVector3 &vec); 123 static void renderXYZ(const LLVector3 &vec);
123 124
124 virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask) = 0;
125 /*virtual*/ BOOL handleMouseUp(S32 x, S32 y, MASK mask); 125 /*virtual*/ BOOL handleMouseUp(S32 x, S32 y, MASK mask);
126 /*virtual*/ BOOL handleHover(S32 x, S32 y, MASK mask); 126 /*virtual*/ BOOL handleHover(S32 x, S32 y, MASK mask);
127 virtual EManipPart getHighlightedPart() { return LL_NO_PART; } 127 virtual EManipPart getHighlightedPart() { return LL_NO_PART; }
128 virtual void highlightManipulators(S32 x, S32 y) {}; 128 virtual void highlightManipulators(S32 x, S32 y) {};
129 virtual void handleSelect();
130 virtual void handleDeselect();
131
132 LLHandle<LLObjectSelection> getSelection();
133
129protected: 134protected:
130 LLVector3 getSavedPivotPoint() const; 135 LLVector3 getSavedPivotPoint() const;
131 LLVector3 getPivotPoint() const; 136 LLVector3 getPivotPoint();
132 void getManipNormal(LLViewerObject* object, EManipPart manip, LLVector3 &normal); 137 void getManipNormal(LLViewerObject* object, EManipPart manip, LLVector3 &normal);
133 BOOL getManipAxis(LLViewerObject* object, EManipPart manip, LLVector3 &axis); 138 BOOL getManipAxis(LLViewerObject* object, EManipPart manip, LLVector3 &axis);
134 F32 getSubdivisionLevel(const LLVector3 &reference_point, const LLVector3 &translate_axis, F32 grid_scale, S32 min_pixel_spacing = MIN_DIVISION_PIXEL_WIDTH); 139 F32 getSubdivisionLevel(const LLVector3 &reference_point, const LLVector3 &translate_axis, F32 grid_scale, S32 min_pixel_spacing = MIN_DIVISION_PIXEL_WIDTH);
@@ -137,11 +142,12 @@ protected:
137 void updateGridSettings(); 142 void updateGridSettings();
138 BOOL getMousePointOnPlaneGlobal(LLVector3d& point, S32 x, S32 y, LLVector3d origin, LLVector3 normal); 143 BOOL getMousePointOnPlaneGlobal(LLVector3d& point, S32 x, S32 y, LLVector3d origin, LLVector3 normal);
139 BOOL getMousePointOnPlaneAgent(LLVector3& point, S32 x, S32 y, LLVector3 origin, LLVector3 normal); 144 BOOL getMousePointOnPlaneAgent(LLVector3& point, S32 x, S32 y, LLVector3 origin, LLVector3 normal);
140 BOOL nearestPointOnLineFromMouse( S32 x, S32 y, const LLVector3& b1, const LLVector3& b2, F32 &a_param, F32 &b_param ) const; 145 BOOL nearestPointOnLineFromMouse( S32 x, S32 y, const LLVector3& b1, const LLVector3& b2, F32 &a_param, F32 &b_param );
141 LLColor4 setupSnapGuideRenderPass(S32 pass); 146 LLColor4 setupSnapGuideRenderPass(S32 pass);
142protected: 147protected:
143 LLFrameTimer mHelpTextTimer; 148 LLFrameTimer mHelpTextTimer;
144 BOOL mInSnapRegime; 149 BOOL mInSnapRegime;
150 LLHandle<LLObjectSelection> mObjectSelection;
145 151
146 static F32 sHelpTextVisibleTime; 152 static F32 sHelpTextVisibleTime;
147 static F32 sHelpTextFadeTime; 153 static F32 sHelpTextFadeTime;