User Tools

Site Tools


thinkgeo.mapsuite.core.inmemorybitmaptilecache

This is an old revision of the document!


ThinkGeo.MapSuite.Core.InMemoryBitmapTileCache

This class is a concrete class inherits from BitmapTileCache. In this class, the tiles will be saved in memory and it provides some properties to control it very easily.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.TileCache
      • ThinkGeo.MapSuite.Core.BitmapTileCache
        • ThinkGeo.MapSuite.Core.InMemoryBitmapTileCache

Members Summary

Public Constructors

InMemoryBitmapTileCache

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This is the default constructor.

Protected Constructors

Public Methods

ClearCache

  • Parameters:N/A
  • DeclaringType:TileCache
  • Summary:N/A

DeleteTile

DeleteTiles

Equals

  • Parameters:Object
  • DeclaringType:Object
  • Summary:N/A

GetHashCode

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetHigherScaleTile

GetTile

GetTile

GetTiles

GetType

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

SaveTile

SaveTiles

SaveTiles

ToString

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Protected Methods

ClearCacheCore

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method will clear all the tiles in the tileCache.

DeleteTileCore

  • Parameters:Tile
  • DeclaringType:N/A
  • Summary:This method will delete the target tile passed in.

Finalize

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetHigherScaleTileCore

  • Parameters:RectangleShape,Double
  • DeclaringType:N/A
  • Summary:This method overrides the logic in its base class BitmapTileCache. This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut.

GetTileCore

  • Parameters:Int64,Int64
  • DeclaringType:N/A
  • Summary:This method returns the BitmapTile corresponding to passed in row and column.

MemberwiseClone

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

MergeBitmaps

SaveTileCore

  • Parameters:Tile
  • DeclaringType:N/A
  • Summary:This method will save the target tile passed in.

Public Properties

CacheId

  • Return:String
  • Summary:N/A

CachedTilesByScale

ImageFormat

JpegQuality

  • Return:Int16
  • Summary:N/A

LoadingTileImage

  • Return:Bitmap
  • Summary:N/A

MaximumTilesCount

  • Return:Int32
  • Summary:This property gets or sets the maximum tiles count, if it exceed,it will delete the old first cached tiles.

NoDataTileImage

  • Return:Bitmap
  • Summary:N/A

TileAccessMode

TileMatrix

Protected Properties

Public Events

Public Constructors

InMemoryBitmapTileCache()

This is the default constructor.

Remarks

If you use this constructor, you have to set the properties manually.

Parameters

Protected Constructors

Public Methods

ClearCache()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

DeleteTile(Tile)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

tile

  • Type:Tile
  • Description:N/A

Go Back

DeleteTiles(RectangleShape)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

worldExtent

Go Back

Equals(Object)

N/A

Remarks

N/A

Return Value

  • Return Type:Boolean
  • Description:N/A

Parameters

obj

  • Type:Object
  • Description:N/A

Go Back

GetHashCode()

N/A

Remarks

N/A

Return Value

  • Return Type:Int32
  • Description:N/A

Parameters

GetHigherScaleTile(RectangleShape,Double)

N/A

Remarks

N/A

Return Value

Parameters

tileBoundingBox

tileScale

  • Type:Double
  • Description:N/A

Go Back

GetTile(RectangleShape)

N/A

Remarks

N/A

Return Value

Parameters

tileBoundingBox

Go Back

GetTile(Int64,Int64)

N/A

Remarks

N/A

Return Value

Parameters

row

  • Type:Int64
  • Description:N/A

column

  • Type:Int64
  • Description:N/A

Go Back

GetTiles(RectangleShape)

N/A

Remarks

N/A

Return Value

  • Return Type:Collection<BitmapTile>
  • Description:N/A

Parameters

worldExtent

Go Back

GetType()

N/A

Remarks

N/A

Return Value

  • Return Type:Type
  • Description:N/A

Parameters

SaveTile(Tile)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

