C# 클래스 OpenSim.Region.CoreModules.World.WorldMap.WorldMapModule

상속: INonSharedRegionModule, IWorldMapModule
파일 보기 프로젝트 열기: N3X15/VoxelSim

보호된 프로퍼티들

프로퍼티 타입 설명
m_Enabled bool
m_scene OpenSim.Region.Framework.Scenes.Scene

공개 메소드들

메소드 설명
AddRegion ( Scene scene ) : void
Close ( ) : void
EnqueueMapItemRequest ( MapRequestState state ) : void

Enqueues the map item request into the processing thread

GenerateMaptile ( ) : void
GetMapLayer ( OpenSim.Framework.Capabilities.LLSDMapRequest mapReq ) : OpenSim.Framework.Capabilities.LLSDMapLayerResponse

HandleExportWorldMapConsoleCommand ( string module, string cmdparams ) : void

Export the world map

HandleMapItemRequest ( IClientAPI remoteClient, uint flags, uint EstateID, bool godlike, uint itemtype, ulong regionhandle ) : void
HandleRemoteMapItemRequest ( string path, OSD request, string endpoint ) : OSD
Initialise ( IConfigSource config ) : void
MapLayerRequest ( string request, string path, string param, UUID agentID, OpenSim.Framework.Capabilities.Caps caps ) : string

Callback for a map layer request

OnHTTPGetMapImage ( Hashtable keysvals ) : Hashtable
OnRegisterCaps ( UUID agentID, OpenSim.Framework.Capabilities.Caps caps ) : void
RegionLoaded ( Scene scene ) : void
RemoveRegion ( Scene scene ) : void
RequestMapBlocks ( IClientAPI remoteClient, int minX, int minY, int maxX, int maxY, uint flag ) : void

Requests map blocks in area of minX, maxX, minY, MaxY in world cordinates

RequestMapItems ( string httpserver, UUID id, uint flags, uint EstateID, bool godlike, uint itemtype, ulong regionhandle ) : void

Enqueue the MapItem request for remote processing

process ( ) : void

Processing thread main() loop for doing remote mapitem requests

보호된 메소드들

메소드 설명
AddHandlers ( ) : void
GetAndSendBlocks ( IClientAPI remoteClient, int minX, int minY, int maxX, int maxY, uint flag ) : void
GetOSDMapLayerResponse ( ) : OpenSim.Framework.Capabilities.OSDMapLayer

MapBlockFromGridRegion ( OpenSim.Framework.MapBlockData block, OpenSim.Services.Interfaces.GridRegion r ) : void
RemoveHandlers ( ) : void

비공개 메소드들

메소드 설명
ClientLoggedOut ( UUID AgentId, Scene scene ) : void

Client logged out, check to see if there are any more root agents in the simulator If not, stop the mapItemRequest Thread Event handler

GetEncoderInfo ( String mimeType ) : System.Drawing.Imaging.ImageCodecInfo
MakeChildAgent ( ScenePresence avatar ) : void
MakeRootAgent ( ScenePresence avatar ) : void
OnNewClient ( IClientAPI client ) : void

Registered for event

RequestMapItemsAsync ( string httpserver, UUID id, uint flags, uint EstateID, bool godlike, uint itemtype, ulong regionhandle ) : OpenMetaverse.StructuredData.OSDMap

Does the actual remote mapitem request This should be called from an asynchronous thread Request failures get blacklisted until region restart so we don't continue to spend resources trying to contact regions that are down.

RequestMapItemsCompleted ( OpenMetaverse.StructuredData.OSDMap response ) : void

Sends the mapitem response to the IClientAPI

StartThread ( object o ) : void

Starts the MapItemRequest Thread Note that this only gets started when there are actually agents in the region Additionally, it gets stopped when there are none.

StopThread ( ) : void

Enqueues a 'stop thread' MapRequestState. Causes the MapItemRequest thread to end

메소드 상세

AddHandlers() 보호된 메소드

protected AddHandlers ( ) : void
리턴 void

AddRegion() 공개 메소드

public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

EnqueueMapItemRequest() 공개 메소드

Enqueues the map item request into the processing thread
public EnqueueMapItemRequest ( MapRequestState state ) : void
state MapRequestState
리턴 void

GenerateMaptile() 공개 메소드

public GenerateMaptile ( ) : void
리턴 void

GetAndSendBlocks() 보호된 메소드

