OpenSim
|
Keeps track of a specific piece of land's information More...
Public Member Functions | |
int | GetPrimsFree () |
Vector2 | GetNearestPoint (Vector3 pos) |
Vector2 | GetNearestPointAlongDirection (Vector3 pos, Vector3 pdirection) |
LandObject (LandData landData, Scene scene) | |
LandObject (UUID owner_id, bool is_group_owned, Scene scene) | |
bool | ContainsPoint (int x, int y) |
Checks to see if this land object contains a point More... | |
ILandObject | Copy () |
void | SetParcelObjectMaxOverride (overrideParcelMaxPrimCountDelegate overrideDel) |
void | SetSimulatorObjectMaxOverride (overrideSimulatorMaxPrimCountDelegate overrideDel) |
int | GetParcelMaxPrimCount () |
int | GetSimulatorMaxPrimCount () |
void | SendLandProperties (int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client) |
bool | UpdateLandProperties (LandUpdateArgs args, IClientAPI remote_client, out bool snap_selection, out bool needOverlay) |
void | UpdateLandSold (UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area) |
void | DeedToGroup (UUID groupID) |
bool | IsEitherBannedOrRestricted (UUID avatar) |
bool | CanBeOnThisLand (UUID avatar, float posHeight) |
bool | HasGroupAccess (UUID avatar) |
bool | IsBannedFromLand (UUID avatar) |
bool | IsRestrictedFromLand (UUID avatar) |
bool | IsInLandAccessList (UUID avatar) |
void | SendLandUpdateToClient (IClientAPI remote_client) |
void | SendLandUpdateToClient (bool snap_selection, IClientAPI remote_client) |
void | SendLandUpdateToAvatarsOverMe () |
void | SendLandUpdateToAvatarsOverMe (bool snap_selection) |
List< LandAccessEntry > | CreateAccessListArrayByFlag (AccessList flag) |
void | SendAccessList (UUID agentID, UUID sessionID, uint flags, int sequenceID, IClientAPI remote_client) |
void | UpdateAccessList (uint flags, UUID transactionID, int sequenceID, int sections, List< LandAccessEntry > entries, IClientAPI remote_client) |
void | UpdateLandBitmapByteArray () |
void | ForceUpdateLandInfo () |
Update all settings in land such as area, bitmap byte array, etc More... | |
void | SetLandBitmapFromByteArray () |
void | SetLandBitmap (bool[,] bitmap) |
Sets the land's bitmap manually More... | |
bool[,] | GetLandBitmap () |
Gets the land's bitmap manually More... | |
bool[,] | BasicFullRegionLandBitmap () |
Get a land bitmap that would cover an entire region. More... | |
bool[,] | GetSquareLandBitmap (int start_x, int start_y, int end_x, int end_y, bool set_value=true) |
Create a square land bitmap. More... | |
bool[,] | ModifyLandBitmapSquare (bool[,] land_bitmap, int start_x, int start_y, int end_x, int end_y, bool set_value) |
Change a land bitmap at within a square and set those points to a specific value More... | |
bool[,] | MergeLandBitmaps (bool[,] bitmap_base, bool[,] bitmap_add) |
Join the true values of 2 bitmaps together More... | |
bool[,] | RemapLandBitmap (bool[,] bitmap_base, Vector2 displacement, float rotationDegrees, Vector2 boundingOrigin, Vector2 boundingSize, Vector2 regionSize, out bool isEmptyNow, out Vector3 AABBMin, out Vector3 AABBMax) |
Remap a land bitmap. Takes the supplied land bitmap and rotates it, crops it and finally offsets it into a final land bitmap of the target region size. More... | |
bool[,] | RemoveFromLandBitmap (bool[,] bitmap_base, bool[,] bitmap_new, out bool isEmptyNow, out Vector3 AABBMin, out Vector3 AABBMax) |
Clears any parcel data in bitmap_base where there exists parcel data in bitmap_new. In other words the parcel data in bitmap_new takes over the space of the parcel data in bitmap_base. More... | |
byte[] | ConvertLandBitmapToBytes () |
Converts the land bitmap to a packet friendly byte array More... | |
bool[,] | ConvertBytesToLandBitmap (bool overrideRegionSize=false) |
bool | IsLandBitmapEmpty (bool[,] landBitmap) |
void | DebugLandBitmap (bool[,] landBitmap) |
void | SendForceObjectSelect (int local_id, int request_type, List< UUID > returnIDs, IClientAPI remote_client) |
void | SendLandObjectOwners (IClientAPI remote_client) |
Notify the parcel owner each avatar that owns prims situated on their land. This notification includes aggreagete details such as the number of prims. More... | |
Dictionary< UUID, int > | GetLandObjectOwners () |
void | SellLandObjects (UUID previousOwner) |
void | ReturnObject (SceneObjectGroup obj) |
void | ReturnLandObjects (uint type, UUID[] owners, UUID[] tasks, IClientAPI remote_client) |
void | ResetOverMeRecord () |
void | AddPrimOverMe (SceneObjectGroup obj) |
void | RemovePrimFromOverMe (SceneObjectGroup obj) |
void | SetMediaUrl (string url) |
Set the media url for this land parcel More... | |
void | SetMusicUrl (string url) |
Set the music url for this land parcel More... | |
string | GetMusicUrl () |
Get the music url for this land parcel More... | |
Protected Attributes | |
Scene | m_scene |
List< SceneObjectGroup > | primsOverMe = new List<SceneObjectGroup>() |
Dictionary< uint, UUID > | m_listTransactions = new Dictionary<uint, UUID>() |
ExpiringCache< UUID, bool > | m_groupMemberCache = new ExpiringCache<UUID, bool>() |
TimeSpan | m_groupMemberCacheTimeout = TimeSpan.FromSeconds(30) |
LandData | m_landData |
Properties | |
bool[,] | LandBitmap [get, set] |
LandData | LandData [get, set] |
IPrimCounts | PrimCounts [get, set] |
UUID | RegionUUID [get] |
Vector2 | StartPoint [get] |
Vector2 | EndPoint [get] |
Vector2 | CenterPoint [get] |
Properties inherited from OpenSim.Framework.ILandObject | |
LandData | LandData [get, set] |
bool[,] | LandBitmap [get, set] |
UUID | RegionUUID [get] |
IPrimCounts | PrimCounts [get, set] |
Prim counts for this land object. More... | |
Vector2 | StartPoint [get] |
The start point for the land object. This is the northern-most point as one scans land working from west to east. More... | |
Vector2 | EndPoint [get] |
The end point for the land object. This is the southern-most point as one scans land working from west to east. More... | |
Vector2 | CenterPoint [get] |
Keeps track of a specific piece of land's information
Definition at line 43 of file LandObject.cs.
|
inline |
Definition at line 267 of file LandObject.cs.
|
inline |
Definition at line 273 of file LandObject.cs.
|
inline |
Definition at line 1729 of file LandObject.cs.
|
inline |
Get a land bitmap that would cover an entire region.
Implements OpenSim.Framework.ILandObject.
Definition at line 1049 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 611 of file LandObject.cs.
|
inline |
Checks to see if this land object contains a point
x | |
y |
Implements OpenSim.Framework.ILandObject.
Definition at line 304 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 1378 of file LandObject.cs.
|
inline |
Converts the land bitmap to a packet friendly byte array
Implements OpenSim.Framework.ILandObject.
Definition at line 1348 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 316 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 787 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 1452 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 583 of file LandObject.cs.
|
inline |
Update all settings in land such as area, bitmap byte array, etc
Implements OpenSim.Framework.ILandObject.
Definition at line 901 of file LandObject.cs.
|
inline |
Gets the land's bitmap manually
Implements OpenSim.Framework.ILandObject.
Definition at line 1044 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 1570 of file LandObject.cs.
|
inline |
Get the music url for this land parcel
Implements OpenSim.Framework.ILandObject.
Definition at line 1773 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 124 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 130 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 335 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 71 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 369 of file LandObject.cs.
|
inline |
Create a square land bitmap.
Land co-ordinates are zero indexed. The inputs are treated as points. So if you want to create a bitmap that covers an entire 256 x 256m region apart from a strip of land on the east, then you would need to specify start_x = 0, start_y = 0, end_x = 252 (or anything up to 255), end_y = 255.
At the moment, the smallest parcel of land is 4m x 4m, so if the region is 256 x 256m (the SL size), the bitmap returned will start at (0,0) and end at (63,63). The value of the set_value needs to be true to define an active parcel of the given size.
start_x | |
start_y | |
end_x | |
end_y | |
set_value |
Implements OpenSim.Framework.ILandObject.
Definition at line 1054 of file LandObject.cs.
|
inline |
Definition at line 624 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 666 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 598 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 715 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 1440 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 695 of file LandObject.cs.
|
inline |
Join the true values of 2 bitmaps together
bitmap_base | |
bitmap_add |
Implements OpenSim.Framework.ILandObject.
Definition at line 1103 of file LandObject.cs.
|
inline |
Change a land bitmap at within a square and set those points to a specific value
land_bitmap | |
start_x | |
start_y | |
end_x | |
end_y | |
set_value |
Implements OpenSim.Framework.ILandObject.
Definition at line 1077 of file LandObject.cs.
|
inline |
Remap a land bitmap. Takes the supplied land bitmap and rotates it, crops it and finally offsets it into a final land bitmap of the target region size.
bitmap_base | The original parcel bitmap |
rotationDegrees | |
displacement | <x,y,?> |
boundingOrigin | <x,y,?> |
boundingSize | <x,y,?> |
regionSize | <x,y,?> |
isEmptyNow | out: This is set if the resultant bitmap is now empty |
AABBMin | out: parcel.AABBMin <x,y,0> |
AABBMax | out: parcel.AABBMax <x,y,0> |
Implements OpenSim.Framework.ILandObject.
Definition at line 1144 of file LandObject.cs.
|
inline |
Clears any parcel data in bitmap_base where there exists parcel data in bitmap_new. In other words the parcel data in bitmap_new takes over the space of the parcel data in bitmap_base.
bitmap_base | |
bitmap_new | |
isEmptyNow | out: This is set if the resultant bitmap is now empty |
AABBMin | out: parcel.AABBMin <x,y,0> |
AABBMax | out: parcel.AABBMax <x,y,0> |
Implements OpenSim.Framework.ILandObject.
Definition at line 1298 of file LandObject.cs.
|
inline |
Definition at line 1737 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 1723 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 1645 of file LandObject.cs.
|
inline |
Definition at line 1638 of file LandObject.cs.
|
inline |
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 810 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 1470 of file LandObject.cs.
|
inline |
Notify the parcel owner each avatar that owns prims situated on their land. This notification includes aggreagete details such as the number of prims.
remote_client | A IClientAPI |
Implements OpenSim.Framework.ILandObject.
Definition at line 1520 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 390 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 743 of file LandObject.cs.
|
inline |
Definition at line 748 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 732 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 737 of file LandObject.cs.
|
inline |
Sets the land's bitmap manually
bitmap | block representing where this land is on a map mapped in a 4x4 meter grid |
Implements OpenSim.Framework.ILandObject.
Definition at line 1034 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 907 of file LandObject.cs.
|
inline |
Set the media url for this land parcel
url |
Implements OpenSim.Framework.ILandObject.
Definition at line 1751 of file LandObject.cs.
|
inline |
Set the music url for this land parcel
url |
Implements OpenSim.Framework.ILandObject.
Definition at line 1762 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 326 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 330 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 827 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 893 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 423 of file LandObject.cs.
|
inline |
Implements OpenSim.Framework.ILandObject.
Definition at line 559 of file LandObject.cs.
|
protected |
Definition at line 59 of file LandObject.cs.
|
protected |
Definition at line 60 of file LandObject.cs.
|
protected |
Definition at line 78 of file LandObject.cs.
|
protected |
Definition at line 57 of file LandObject.cs.
|
protected |
Definition at line 55 of file LandObject.cs.
|
protected |
Definition at line 56 of file LandObject.cs.
|
get |
Definition at line 117 of file LandObject.cs.
|
get |
Definition at line 108 of file LandObject.cs.
|
getset |
Definition at line 64 of file LandObject.cs.
|
getset |
Definition at line 80 of file LandObject.cs.
|
getset |
Definition at line 86 of file LandObject.cs.
|
get |
Definition at line 89 of file LandObject.cs.
|
get |
Definition at line 100 of file LandObject.cs.