CustusX  2021.04.21-dev+develop.337f9
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.

Dec 04 2012

Definition at line 34 of file cxImageDataContainer.h.

Constructor & Destructor Documentation

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

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 ( )

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: