TIL_ImageCache Class Reference

#include <TIL_ImageCache.h>

Inheritance diagram for TIL_ImageCache:

UT_Cache

List of all members.

Public Member Functions

 TIL_ImageCache ()
 ~TIL_ImageCache ()
void setCacheLimit (bool enable)
void setCacheSize (unsigned size_in_kb)
int64 getCurrentSize () const
int64 getMaxSize () const
void addToCache (TIL_Image *image)
void returnToCache (TIL_Image *&image)
void returnToCache (const TIL_Raster *r)
void removeSourceFromCache (TIL_ImageSource *source)
void removeFrameFromCache (TIL_ImageSource *source, int fr)
TIL_ImagegetImageFromCache (TIL_ImageState *match, bool usedscaled=false, UT_FilterType f=UT_FILTER_BOX, bool bump=true)
void clearImageCache (bool force_all=false)
int getImage (TIL_Image *&image, TIL_ImageSource *source, const char *plane, int planeindex, float t, void *look, bool updateflag, float zoom=1.0F, float izoom=1.0f, float u1=0.0F, float v1=0.0F, float u2=1.0F, float v2=1.0F, bool scaled=false, TIL_AlphaOption alpha=TIL_NO_ALPHA, bool onlyifcached=false, bool override_res=false, int overx=-1, int overy=-1, TIL_DataFormat data=TILE_MAX_DATA_FORMAT, bool apply_software_emul=true, bool halffloatsupport=true, bool useaspectratio=true)
void dumpCache (ostream &os)
void setEmulation (bool hardaccel, float black, float white, float scale, float shift, int component, bool hardlut, const char *lut, float gamma, bool fastaspect, float aspect, bool use8bit)
virtual int64 utReduceCacheSizeBy (int64 amount)

Static Public Member Functions

static int64 getSystemMaxSize ()
static void setUpdateCallback (void(*callback)(void *, TIL_Raster *, int, int, float, float))

Protected Member Functions

virtual const char * utGetCacheName () const
virtual int64 utGetCurrentSize ()
virtual bool utHasMaxSize () const
virtual int64 utGetMaxSize ()
virtual void utSetMaxSize (int64 size)


Detailed Description

Definition at line 43 of file TIL_ImageCache.h.


Constructor & Destructor Documentation

TIL_ImageCache::TIL_ImageCache (  ) 

TIL_ImageCache::~TIL_ImageCache (  ) 


Member Function Documentation

void TIL_ImageCache::addToCache ( TIL_Image image  ) 

void TIL_ImageCache::clearImageCache ( bool  force_all = false  ) 

void TIL_ImageCache::dumpCache ( ostream &  os  ) 

int64 TIL_ImageCache::getCurrentSize (  )  const [inline]

Definition at line 52 of file TIL_ImageCache.h.

int TIL_ImageCache::getImage ( TIL_Image *&  image,
TIL_ImageSource source,
const char *  plane,
int  planeindex,
float  t,
void *  look,
bool  updateflag,
float  zoom = 1.0F,
float  izoom = 1.0f,
float  u1 = 0.0F,
float  v1 = 0.0F,
float  u2 = 1.0F,
float  v2 = 1.0F,
bool  scaled = false,
TIL_AlphaOption  alpha = TIL_NO_ALPHA,
bool  onlyifcached = false,
bool  override_res = false,
int  overx = -1,
int  overy = -1,
TIL_DataFormat  data = TILE_MAX_DATA_FORMAT,
bool  apply_software_emul = true,
bool  halffloatsupport = true,
bool  useaspectratio = true 
)

TIL_Image* TIL_ImageCache::getImageFromCache ( TIL_ImageState match,
bool  usedscaled = false,
UT_FilterType  f = UT_FILTER_BOX,
bool  bump = true 
)

int64 TIL_ImageCache::getMaxSize (  )  const [inline]

Definition at line 53 of file TIL_ImageCache.h.

static int64 TIL_ImageCache::getSystemMaxSize (  )  [static]

void TIL_ImageCache::removeFrameFromCache ( TIL_ImageSource source,
int  fr 
)

void TIL_ImageCache::removeSourceFromCache ( TIL_ImageSource source  ) 

void TIL_ImageCache::returnToCache ( const TIL_Raster r  ) 

void TIL_ImageCache::returnToCache ( TIL_Image *&  image  ) 

void TIL_ImageCache::setCacheLimit ( bool  enable  ) 

void TIL_ImageCache::setCacheSize ( unsigned  size_in_kb  ) 

void TIL_ImageCache::setEmulation ( bool  hardaccel,
float  black,
float  white,
float  scale,
float  shift,
int  component,
bool  hardlut,
const char *  lut,
float  gamma,
bool  fastaspect,
float  aspect,
bool  use8bit 
)

static void TIL_ImageCache::setUpdateCallback ( void(*)(void *, TIL_Raster *, int, int, float, float)  callback  )  [static]

virtual const char* TIL_ImageCache::utGetCacheName (  )  const [inline, protected, virtual]

Implements UT_Cache.

Definition at line 117 of file TIL_ImageCache.h.

virtual int64 TIL_ImageCache::utGetCurrentSize (  )  [inline, protected, virtual]

Implements UT_Cache.

Definition at line 118 of file TIL_ImageCache.h.

virtual int64 TIL_ImageCache::utGetMaxSize (  )  [inline, protected, virtual]

Reimplemented from UT_Cache.

Definition at line 120 of file TIL_ImageCache.h.

virtual bool TIL_ImageCache::utHasMaxSize (  )  const [inline, protected, virtual]

Reimplemented from UT_Cache.

Definition at line 119 of file TIL_ImageCache.h.

virtual int64 TIL_ImageCache::utReduceCacheSizeBy ( int64  amount  )  [virtual]

Implements UT_Cache.

virtual void TIL_ImageCache::utSetMaxSize ( int64  size  )  [protected, virtual]

Reimplemented from UT_Cache.


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

Generated on Fri May 25 00:10:45 2012 for HDK by  doxygen 1.5.9