aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerparcelmgr.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/llviewerparcelmgr.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/llviewerparcelmgr.h')
-rw-r--r--linden/indra/newview/llviewerparcelmgr.h56
1 files changed, 7 insertions, 49 deletions
diff --git a/linden/indra/newview/llviewerparcelmgr.h b/linden/indra/newview/llviewerparcelmgr.h
index 88652d6..5847343 100644
--- a/linden/indra/newview/llviewerparcelmgr.h
+++ b/linden/indra/newview/llviewerparcelmgr.h
@@ -36,11 +36,12 @@
36#include "lldarray.h" 36#include "lldarray.h"
37#include "llframetimer.h" 37#include "llframetimer.h"
38#include "llmemory.h" 38#include "llmemory.h"
39#include "llviewerimage.h" 39#include "llparcelselection.h"
40 40
41class LLUUID; 41class LLUUID;
42class LLMessageSystem; 42class LLMessageSystem;
43class LLParcel; 43class LLParcel;
44class LLViewerImage;
44class LLViewerRegion; 45class LLViewerRegion;
45 46
46// Constants for sendLandOwner 47// Constants for sendLandOwner
@@ -72,49 +73,6 @@ public:
72 virtual void changed() = 0; 73 virtual void changed() = 0;
73}; 74};
74 75
75class LLParcelSelection : public LLRefCount
76{
77 friend class LLViewerParcelMgr;
78
79protected:
80 ~LLParcelSelection();
81
82public:
83 LLParcelSelection(LLParcel* parcel);
84 LLParcelSelection();
85
86 // this can return NULL at any time, as parcel selection
87 // might have been invalidated.
88 LLParcel* getParcel() { return mParcel; }
89
90 // Return the number of grid units that are owned by you within
91 // the selection (computed by server).
92 S32 getSelfCount() const { return mSelectedSelfCount; }
93
94 // Returns area that will actually be claimed in meters squared.
95 S32 getClaimableArea() const;
96 bool hasOthersSelected() const;
97
98 // Does the selection have multiple land owners in it?
99 BOOL getMultipleOwners() const;
100
101 // Is the entire parcel selected, or just a part?
102 BOOL getWholeParcelSelected() const;
103
104protected:
105 void setParcel(LLParcel* parcel) { mParcel = parcel; }
106
107protected:
108
109 LLParcel* mParcel;
110 BOOL mSelectedMultipleOwners;
111 BOOL mWholeParcelSelected;
112 S32 mSelectedSelfCount;
113 S32 mSelectedOtherCount;
114 S32 mSelectedPublicCount;
115};
116
117typedef LLHandle<LLParcelSelection> LLParcelSelectionHandle;
118 76
119class LLViewerParcelMgr 77class LLViewerParcelMgr
120{ 78{
@@ -152,7 +110,7 @@ public:
152 void selectCollisionParcel(); 110 void selectCollisionParcel();
153 111
154 // Select the parcel at a specific point 112 // Select the parcel at a specific point
155 LLHandle<LLParcelSelection> selectParcelAt(const LLVector3d& pos_global); 113 LLSafeHandle<LLParcelSelection> selectParcelAt(const LLVector3d& pos_global);
156 114
157 // Take the current rectangle select, and select the parcel contained 115 // Take the current rectangle select, and select the parcel contained
158 // within it. 116 // within it.
@@ -231,7 +189,7 @@ public:
231 // containing the southwest corner of the selection. 189 // containing the southwest corner of the selection.
232 // If want_reply_to_update, simulator will send back a ParcelProperties 190 // If want_reply_to_update, simulator will send back a ParcelProperties
233 // message. 191 // message.
234 void sendParcelPropertiesUpdate(LLParcel* parcel); 192 void sendParcelPropertiesUpdate(LLParcel* parcel, bool use_agent_region = false);
235 193
236 // Takes an Access List flag, like AL_ACCESS or AL_BAN 194 // Takes an Access List flag, like AL_ACCESS or AL_BAN
237 void sendParcelAccessListUpdate(U32 which); 195 void sendParcelAccessListUpdate(U32 which);
@@ -300,7 +258,7 @@ public:
300 static BOOL isParcelOwnedByAgent(const LLParcel* parcelp, U64 group_proxy_power); 258 static BOOL isParcelOwnedByAgent(const LLParcel* parcelp, U64 group_proxy_power);
301 static BOOL isParcelModifiableByAgent(const LLParcel* parcelp, U64 group_proxy_power); 259 static BOOL isParcelModifiableByAgent(const LLParcel* parcelp, U64 group_proxy_power);
302 260
303protected: 261private:
304 static void releaseAlertCB(S32 option, void *data); 262 static void releaseAlertCB(S32 option, void *data);
305 263
306 // If the user is claiming land and the current selection 264 // If the user is claiming land and the current selection
@@ -322,6 +280,8 @@ protected:
322 static void callbackJoinLand(S32 option, void* data); 280 static void callbackJoinLand(S32 option, void* data);
323 281
324 //void finishClaim(BOOL user_to_user_sale, U32 join); 282 //void finishClaim(BOOL user_to_user_sale, U32 join);
283 LLViewerImage* getBlockedImage() const;
284 LLViewerImage* getPassImage() const;
325 285
326private: 286private:
327 BOOL mSelected; 287 BOOL mSelected;
@@ -367,8 +327,6 @@ private:
367 LLFrameTimer mCollisionTimer; 327 LLFrameTimer mCollisionTimer;
368 LLUUID mBlockedImageID; 328 LLUUID mBlockedImageID;
369 LLUUID mPassImageID; 329 LLUUID mPassImageID;
370 LLPointer<LLViewerImage> mBlockedImage;
371 LLPointer<LLViewerImage> mPassImage;
372 330
373 // Media 331 // Media
374 S32 mMediaParcelId; 332 S32 mMediaParcelId;