CustusX  18.04-rc6
An IGT application
cx::CachedImageData Class Reference

#include <cxImageDataContainer.h>

Public Member Functions

 CachedImageData (QString filename, vtkImageDataPtr image=NULL)
 
 ~CachedImageData ()
 
QString getFilename ()
 
vtkImageDataPtr getImage ()
 
bool purge ()
 

Detailed Description

Delayed loading of one vtkImageData.

Date
Dec 04 2012
Author
christiana

Definition at line 34 of file cxImageDataContainer.h.

Constructor & Destructor Documentation

cx::CachedImageData::CachedImageData ( QString  filename,
vtkImageDataPtr  image = NULL 
)
explicit

Initialize with a given image file

Definition at line 26 of file cxImageDataContainer.cpp.

cx::CachedImageData::~CachedImageData ( )

Definition at line 32 of file cxImageDataContainer.cpp.

Member Function Documentation

QString cx::CachedImageData::getFilename ( )
inline

Return name of file.

Definition at line 45 of file cxImageDataContainer.h.

vtkImageDataPtr cx::CachedImageData::getImage ( )

Definition at line 38 of file cxImageDataContainer.cpp.

bool cx::CachedImageData::purge ( )

Clear the image contents from memory, if possible. Return true if purge was successful.

Definition at line 47 of file cxImageDataContainer.cpp.


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