Documentation for vtkImageSimpleCache

vtkImageSimpleCache - Caches the last region generated.

Super Class: vtkImageCache

Description:

vtkImageSimpleCache saves previously the last generated region. If a subsequent region is contained in the cached data, the cached data is returned with no call to the filters Update method. If the new region is not completely contained in the cached data, the cached data is not used.

 

Methods:

void vtkImageSimpleCache ()
void vtkImageSimpleCache ()
static vtkImageSimpleCache *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void Update ()
vtkImageData *UpdateAndReturnData ()
void ReleaseData ()
void AllocateData ()
vtkImageData *GetData ()
void GetScalarRange (float )

 

Detailed Method Descriptions:

This method updates the region specified by "UpdateExtent".

void Update ()

This is the most common way to obtain data from a cache. After setting the update extent invoke this method and it will return an ImageData instance containing the requested data.

vtkImageData *UpdateAndReturnData ()

This Method deletes any data in cache.

void ReleaseData ()

Allocates the scalar data required for the current update extent.

void AllocateData ()

return the un filled data of the UpdateExtent in this cache.

vtkImageData *GetData ()

Convenience method to get the range of the scalar data in the current "UpdateExtent". Returns the (min/max) range. The components are lumped into one range. If there are no scalars the method will return (0,1). Note: Update needs to be called first to create the scalars.

void GetScalarRange (float )