User Tools

Site Tools


thinkgeo.mapsuite.desktopedition.sessionfilebitmaptilecache

This is an old revision of the document!


ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache

<!– Class –> This class is a concrete class that inherits from FileBitmapTileCache. In this class, the tiles will be marked as obsolete when you call the ClearCache method and will be deleted in a background thread.

Remarks

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodSessionFileBitmapTileCache This is the default constructor.
Public MethodSessionFileBitmapTileCache String This is the overloads constructor.
Public MethodSessionFileBitmapTileCache String, String This is the overloads constructor.
Public MethodSessionFileBitmapTileCache String, String, TileImageFormat, TileMatrix This is the constructor with all the parameters needed passed in.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodClearCacheCore TileCache(overriden) This method will create a new cacheId for the SessionFileBitmapTileCache and mark the original one as obsolete. The original will then be deleted in a background thread.
Protected MethodDeleteTileCore Tile TileCache(overriden)
Protected MethodFinalize Object
Protected MethodGetHigherScaleTileCore RectangleShape, Double BitmapTileCache(overriden)
Protected MethodGetTileCore Int64, Int64 BitmapTileCache(overriden)
Protected MethodMemberwiseClone Object
Protected MethodMergeBitmaps IEnumerable<BitmapTile>, Double BitmapTileCache
Protected MethodOnGettingCacheImage GettingCacheImageBitmapTileCacheEventArgs BitmapTileCache
Protected MethodOnGottenCacheImage GottenCacheImageBitmapTileCacheEventArgs BitmapTileCache
Protected MethodSaveTileCore Tile TileCache(overriden)

Public Properties

Protected Properties

Name Return DeclaringType Summary

Public Events

Public Constructors

SessionFileBitmapTileCache()

This is the default constructor.

Remarks

If you use this constructor, you must set the properties manually.

Parameters

Name Type Description

Go Back

SessionFileBitmapTileCache(String)

This is the overloads constructor.

Remarks

If you use this constructor, the other properties are set with default values.

Parameters

Name Type Description
cacheDirectory String<!– System.String –> This parameter specifies the directory of the tile cache.

Go Back

SessionFileBitmapTileCache(String, String)

This is the overloads constructor.

Remarks

If you use this constructor, the other properties are set with default values.

Parameters

Name Type Description
cacheDirectory String<!– System.String –> This parameter specifies the directory of the tile cache.
cacheId String<!– System.String –> This parameter specifies the cache ID of the tile cache.

Go Back

SessionFileBitmapTileCache(String, String, TileImageFormat, TileMatrix)

This is the constructor with all the parameters needed passed in.

Remarks

Parameters

Name Type Description
cacheDirectory String<!– System.String –> This parameter specifies the directory of the tile cache.
cacheId String<!– System.String –> This parameter specifies the cache IF of the tile cache.
imageFormat TileImageFormat<!– ThinkGeo.MapSuite.Core.TileImageFormat –> This parameter specifies the image format of the tile cahce.
tileMatrix TileMatrix<!– ThinkGeo.MapSuite.Core.TileMatrix –> This parameter specifies the tile matrix of the tile cache.

Go Back

Protected Constructors

Public Methods

ClearCache()

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

ClearCache(TimeSpan)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
tileExpiration TimeSpan<!– System.TimeSpan –>

<!– ThinkGeo.MapSuite.Core.FileBitmapTileCache –> Go Back

ClearCache(Double)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
maxSizeInMegabytes Double<!– System.Double –>

<!– ThinkGeo.MapSuite.Core.FileBitmapTileCache –> Go Back

ClearCache(TimeSpan, Double)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
tileExpiration TimeSpan<!– System.TimeSpan –>
maxSizeInMegabytes Double<!– System.Double –>

<!– ThinkGeo.MapSuite.Core.FileBitmapTileCache –> Go Back

DeleteTile(Tile)

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
tile Tile<!– ThinkGeo.MapSuite.Core.Tile –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

DeleteTiles(RectangleShape)

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

Equals(Object)

Remarks

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Remarks

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetHigherScaleTile(RectangleShape, Double)

Remarks

Return Value

Return Type Description
BitmapTile<!– ThinkGeo.MapSuite.Core.BitmapTile –>

Parameters

Name Type Description
tileBoundingBox RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>
tileScale Double<!– System.Double –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache –> Go Back

GetTile(RectangleShape)

Remarks

Return Value

Return Type Description
BitmapTile<!– ThinkGeo.MapSuite.Core.BitmapTile –>

Parameters

Name Type Description
tileBoundingBox RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache –> Go Back

GetTile(Int64, Int64)

Remarks

Return Value

Return Type Description
BitmapTile<!– ThinkGeo.MapSuite.Core.BitmapTile –>

Parameters

Name Type Description
row Int64<!– System.Int64 –>
column Int64<!– System.Int64 –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache –> Go Back

GetTileImageFileName(Int64, Int64)

Remarks

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description
row Int64<!– System.Int64 –>
column Int64<!– System.Int64 –>

<!– ThinkGeo.MapSuite.Core.FileBitmapTileCache –> Go Back

GetTileImageFileNames(RectangleShape)

Remarks

Return Value

Return Type Description
Collection<String><!– System.Collections.ObjectModel.Collection{System.String} –>

