aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llworld.h
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-06-09 01:34:48 -0700
committerMcCabe Maxsted2009-06-09 01:34:48 -0700
commitb582d1a9b804f47b65bca09dc320808338d7e302 (patch)
treeff1d2997d0c0644d65cc3505dda55e50452f7723 /linden/indra/newview/llworld.h
parent'IM Received' button to '__ New IMs' (diff)
downloadmeta-impy-b582d1a9b804f47b65bca09dc320808338d7e302.zip
meta-impy-b582d1a9b804f47b65bca09dc320808338d7e302.tar.gz
meta-impy-b582d1a9b804f47b65bca09dc320808338d7e302.tar.bz2
meta-impy-b582d1a9b804f47b65bca09dc320808338d7e302.tar.xz
Backported LL's version of VWR-2681 from 1.23
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llworld.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/linden/indra/newview/llworld.h b/linden/indra/newview/llworld.h
index 7e50bc4..460809a 100644
--- a/linden/indra/newview/llworld.h
+++ b/linden/indra/newview/llworld.h
@@ -1,6 +1,11 @@
1/** 1/**
2 * @file llworld.h 2 * @file llworld.h
3 * @brief Initial test structure to organize viewer regions 3 * @brief Collection of viewer regions in the vacinity of the user.
4 *
5 * Represents the whole world, so far as 3D functionality is conserned.
6 * Always contains the region that the user's avatar is in along with
7 * neighboring regions. As the user crosses region boundaries, new
8 * regions are added to the world and distant ones are rolled up.
4 * 9 *
5 * $LicenseInfo:firstyear=2001&license=viewergpl$ 10 * $LicenseInfo:firstyear=2001&license=viewergpl$
6 * 11 *
@@ -146,12 +151,18 @@ public:
146 151
147public: 152public:
148 typedef std::list<LLViewerRegion*> region_list_t; 153 typedef std::list<LLViewerRegion*> region_list_t;
149 154 const region_list_t& getRegionList() const { return mActiveRegionList; }
150 region_list_t mActiveRegionList;
151 155
152 region_list_t& getRegionList() { return mActiveRegionList; } 156 // Returns lists of avatar IDs and their world-space positions within a given distance of a point.
157 // All arguments are optional. Given containers will be emptied and then filled.
158 // Not supplying origin or radius input returns data on all avatars in the known regions.
159 void getAvatars(
160 std::vector<LLUUID>* avatar_ids = NULL,
161 std::vector<LLVector3d>* positions = NULL,
162 const LLVector3d& relative_to = LLVector3d(), F32 radius = FLT_MAX) const;
153 163
154private: 164private:
165 region_list_t mActiveRegionList;
155 region_list_t mRegionList; 166 region_list_t mRegionList;
156 region_list_t mVisibleRegionList; 167 region_list_t mVisibleRegionList;
157 region_list_t mCulledRegionList; 168 region_list_t mCulledRegionList;