C# Class Fusion.Engine.Graphics.GIS.DataSystem.MapSources.BaseMapSource

Show file Open project: demiurghg/FusionEngine Class Usage Examples

Public Properties

Property Type Description
EmptyTile Texture2D
Game Game
MaxZoom int?
MinZoom int
RamCache MapTile>.Dictionary
TileSize int
TimeUntilRemove float

Public Methods

Method Description
Dispose ( ) : void
DownloadTile ( MapTile tile ) : bool
GenerateUrl ( int x, int y, int zoom ) : string
GetTile ( int x, int y, int zoom ) : MapTile
TileStreamingThreadFunc ( CancellationToken cancellationToken ) : void
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
BaseMapSource ( Game game ) : System

Private Methods

Method Description
CheckTileInMemory ( int m, int n, int level ) : MapTile

Method Details

BaseMapSource() protected method

protected BaseMapSource ( Game game ) : System
game Game
return System

Dispose() public method

public Dispose ( ) : void
return void

DownloadTile() public method

public DownloadTile ( MapTile tile ) : bool
tile MapTile
return bool

GenerateUrl() public abstract method

public abstract GenerateUrl ( int x, int y, int zoom ) : string
x int
y int
zoom int
return string

GetTile() public method

public GetTile ( int x, int y, int zoom ) : MapTile
x int
y int
zoom int
return MapTile

TileStreamingThreadFunc() public method

public TileStreamingThreadFunc ( CancellationToken cancellationToken ) : void
cancellationToken System.Threading.CancellationToken
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime GameTime
return void

Property Details

EmptyTile public static property

public static Texture2D EmptyTile
return Texture2D

Game public property

public Game Game
return Game

MaxZoom public property

maximum level of zoom
public int? MaxZoom
return int?

MinZoom public property

minimum level of zoom
public int MinZoom
return int

RamCache public property

public Dictionary RamCache
return MapTile>.Dictionary

TileSize public property

public int TileSize
return int

TimeUntilRemove public property

public float TimeUntilRemove
return float