C# Class Universe.Modules.WorldMap.MapImageModule

Inheritance: IMapImageGenerator, INonSharedRegionModule, IDisposable
Afficher le fichier Open project: Virtual-Universe/Virtual-Universe

Méthodes publiques

Méthode 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

Initialize ( 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

Méthodes protégées

Méthode Description
CreateMapTileAsyncCompleted ( IAsyncResult iar ) : void

Private Methods

Méthode 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 méthode

public AddRegion ( IScene scene ) : void
scene IScene
Résultat void

ClearWebCachedImages() public méthode

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
Résultat void

ClearWorldviewCachedImages() public méthode

public ClearWorldviewCachedImages ( UUID regionID ) : void
regionID UUID
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

CreateMapTile() public méthode

public CreateMapTile ( Bitmap &terrainBMP, Bitmap &mapBMP ) : void
terrainBMP System.Drawing.Bitmap
mapBMP System.Drawing.Bitmap
Résultat void

CreateMapTile() public méthode

public CreateMapTile ( byte &terrain, byte &map ) : void
terrain byte
map byte
Résultat void

CreateMapTileAsync() public méthode

public CreateMapTileAsync ( object worthless ) : void
worthless object
Résultat void

CreateMapTileAsyncCompleted() protected méthode

protected CreateMapTileAsyncCompleted ( IAsyncResult iar ) : void
iar IAsyncResult
Résultat void

CreateTerrainTexture() public méthode

Create a terrain texture for this scene
public CreateTerrainTexture ( ) : void
Résultat void

CreateTerrainTexture() public méthode

Create a terrain texture for this scene
public CreateTerrainTexture ( bool forced ) : void
forced bool
Résultat void

CreateViewImage() public méthode

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
Résultat System.Drawing.Bitmap

CreateViewTileImage() public méthode

public CreateViewTileImage ( int size ) : Bitmap
size int
Résultat System.Drawing.Bitmap

Dispose() public méthode

public Dispose ( ) : void
Résultat void

HandleUpdateWorldMapConsoleCommand() public méthode

Update the world map
public HandleUpdateWorldMapConsoleCommand ( IScene scene, string cmdparams ) : void
scene IScene
cmdparams string
Résultat void

Initialize() public méthode

public Initialize ( IConfigSource source ) : void
source IConfigSource
Résultat void

RegenerateMaptile() public méthode

public RegenerateMaptile ( string ID, byte data ) : void
ID string
data byte
Résultat void

RegionLoaded() public méthode

public RegionLoaded ( IScene scene ) : void
scene IScene
Résultat void

RemoveRegion() public méthode

public RemoveRegion ( IScene scene ) : void
scene IScene
Résultat void

SetUpTimers() public méthode

public SetUpTimers ( ) : void
Résultat void

StartupComplete() public méthode

public StartupComplete ( IScene scene, List data ) : void
scene IScene
data List
Résultat void

UpdateWorldMaps() public méthode

public UpdateWorldMaps ( ) : void
Résultat void