Documentation for vtkImageMapper

vtkImageMapper - 2D image display

Super Class: vtkMapper2D

Description:

vtkImageMapper provides 2D image display support for vtk. It is a Mapper2D subclass that can be associated with an Actor2D and placed withint a RenderWindow or ImageWindow.

 

See Also:

vtkMapper2D vtkActor2D

 

Methods:

void vtkImageMapper ()
void vtkImageMapper ()
const char *GetClassName ()
static vtkImageMapper *New ()
void PrintSelf (unknown & ,vtkIndent )
void SetColorWindow (float )
float GetColorWindow ()
void SetColorLevel (float )
float GetColorLevel ()
void SetInput (vtkImageCache *)
vtkImageCache *GetInput ()
void SetInput (vtkStructuredPoints *)
void SetZSlice (int )
int GetZSlice ()
int GetWholeZMin ()
int GetWholeZMax ()
void Render (vtkViewport * ,vtkActor2D *)
void RenderData (vtkViewport * ,vtkImageData * ,vtkActor2D *)
float GetColorShift ()
float GetColorScale ()

 

Detailed Method Descriptions:

Set/Get the window value for window/level

void SetColorWindow (float )
float GetColorWindow ()

Set/Get the level value for window/level

void SetColorLevel (float )
float GetColorLevel ()

Set/Get the input for the image mapper. The input can be either a vtkImageCache or a vtkStructuredPoints data set.

void SetInput (vtkImageCache *)
vtkImageCache *GetInput ()

Set/Get the current slice number. The axis Z in ZSlice does not neccessarily have any relation to the z axis of the data on disk. It is simply the axis orthogonal to the x,y, display plane. GetWholeZMax and Min are convinience methods for obtaining the number of slices that can be displayed. Again the number of slices is in reference to the display z axis, which is not neccessarily the z axis on disk. (ue to reformating etc)

void SetInput (vtkStructuredPoints *)
void SetZSlice (int )
int GetZSlice ()
int GetWholeZMin ()
int GetWholeZMax ()

Draw the image to the screen.

void Render (vtkViewport * ,vtkActor2D *)

Function called by Render to actually draw the image to to the screen

void RenderData (vtkViewport * ,vtkImageData * ,vtkActor2D *)

Methods used internally for performing the Window/Level mapping.

float GetColorShift ()
float GetColorScale ()