C# Class OpenMetaverse.GridManager

Manages grid-wide tasks such as the world map
Mostrar archivo Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Methods

Method Description
GetGridRegion ( string name, GridLayerType layer, GridRegion &region ) : bool

Get grid region information using the region name, this function will block until it can find the region or gives up

GridManager ( GridClient client ) : System

Constructor

MapItems ( ulong regionHandle, GridItemType item, GridLayerType layer, int timeoutMS ) : List

RequestMainlandSims ( GridLayerType layer ) : void

Request data for all mainland (Linden managed) simulators

RequestMapBlocks ( GridLayerType layer, ushort minX, ushort minY, ushort maxX, ushort maxY, bool returnNonExistent ) : void

RequestMapItems ( ulong regionHandle, GridItemType item, GridLayerType layer ) : void

RequestMapLayer ( GridLayerType layer ) : void

RequestMapRegion ( string regionName, GridLayerType layer ) : void

RequestRegionHandle ( UUID regionID ) : void

Request the region handle for the specified region UUID

Private Methods

Method Description
CoarseLocationHandler ( Packet packet, Simulator simulator ) : void
MapBlockReplyHandler ( Packet packet, Simulator simulator ) : void

Populate Grid info based on data from MapBlockReplyPacket

MapItemReplyHandler ( Packet packet, Simulator simulator ) : void
MapLayerResponseHandler ( CapsClient client, OSD result, Exception error ) : void
RegionHandleReplyHandler ( Packet packet, Simulator simulator ) : void
TimeMessageHandler ( Packet packet, Simulator simulator ) : void

Get sim time from the appropriate packet

Method Details

GetGridRegion() public method

Get grid region information using the region name, this function will block until it can find the region or gives up
public GetGridRegion ( string name, GridLayerType layer, GridRegion &region ) : bool
name string Name of sim you're looking for
layer GridLayerType Layer that you are requesting
region GridRegion Will contain a GridRegion for the sim you're /// looking for if successful, otherwise an empty structure
return bool

GridManager() public method

Constructor
public GridManager ( GridClient client ) : System
client GridClient Instance of GridClient object to associate with this GridManager instance
return System

MapItems() public method

public MapItems ( ulong regionHandle, GridItemType item, GridLayerType layer, int timeoutMS ) : List
regionHandle ulong
item GridItemType
layer GridLayerType
timeoutMS int
return List

RequestMainlandSims() public method

Request data for all mainland (Linden managed) simulators
public RequestMainlandSims ( GridLayerType layer ) : void
layer GridLayerType
return void

RequestMapBlocks() public method

public RequestMapBlocks ( GridLayerType layer, ushort minX, ushort minY, ushort maxX, ushort maxY, bool returnNonExistent ) : void
layer GridLayerType
minX ushort
minY ushort
maxX ushort
maxY ushort
returnNonExistent bool
return void

RequestMapItems() public method

public RequestMapItems ( ulong regionHandle, GridItemType item, GridLayerType layer ) : void
regionHandle ulong
item GridItemType
layer GridLayerType
return void

RequestMapLayer() public method

public RequestMapLayer ( GridLayerType layer ) : void
layer GridLayerType
return void

RequestMapRegion() public method

public RequestMapRegion ( string regionName, GridLayerType layer ) : void
regionName string
layer GridLayerType
return void

RequestRegionHandle() public method

Request the region handle for the specified region UUID
public RequestRegionHandle ( UUID regionID ) : void
regionID UUID UUID of the region to look up
return void