iipsrv 1.2
iipsrv is an advanced high-performance feature-rich image server for web-based streamed viewing and zooming of ultra high-resolution images
TileManager Class Reference

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

#include <TileManager.h>

Public Member Functions

 TileManager (Cache *tc, IIPImage *im, Watermark *w, Compressor *c, Logger *s, int l)
 Constructor.
 
RawTile getTile (int resolution, int tile, int xangle, int yangle, int layers, CompressionType c)
 Get a tile from the cache.
 
RawTile getRegion (unsigned int res, int xangle, int yangle, int layers, unsigned int x, unsigned int y, unsigned int w, unsigned int h)
 Generate a complete region.
 

Detailed Description

Class to manage access to the tile cache.

Constructor & Destructor Documentation

◆ TileManager()

TileManager::TileManager ( Cache tc,
IIPImage im,
Watermark w,
Compressor c,
Logger s,
int  l 
)
inline

Constructor.

Parameters
tcpointer to tile cache object
impointer to IIPImage object
wpointer to watermark object
cpointer to Compressor object
spointer to Logger object
llogging level

Member Function Documentation

◆ getRegion()

RawTile TileManager::getRegion ( unsigned int  res,
int  xangle,
int  yangle,
int  layers,
unsigned int  x,
unsigned int  y,
unsigned int  w,
unsigned int  h 
)

Generate a complete region.

Build up an arbitrary region by extracting tiles from the cache by using getTile function. Data returned as uncompressed data.

Parameters
resresolution number
xanglehorizontal sequence number
yanglevertical sequence number
layersnumber of quality layers within image to decode
xleft offset with respect to full image
ytop offset with respect to full image
wwidth of region requested
hheight of region requested
Returns
RawTile

◆ getTile()

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

Get a tile from the cache.

If the encoded 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.

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: