Inviwo  0.9.10.1
Inviwo documentation
inviwo::ImageCache Class Reference

Public Member Functions

 ImageCache (std::shared_ptr< const Image > master=std::shared_ptr< const Image >())
 
 ImageCache (const ImageCache &)=delete
 
ImageCacheoperator= (const ImageCache &that)=delete
 
void setMaster (std::shared_ptr< const Image > master)
 
std::shared_ptr< const ImagegetImage (const size2_t dimensions) const
 
void prune (const std::vector< size2_t > &dimensions) const
 
void update (std::vector< size2_t > dimensions)
 
void setInvalid () const
 
bool hasImage (const size2_t dimensions)
 
void addImage (std::shared_ptr< Image > image)
 
std::shared_ptr< ImagereleaseImage (const size2_t dimensions)
 
std::shared_ptr< ImagegetUnusedImage (const std::vector< size2_t > &dimensions)
 
size_t size () const
 

Member Function Documentation

◆ prune()

void inviwo::ImageCache::prune ( const std::vector< size2_t > &  dimensions) const

Remove all cached images except those in dimensions

◆ update()

void inviwo::ImageCache::update ( std::vector< size2_t >  dimensions)

Make sure there is a cached version for all images sizes in dimensions


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