CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::CachedImageData Class Reference

#include <cxImageDataContainer.h>

Public Member Functions

 CachedImageData (QString filename, vtkImageDataPtr image=NULL)
 
 ~CachedImageData ()
 
QString getFilename ()
 
vtkImageDataPtr getImage (FileManagerServicePtr filemanager)
 
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 27 of file cxImageDataContainer.cpp.

cx::CachedImageData::~CachedImageData ( )

Definition at line 33 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 ( FileManagerServicePtr  filemanager)

Definition at line 39 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 49 of file cxImageDataContainer.cpp.


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