Parameters

Name Type Description
tileBoundingBox RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

<!– ThinkGeo.MapSuite.Core.FileBitmapTileCache –> Go Back

GetTiles(RectangleShape)

Remarks

Return Value

Return Type Description
Collection<BitmapTile><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.BitmapTile} –>

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache –> Go Back

GetType()

Remarks

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

SaveTile(Tile)

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
tile Tile<!– ThinkGeo.MapSuite.Core.Tile –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

SaveTiles(Bitmap, RectangleShape, Boolean)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
bitmap Bitmap<!– System.Drawing.Bitmap –>
bitmapExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>
saveContainedCellsOnly Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

SaveTiles(Bitmap, RectangleShape)

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
bitmap Bitmap<!– System.Drawing.Bitmap –>
bitmapExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

ToString()

Remarks

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

ClearCacheCore()

This method will create a new cacheId for the SessionFileBitmapTileCache and mark the original one as obsolete. The original will then be deleted in a background thread.

Remarks

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

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.Core.TileCache(overriden) –> Go Back

DeleteTileCore(Tile)

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
tile Tile<!– ThinkGeo.MapSuite.Core.Tile –>

<!– ThinkGeo.MapSuite.Core.TileCache(overriden) –> Go Back

Finalize()

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetHigherScaleTileCore(RectangleShape, Double)

Remarks

Return Value

Return Type Description
BitmapTile<!– ThinkGeo.MapSuite.Core.BitmapTile –>

Parameters

Name Type Description
tileBoundingBox RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>
tileScale Double<!– System.Double –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache(overriden) –> Go Back

GetTileCore(Int64, Int64)

Remarks

Return Value

Return Type Description
BitmapTile<!– ThinkGeo.MapSuite.Core.BitmapTile –>

Parameters

Name Type Description
row Int64<!– System.Int64 –>
column Int64<!– System.Int64 –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache(overriden) –> Go Back

MemberwiseClone()

Remarks

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MergeBitmaps(IEnumerable<BitmapTile>, Double)

Remarks

For the most updated Info for this topic, please check it here:<a href=“” target=“_blank”></a>

Return Value

Return Type Description
BitmapTile<!– ThinkGeo.MapSuite.Core.BitmapTile –>

Parameters

Name Type Description
tilesToMerge IEnumerable<BitmapTile><!– System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.Core.BitmapTile} –>
scale Double<!– System.Double –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache –> Go Back

OnGettingCacheImage(GettingCacheImageBitmapTileCacheEventArgs)

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e GettingCacheImageBitmapTileCacheEventArgs<!– ThinkGeo.MapSuite.Core.GettingCacheImageBitmapTileCacheEventArgs –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache –> Go Back

OnGottenCacheImage(GottenCacheImageBitmapTileCacheEventArgs)

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e GottenCacheImageBitmapTileCacheEventArgs<!– ThinkGeo.MapSuite.Core.GottenCacheImageBitmapTileCacheEventArgs –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache –> Go Back

SaveTileCore(Tile)

Remarks

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
tile Tile<!– ThinkGeo.MapSuite.Core.Tile –>

<!– ThinkGeo.MapSuite.Core.TileCache(overriden) –> Go Back

Public Properties

CacheDirectory

Remarks

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.Core.FileBitmapTileCache –> Go Back

CacheId

Remarks

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

ExpirationTime

Remarks

Return Value

Return Type
TimeSpan<!– System.TimeSpan –>

<!– ThinkGeo.MapSuite.Core.FileBitmapTileCache –> Go Back

ImageFormat

Remarks

Return Value

Return Type
TileImageFormat<!– ThinkGeo.MapSuite.Core.TileImageFormat –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

JpegQuality

Remarks

Return Value

Return Type
Int16<!– System.Int16 –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

LoadingTileImage

Remarks

Return Value

Return Type
Bitmap<!– System.Drawing.Bitmap –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

NoDataTileImage

Remarks

Return Value

Return Type
Bitmap<!– System.Drawing.Bitmap –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

TileAccessMode

Remarks

Return Value

Return Type
TileAccessMode<!– ThinkGeo.MapSuite.Core.TileAccessMode –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

TileMatrix

Remarks

Return Value

Return Type
TileMatrix<!– ThinkGeo.MapSuite.Core.TileMatrix –>

<!– ThinkGeo.MapSuite.Core.TileCache –> Go Back

Protected Properties

Public Events

GettingCacheImage

Remarks

Event Arguments

Event Arguments
GettingCacheImageBitmapTileCacheEventArgs<!– ThinkGeo.MapSuite.Core.GettingCacheImageBitmapTileCacheEventArgs –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache –> Go Back

GottenCacheImage

Remarks

Event Arguments

Event Arguments
GottenCacheImageBitmapTileCacheEventArgs<!– ThinkGeo.MapSuite.Core.GottenCacheImageBitmapTileCacheEventArgs –>

<!– ThinkGeo.MapSuite.Core.BitmapTileCache –> Go Back

NOTOC DesktopEdition ThinkGeo.MapSuite.DesktopEdition UpdateDocumentation

thinkgeo.mapsuite.desktopedition.sessionfilebitmaptilecache.1440040130.txt.gz · Last modified: 2015/09/18 03:04 (external edit)