iipsrv  0.9.9
TileManager Class Reference

Class to manage access to the tile cache and tile cropping. More...

#include <TileManager.h>

List of all members.

Public Member Functions

 TileManager (Cache *tc, IIPImage *im, Watermark *w, JPEGCompressor *j, std::ofstream *s, int l)
 Constructor.
RawTile getTile (int resolution, int tile, int xangle, int yangle, int layers, CompressionType c)
 Get a tile from the cache.

Detailed Description

Class to manage access to the tile cache and tile cropping.


Constructor & Destructor Documentation

TileManager::TileManager ( Cache tc,
IIPImage im,
Watermark w,
JPEGCompressor j,
std::ofstream *  s,
int  l 
) [inline]

Constructor.

Parameters:
tcpointer to tile cache object
impointer to IIPImage object
wpointer to watermark object
jpointer to JPEGCompressor object
spointer to output file stream
llogging level

Member Function Documentation

RawTile TileManager::getTile ( int  resolution,
int  tile,
int  xangle,
int  yangle,
int  layers,
CompressionType  c 
)

Get a tile from the cache.

If the JPEG tile already exists in the cache, use that, otherwise check for an uncompressed tile. If that does not exist either, extract a tile from the image. If this is an edge tile, crop it.

Parameters:
resolutionresolution number
tiletile number
xanglehorizontal sequence number
yanglevertical sequence number
layersnumber of quality layers within image to decode
cCompressionType
Returns:
RawTile

The documentation for this class was generated from the following file: