HuginBase::ImageCache Class Reference
This is a cache for all the images we use. More...
#include <ImageCache.h>
Public Types | |
| typedef boost::shared_ptr< vigra::BRGBImage > | ImageCacheRGB8Ptr |
| use reference counted pointers | |
| typedef boost::shared_ptr< vigra::UInt16RGBImage > | ImageCacheRGB16Ptr |
| typedef boost::shared_ptr< vigra::FRGBImage > | ImageCacheRGBFloatPtr |
| typedef boost::shared_ptr< vigra::BImage > | ImageCache8Ptr |
| typedef boost::shared_ptr< Entry > | EntryPtr |
| a shared pointer to the entry | |
Public Member Functions | |
| virtual | ~ImageCache () |
| dtor. | |
| EntryPtr | getImage (const std::string &filename) |
| get a image. | |
| EntryPtr | getSmallImage (const std::string &filename) |
| get an small image. | |
| void | removeImage (const std::string &filename) |
| remove a specific image (and dependant images) from the cache | |
| void | flush () |
| release all images in the cache. | |
| void | softFlush () |
| a soft version of flush. | |
| void | SetUpperLimit (long newUpperLimit) |
| sets the upper limit, which is used by softFlush() | |
| void | setProgressDisplay (AppBase::MultiProgressDisplay *disp) |
| void | clearProgressDisplay (AppBase::MultiProgressDisplay *disp) |
Static Public Member Functions | |
| ImageCache & | getInstance () |
| get the global ImageCache object | |
Detailed Description
This is a cache for all the images we use.is a singleton for easy access from everywhere. The cache is used as an image source, that needs to know how to reproduce the requested images, in case that they have been deleted.
Member Typedef Documentation
|
|
a shared pointer to the entry
|
|
|
|
|
|
|
|
|
use reference counted pointers
|
|
|
|
Constructor & Destructor Documentation
|
|
dtor.
|
Member Function Documentation
|
|
|
|
|
release all images in the cache. useful on project load, or maybe before stitching really big pictures |
|
|
get a image. it will be loaded if its not already in the cache Hold the EntryPtr as long as the image data is needed! |
|
|
get the global ImageCache object
|
|
|
get an small image. This image is 512x512 pixel maximum and can be used for icons and different previews. It is directly derived from the original. |
|
|
remove a specific image (and dependant images) from the cache
|
|
|
|
|
|
sets the upper limit, which is used by softFlush()
|
|
|
a soft version of flush. Releases some images if they go over a certain threshold |
The documentation for this class was generated from the following files:
- hugin_base/huginapp/ImageCache.h
- hugin_base/huginapp/ImageCache.cpp
1.3.9.1