tile

  • Type:Tile
  • Description:N/A

Go Back

SaveTiles(Bitmap,RectangleShape,Boolean)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

bitmap

  • Type:Bitmap
  • Description:N/A

bitmapExtent

saveContainedCellsOnly

  • Type:Boolean
  • Description:N/A

Go Back

SaveTiles(Bitmap,RectangleShape)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

bitmap

  • Type:Bitmap
  • Description:N/A

bitmapExtent

Go Back

ToString()

N/A

Remarks

N/A

Return Value

  • Return Type:String
  • Description:N/A

Parameters

Protected Methods

ClearCacheCore()

This method will clear all the tiles in the tileCache.

Remarks

This method will not take effect when the ReadOnly is set to true.

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

DeleteTileCore(Tile)

This method will delete the target tile passed in.

Remarks

This method will not take effect when the ReadOnly is set to true.

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

tile

  • Type:Tile
  • Description:The target tile to be deleted.

Go Back

Finalize()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

GetHigherScaleTileCore(RectangleShape,Double)

This method overrides the logic in its base class BitmapTileCache. This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut.

Remarks

N/A

Return Value

  • Return Type:BitmapTile
  • Description:Returns the higher scale(higher zoomLevel) bitmap tile.

Parameters

tileBoundingBox

  • Description:The parameter specifies the current tile bounding box.

tileScale

  • Type:Double
  • Description:This parameter specifies the current tile scale.

Go Back

GetTileCore(Int64,Int64)

This method returns the BitmapTile corresponding to passed in row and column.

Remarks

N/A

Return Value

  • Return Type:BitmapTile
  • Description:Returns the BitmapTile corresponding to the passed in row and column.

Parameters

row

  • Type:Int64
  • Description:The target row for the tile to fetch.

column

  • Type:Int64
  • Description:The target column for the tile to fetch.

Go Back

MemberwiseClone()

N/A

Remarks

N/A

Return Value

  • Return Type:Object
  • Description:N/A

Parameters

MergeBitmaps(IEnumerable<BitmapTile>,Double)

N/A

Remarks

N/A

Return Value

Parameters

tilesToMerge

scale

  • Type:Double
  • Description:N/A

Go Back

OnGettingCacheImage(GettingCacheImageBitmapTileCacheEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

OnGottenCacheImage(GottenCacheImageBitmapTileCacheEventArgs)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

SaveTileCore(Tile)

This method will save the target tile passed in.

Remarks

This method will not take effect when the ReadOnly is set to true.

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

tile

  • Type:Tile
  • Description:The target tile to be saved.

Go Back

Public Properties

CacheId

N/A

Remarks

N/A

Return Value

Return Type:String

Go Back

CachedTilesByScale

This property gets the Cached tiles,each item is a Dictionary with scale as its key.

Remarks

N/A

Return Value

ImageFormat

N/A

Remarks

N/A

Return Value

Return Type:TileImageFormat

Go Back

JpegQuality

N/A

Remarks

N/A

Return Value

Return Type:Int16

Go Back

LoadingTileImage

N/A

Remarks

N/A

Return Value

Return Type:Bitmap

Go Back

MaximumTilesCount

This property gets or sets the maximum tiles count, if it exceed,it will delete the old first cached tiles.

Remarks

N/A

Return Value

Return Type:Int32

Go Back

NoDataTileImage

N/A

Remarks

N/A

Return Value

Return Type:Bitmap

Go Back

TileAccessMode

N/A

Remarks

N/A

Return Value

Return Type:TileAccessMode

Go Back

TileMatrix

N/A

Remarks

N/A

Return Value

Return Type:TileMatrix

Go Back

Protected Properties

Public Events

GettingCacheImage

N/A

Remarks

GottenCacheImage

N/A

Remarks

thinkgeo.mapsuite.core.inmemorybitmaptilecache.1442485911.txt.gz · Last modified: 2015/09/17 10:31 by admin