#include <TIL_ImageCache.h>
|
| | TIL_ImageCache () |
| |
| | ~TIL_ImageCache () override |
| |
| void | setCacheLimit (bool enable) |
| |
| void | setCacheSize (unsigned size_in_kb) |
| |
| int64 | getCurrentSize () const |
| |
| int64 | getMaxSize () const |
| |
| void | recalculateSize () |
| |
| void | addToCache (TIL_Image *image) |
| |
| void | returnToCache (TIL_Image *&image) |
| |
| void | returnToCache (const TIL_Raster *r) |
| |
| bool | isRasterInCache (const TIL_Raster *r) const |
| |
| void | removeSourceFromCache (TIL_ImageSource *source) |
| |
| void | removeFrameFromCache (TIL_ImageSource *source, int fr) |
| |
| TIL_Image * | getImageFromCache (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, exint planeindex, float t, void *look, bool updateflag, const TIL_GetImageOptions &opts=TIL_GetImageOptions()) |
| |
| void | dumpCache (std::ostream &os) |
| |
| int64 | utReduceCacheSizeBy (int64 amount) override |
| |
| | UT_Cache () |
| |
| virtual | ~UT_Cache () |
| |
| | UT_Cache (const UT_Cache &)=delete |
| |
| UT_Cache & | operator= (const UT_Cache &)=delete |
| |
| void | utClearCache () |
| |
| virtual bool | utIsEnabled () const |
| | optional - is this cache currently operational. More...
|
| |
| virtual bool | utHasMinSize () const |
| |
| virtual int64 | utGetMinSize () const |
| |
| virtual void | utSetMinSize (int64) |
| |
| virtual bool | utUpdateCacheInfo () |
| |
Definition at line 81 of file TIL_ImageCache.h.
| TIL_ImageCache::TIL_ImageCache |
( |
| ) |
|
| TIL_ImageCache::~TIL_ImageCache |
( |
| ) |
|
|
override |
| void TIL_ImageCache::clearImageCache |
( |
bool |
force_all = false | ) |
|
| void TIL_ImageCache::dumpCache |
( |
std::ostream & |
os | ) |
|
| int64 TIL_ImageCache::getCurrentSize |
( |
| ) |
const |
|
inline |
| int64 TIL_ImageCache::getMaxSize |
( |
| ) |
const |
|
inline |
| static int64 TIL_ImageCache::getSystemMaxSize |
( |
| ) |
|
|
static |
| bool TIL_ImageCache::isRasterInCache |
( |
const TIL_Raster * |
r | ) |
const |
| void TIL_ImageCache::recalculateSize |
( |
| ) |
|
| void TIL_ImageCache::setCacheLimit |
( |
bool |
enable | ) |
|
| void TIL_ImageCache::setCacheSize |
( |
unsigned |
size_in_kb | ) |
|
| const char* TIL_ImageCache::utGetCacheName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
| int64 TIL_ImageCache::utGetCurrentSize |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
| int64 TIL_ImageCache::utGetMaxSize |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
| bool TIL_ImageCache::utHasMaxSize |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
optional - override if the cache has a well defined maximum size
Reimplemented from UT_Cache.
Definition at line 139 of file TIL_ImageCache.h.
| int64 TIL_ImageCache::utReduceCacheSizeBy |
( |
int64 |
amount | ) |
|
|
overridevirtual |
required - free contents of the cache by amount bytes. Returns the amount of memory (in bytes) actually freed. This does not change the cache size
Implements UT_Cache.
| void TIL_ImageCache::utSetMaxSize |
( |
int64 |
size | ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following file: