C# Class WhiteCore.Modules.WorldMap.MapImageModule

Inheritance: IMapImageGenerator, INonSharedRegionModule, IDisposable
Datei anzeigen Open project: WhiteCoreSim/WhiteCore-Dev

Public Methods

Method Description
AddRegion ( IScene scene ) : void
ClearWebCachedImages ( int regionX, int regionY, int sizeX, int sizeY ) : void

Clears the web cached images.

ClearWorldviewCachedImages ( UUID regionID ) : void
Close ( ) : void
CreateMapTile ( Bitmap &terrainBMP, Bitmap &mapBMP ) : void
CreateMapTile ( byte &terrain, byte &map ) : void
CreateMapTileAsync ( object worthless ) : void
CreateTerrainTexture ( ) : void

Create a terrain texture for this scene

CreateTerrainTexture ( bool forced ) : void

Create a terrain texture for this scene

CreateViewImage ( System.Vector3 camPos, System.Vector3 camDir, float fov, int width, int height, bool useTextures ) : Bitmap
CreateViewTileImage ( int size ) : Bitmap
Dispose ( ) : void
HandleUpdateWorldMapConsoleCommand ( IScene scene, string cmdparams ) : void

Update the world map

Initialise ( IConfigSource source ) : void
RegenerateMaptile ( string ID, byte data ) : void
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
SetUpTimers ( ) : void
StartupComplete ( IScene scene, List data ) : void
UpdateWorldMaps ( ) : void

Protected Methods

Method Description
CreateMapTileAsyncCompleted ( IAsyncResult iar ) : void

Private Methods

Method Description
DeserializeCache ( string file ) : bool
DrawObjectVolume ( IScene whichScene, Bitmap mapbmp ) : Bitmap
GenerateOverlay ( ) : byte[]

Generates the overlay.

GetEncoderInfo ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo
OnTimedCreateNewMapImage ( object source, System.Timers.ElapsedEventArgs e ) : void
OnUpdateRegion ( object source, System.Timers.ElapsedEventArgs e ) : void
OverlayBitmapText ( Image bMap, string overlayText ) : Bitmap
ReadCacheMap ( ) : void
SaveCache ( ) : void
SerializeCache ( ) : OSDMap
computeAverageColor ( Bitmap bmp ) : Color
computeAverageColor ( UUID textureID, Color defaultColor ) : Color
fetchTexture ( UUID id ) : Bitmap
project ( System.Vector3 point3d, System.Vector3 originpos ) : Point

Method Details

AddRegion() public method

public AddRegion ( IScene scene ) : void
scene IScene
return void

ClearWebCachedImages() public method

Clears the web cached images.
public ClearWebCachedImages ( int regionX, int regionY, int sizeX, int sizeY ) : void
regionX int Region x.
regionY int Region y.
sizeX int
sizeY int
return void

ClearWorldviewCachedImages() public method

public ClearWorldviewCachedImages ( UUID regionID ) : void
regionID UUID
return void

Close() public method

public Close ( ) : void
return void

CreateMapTile() public method

public CreateMapTile ( Bitmap &terrainBMP, Bitmap &mapBMP ) : void
terrainBMP System.Drawing.Bitmap
mapBMP System.Drawing.Bitmap
return void

CreateMapTile() public method

public CreateMapTile ( byte &terrain, byte &map ) : void
terrain byte
map byte
return void

CreateMapTileAsync() public method

public CreateMapTileAsync ( object worthless ) : void
worthless object
return void

CreateMapTileAsyncCompleted() protected method

protected CreateMapTileAsyncCompleted ( IAsyncResult iar ) : void
iar IAsyncResult
return void

CreateTerrainTexture() public method

Create a terrain texture for this scene
public CreateTerrainTexture ( ) : void
return void

CreateTerrainTexture() public method

Create a terrain texture for this scene
public CreateTerrainTexture ( bool forced ) : void
forced bool
return void

CreateViewImage() public method

public CreateViewImage ( System.Vector3 camPos, System.Vector3 camDir, float fov, int width, int height, bool useTextures ) : Bitmap
camPos System.Vector3
camDir System.Vector3
fov float
width int
height int
useTextures bool
return System.Drawing.Bitmap

CreateViewTileImage() public method

public CreateViewTileImage ( int size ) : Bitmap
size int
return System.Drawing.Bitmap

Dispose() public method

public Dispose ( ) : void
return void

HandleUpdateWorldMapConsoleCommand() public method

Update the world map
public HandleUpdateWorldMapConsoleCommand ( IScene scene, string cmdparams ) : void
scene IScene
cmdparams string
return void

Initialise() public method

public Initialise ( IConfigSource source ) : void
source IConfigSource
return void

RegenerateMaptile() public method

public RegenerateMaptile ( string ID, byte data ) : void
ID string
data byte
return void

RegionLoaded() public method

public RegionLoaded ( IScene scene ) : void
scene IScene
return void

RemoveRegion() public method

public RemoveRegion ( IScene scene ) : void
scene IScene
return void

SetUpTimers() public method

public SetUpTimers ( ) : void
return void

StartupComplete() public method

public StartupComplete ( IScene scene, List data ) : void
scene IScene
data List
return void

UpdateWorldMaps() public method

public UpdateWorldMaps ( ) : void
return void