Champlain.TileCache¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Champlain.TileCache(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
The
Champlain.TileCache
structure contains only private data and should be accessed using the provided APINew in version 0.6.
- on_tile_filled(tile)¶
- Parameters:
tile (
Champlain.Tile
) – aChamplain.Tile
When a cache fills a tile and the next source in the chain is a tile cache, it should call this function on the next source. This way all the caches preceding a tile source in the chain get informed that the tile was used and can modify their metadata accordingly in the implementation of this function. In addition, the call of this function should be chained so within the implementation of this function it should be called on the next source in the chain when next source is a tile cache.
New in version 0.6.
- refresh_tile_time(tile)¶
- Parameters:
tile (
Champlain.Tile
) – aChamplain.Tile
Refreshes the tile access time in the cache.
New in version 0.6.
- store_tile(tile, contents, size)¶
- Parameters:
tile (
Champlain.Tile
) – aChamplain.Tile
contents (
str
) – the tile contents that should be storedsize (
int
) – size of the contents in bytes
Stores the tile including the metadata into the cache.
New in version 0.6.
- do_on_tile_filled(tile) virtual¶
- Parameters:
tile (
Champlain.Tile
) – aChamplain.Tile
When a cache fills a tile and the next source in the chain is a tile cache, it should call this function on the next source. This way all the caches preceding a tile source in the chain get informed that the tile was used and can modify their metadata accordingly in the implementation of this function. In addition, the call of this function should be chained so within the implementation of this function it should be called on the next source in the chain when next source is a tile cache.
New in version 0.6.
- do_refresh_tile_time(tile) virtual¶
- Parameters:
tile (
Champlain.Tile
) – aChamplain.Tile
Refreshes the tile access time in the cache.
New in version 0.6.
- do_store_tile(tile, contents, size) virtual¶
- Parameters:
tile (
Champlain.Tile
) – aChamplain.Tile
contents (
str
) – the tile contents that should be storedsize (
int
) – size of the contents in bytes
Stores the tile including the metadata into the cache.
New in version 0.6.