aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llprimitive/llprimitive.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llprimitive/llprimitive.h')
-rw-r--r--linden/indra/llprimitive/llprimitive.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/linden/indra/llprimitive/llprimitive.h b/linden/indra/llprimitive/llprimitive.h
index ca024fb..3b43e8f 100644
--- a/linden/indra/llprimitive/llprimitive.h
+++ b/linden/indra/llprimitive/llprimitive.h
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 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 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 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 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 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -141,7 +141,13 @@ public:
141 /*virtual*/ BOOL unpack(LLDataPacker &dp); 141 /*virtual*/ BOOL unpack(LLDataPacker &dp);
142 /*virtual*/ bool operator==(const LLNetworkData& data) const; 142 /*virtual*/ bool operator==(const LLNetworkData& data) const;
143 /*virtual*/ void copy(const LLNetworkData& data); 143 /*virtual*/ void copy(const LLNetworkData& data);
144 // LLSD implementations here are provided by Eddy Stryker.
145 // NOTE: there are currently unused in protocols
146 LLSD asLLSD() const;
147 operator LLSD() const { return asLLSD(); }
148 bool fromLLSD(LLSD& sd);
144 149
150
145 void setColor(const LLColor4& color) { mColor = color; mColor.clamp(); } 151 void setColor(const LLColor4& color) { mColor = color; mColor.clamp(); }
146 void setRadius(F32 radius) { mRadius = llclamp(radius, LIGHT_MIN_RADIUS, LIGHT_MAX_RADIUS); } 152 void setRadius(F32 radius) { mRadius = llclamp(radius, LIGHT_MIN_RADIUS, LIGHT_MAX_RADIUS); }
147 void setFalloff(F32 falloff) { mFalloff = llclamp(falloff, LIGHT_MIN_FALLOFF, LIGHT_MAX_FALLOFF); } 153 void setFalloff(F32 falloff) { mFalloff = llclamp(falloff, LIGHT_MIN_FALLOFF, LIGHT_MAX_FALLOFF); }
@@ -229,6 +235,9 @@ public:
229 BOOL unpack(LLDataPacker &dp); 235 BOOL unpack(LLDataPacker &dp);
230 bool operator==(const LLNetworkData& data) const; 236 bool operator==(const LLNetworkData& data) const;
231 void copy(const LLNetworkData& data); 237 void copy(const LLNetworkData& data);
238 LLSD asLLSD() const;
239 operator LLSD() const { return asLLSD(); }
240 bool fromLLSD(LLSD& sd);
232};// end of attributes structure 241};// end of attributes structure
233 242
234 243
@@ -245,6 +254,9 @@ public:
245 /*virtual*/ BOOL unpack(LLDataPacker &dp); 254 /*virtual*/ BOOL unpack(LLDataPacker &dp);
246 /*virtual*/ bool operator==(const LLNetworkData& data) const; 255 /*virtual*/ bool operator==(const LLNetworkData& data) const;
247 /*virtual*/ void copy(const LLNetworkData& data); 256 /*virtual*/ void copy(const LLNetworkData& data);
257 LLSD asLLSD() const;
258 operator LLSD() const { return asLLSD(); }
259 bool fromLLSD(LLSD& sd);
248 260
249 void setSculptTexture(const LLUUID& id) { mSculptTexture = id; } 261 void setSculptTexture(const LLUUID& id) { mSculptTexture = id; }
250 LLUUID getSculptTexture() { return mSculptTexture; } 262 LLUUID getSculptTexture() { return mSculptTexture; }