Documentation for vtkImageViewer

vtkImageViewer - Display a 2d image.

Super Class: vtkObject

Description:

vtkImageViewer is a convinience class for displaying a 2d image. It packages up the functionality found in vtkImageWindow, vtkImager, vtkActor2D and vtkImageMapper into a single easy to use class. Behind the scenes these four classes are actually used to to provide the required functionality. vtkImageViewer is simply a wrapper around them.

 

See Also:

vtkImageWindow vtkImager vtkImageMapper vtkActor2D

 

Methods:

void vtkImageViewer ()
void vtkImageViewer ()
static vtkImageViewer *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
char *GetWindowName ()
void Render ()
void SetInput (vtkImageCache *)
vtkImageCache *GetInput ()
void SetInput (vtkStructuredPoints *)
int GetWholeZMin ()
int GetWholeZMax ()
int GetZSlice ()
void SetZSlice (int )
float GetColorWindow ()
float GetColorLevel ()
void SetColorWindow (float )
void SetColorLevel (float )
void SetDisplayId (void *)
void SetWindowId (void *)
void SetParentId (void *)
int GetGrayScaleHint ()
void SetGrayScaleHint (int )
void GrayScaleHintOn ()
void GrayScaleHintOff ()
int *GetPosition ()
void SetPosition (int ,int )
void SetPosition (int )
int *GetSize ()
void SetSize (int ,int )
void SetSize (int )
vtkImageWindow *GetImageWindow ()
vtkImageMapper *GetImageMapper ()
vtkImager *GetImager ()
vtkActor2D *GetActor2D ()

 

Detailed Method Descriptions:

Get name of rendering window

char *GetWindowName ()

Render the resulting image.

void Render ()

Set/Get the input to the viewer.

void SetInput (vtkImageCache *)
vtkImageCache *GetInput ()
void SetInput (vtkStructuredPoints *)

What is the possible Min/ Max z slices available.

int GetWholeZMin ()
int GetWholeZMax ()

Set/Get the current Z Slice to display

int GetZSlice ()
void SetZSlice (int )

Sets window/level for mapping pixels to colors.

float GetColorWindow ()
float GetColorLevel ()
void SetColorWindow (float )
void SetColorLevel (float )

These are here for using a tk window.

void SetDisplayId (void *)
void SetWindowId (void *)
void SetParentId (void *)

By default this is a color viewer. GrayScaleHintOn will improve the appearance of gray scale images on some systems.

int GetGrayScaleHint ()
void SetGrayScaleHint (int )
void GrayScaleHintOn ()
void GrayScaleHintOff ()

Set/Get the position in screen coordinates of the rendering window.

int *GetPosition ()
void SetPosition (int ,int )
void SetPosition (int )

Set/Get the size of the window in screen coordinates.

int *GetSize ()
void SetSize (int ,int )
void SetSize (int )

Get the internal Window Imager and Mapper

vtkImageWindow *GetImageWindow ()
vtkImageMapper *GetImageMapper ()
vtkImager *GetImager ()
vtkActor2D *GetActor2D ()