Documentation for vtkImageStaticCache

vtkImageStaticCache - Caches an ImageData object

Super Class: vtkImageCache

Description:

vtkImageStaticCache is used to directly cache a vtkImageData object that has been passed to it. This should only be used in rare situations.

 

Methods:

void vtkImageStaticCache ()
void vtkImageStaticCache ()
static vtkImageStaticCache *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void Update ()
void UpdateImageInformation ()
vtkImageData *UpdateAndReturnData ()
void ReleaseData ()
unsigned long GetPipelineMTime ()
vtkImageData *GetData ()
void SetCachedData (vtkImageData *)
void GetScalarRange (float )

 

Detailed Method Descriptions:

This method updates the region specified by "UpdateExtent".

void Update ()

This method updates the instance variables "WholeExtent", "Spacing", "Origin", "Bounds" etc. It needs to be separate from "Update" because the image information may be needed to compute the required UpdateExtent of the input (see "vtkImageFilter").

void UpdateImageInformation ()

Generates all the requested data and returns a vtkImageData.

vtkImageData *UpdateAndReturnData ()

This Method deletes any data in cache. For a static cache the data cannot be released except by deleteing the instance or providing a new CachedData

void ReleaseData ()

Make this a separate method to avoid another GetPipelineMTime call.

unsigned long GetPipelineMTime ()

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

vtkImageData *GetData ()

Set the vtkImageData for this cache to cache.

void SetCachedData (vtkImageData *)

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 )