protected GetAndSendBlocks ( IClientAPI remoteClient, int minX, int minY, int maxX, int maxY, uint flag ) : void
remoteClient IClientAPI
minX int
minY int
maxX int
maxY int
flag uint
리턴 void

GetMapLayer() 공개 메소드

public GetMapLayer ( OpenSim.Framework.Capabilities.LLSDMapRequest mapReq ) : OpenSim.Framework.Capabilities.LLSDMapLayerResponse
mapReq OpenSim.Framework.Capabilities.LLSDMapRequest
리턴 OpenSim.Framework.Capabilities.LLSDMapLayerResponse

GetOSDMapLayerResponse() 보호된 정적인 메소드

protected static GetOSDMapLayerResponse ( ) : OpenSim.Framework.Capabilities.OSDMapLayer
리턴 OpenSim.Framework.Capabilities.OSDMapLayer

HandleExportWorldMapConsoleCommand() 공개 메소드

Export the world map
public HandleExportWorldMapConsoleCommand ( string module, string cmdparams ) : void
module string
cmdparams string
리턴 void

HandleMapItemRequest() 공개 메소드

public HandleMapItemRequest ( IClientAPI remoteClient, uint flags, uint EstateID, bool godlike, uint itemtype, ulong regionhandle ) : void
remoteClient IClientAPI
flags uint
EstateID uint
godlike bool
itemtype uint
regionhandle ulong
리턴 void

HandleRemoteMapItemRequest() 공개 메소드

public HandleRemoteMapItemRequest ( string path, OSD request, string endpoint ) : OSD
path string
request OSD
endpoint string
리턴 OSD

Initialise() 공개 메소드

public Initialise ( IConfigSource config ) : void
config IConfigSource
리턴 void

MapBlockFromGridRegion() 보호된 메소드

protected MapBlockFromGridRegion ( OpenSim.Framework.MapBlockData block, OpenSim.Services.Interfaces.GridRegion r ) : void
block OpenSim.Framework.MapBlockData
r OpenSim.Services.Interfaces.GridRegion
리턴 void

MapLayerRequest() 공개 메소드

Callback for a map layer request
public MapLayerRequest ( string request, string path, string param, UUID agentID, OpenSim.Framework.Capabilities.Caps caps ) : string
request string
path string
param string
agentID UUID
caps OpenSim.Framework.Capabilities.Caps
리턴 string

OnHTTPGetMapImage() 공개 메소드

public OnHTTPGetMapImage ( Hashtable keysvals ) : Hashtable
keysvals System.Collections.Hashtable
리턴 System.Collections.Hashtable

OnRegisterCaps() 공개 메소드

public OnRegisterCaps ( UUID agentID, OpenSim.Framework.Capabilities.Caps caps ) : void
agentID UUID
caps OpenSim.Framework.Capabilities.Caps
리턴 void

RegionLoaded() 공개 메소드

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
리턴 void

RemoveHandlers() 보호된 메소드

protected RemoveHandlers ( ) : void
리턴 void

RemoveRegion() 공개 메소드

public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
리턴 void

RequestMapBlocks() 공개 메소드

Requests map blocks in area of minX, maxX, minY, MaxY in world cordinates
public RequestMapBlocks ( IClientAPI remoteClient, int minX, int minY, int maxX, int maxY, uint flag ) : void
remoteClient IClientAPI
minX int
minY int
maxX int
maxY int
flag uint
리턴 void

RequestMapItems() 공개 메소드

Enqueue the MapItem request for remote processing
public RequestMapItems ( string httpserver, UUID id, uint flags, uint EstateID, bool godlike, uint itemtype, ulong regionhandle ) : void
httpserver string blank string, we discover this in the process
id UUID Agent ID that we are making this request on behalf
flags uint passed in from packet
EstateID uint passed in from packet
godlike bool passed in from packet
itemtype uint passed in from packet
regionhandle ulong Region we're looking up
리턴 void

process() 공개 메소드

Processing thread main() loop for doing remote mapitem requests
public process ( ) : void
리턴 void

프로퍼티 상세

m_Enabled 보호되어 있는 프로퍼티

protected bool m_Enabled
리턴 bool

m_scene 보호되어 있는 프로퍼티

protected Scene,OpenSim.Region.Framework.Scenes m_scene
리턴 OpenSim.Region.Framework.Scenes.Scene