CustusX  22.04-rc3
An IGT application
cx::CachedImageDataContainer Class Reference

#include <cxImageDataContainer.h>

Inheritance diagram for cx::CachedImageDataContainer:
cx::ImageDataContainer

Public Member Functions

 CachedImageDataContainer (FileManagerServicePtr filemanagerservice)
 
 CachedImageDataContainer (QString baseFilename, int size, FileManagerServicePtr filemanagerservice)
 
 CachedImageDataContainer (std::vector< QString > frames, FileManagerServicePtr filemanagerservice)
 
virtual ~CachedImageDataContainer ()
 
virtual vtkImageDataPtr get (unsigned index)
 
virtual QString getFilename (unsigned index)
 
virtual unsigned size () const
 
virtual bool purge (unsigned index)
 
void setDeleteFilesOnRelease (bool on)
 
void append (QString filename)
 
- Public Member Functions inherited from cx::ImageDataContainer
virtual ~ImageDataContainer ()
 
bool empty () const
 
virtual void purgeAll ()
 

Detailed Description

Container class for delayed loading of images. The images will also not be stored by this container.

Date
Dec 04 2012
Author
christiana

Definition at line 83 of file cxImageDataContainer.h.

Constructor & Destructor Documentation

cx::CachedImageDataContainer::CachedImageDataContainer ( FileManagerServicePtr  filemanagerservice)

Definition at line 102 of file cxImageDataContainer.cpp.

cx::CachedImageDataContainer::CachedImageDataContainer ( QString  baseFilename,
int  size,
FileManagerServicePtr  filemanagerservice 
)

-----------------------------------------------------—


Definition at line 76 of file cxImageDataContainer.cpp.

cx::CachedImageDataContainer::CachedImageDataContainer ( std::vector< QString >  frames,
FileManagerServicePtr  filemanagerservice 
)

Definition at line 108 of file cxImageDataContainer.cpp.

cx::CachedImageDataContainer::~CachedImageDataContainer ( )
virtual

Definition at line 121 of file cxImageDataContainer.cpp.

Member Function Documentation

void cx::CachedImageDataContainer::append ( QString  filename)

Definition at line 116 of file cxImageDataContainer.cpp.

vtkImageDataPtr cx::CachedImageDataContainer::get ( unsigned  index)
virtual

Implements cx::ImageDataContainer.

Definition at line 134 of file cxImageDataContainer.cpp.

QString cx::CachedImageDataContainer::getFilename ( unsigned  index)
virtual

Definition at line 150 of file cxImageDataContainer.cpp.

virtual bool cx::CachedImageDataContainer::purge ( unsigned  index)
inlinevirtual

Reimplemented from cx::ImageDataContainer.

Definition at line 94 of file cxImageDataContainer.h.

void cx::CachedImageDataContainer::setDeleteFilesOnRelease ( bool  on)
inline

If set, image files managed by this object will be deleted when object goes out of scope

Definition at line 99 of file cxImageDataContainer.h.

unsigned cx::CachedImageDataContainer::size ( ) const
virtual

Implements cx::ImageDataContainer.

Definition at line 156 of file cxImageDataContainer.cpp.


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