Documentation for vtkImageWindow

vtkImageWindow - a 2D display window

Super Class: vtkWindow

Description:

vtkImageWindow contains 2D rendering in vtk. Typically a vtkImageWindow has some vtkImagers within it. The imagers in turn display images, Text etc. The concept is very similar to that of a RenderWindow for 3d.

 

See Also:

vtkImager vtkWindow vtkRenderWindow

 

Methods:

void vtkImageWindow ()
void vtkImageWindow ()
void PrintSelf (unknown & ,vtkIndent )
const char *GetClassName ()
static vtkImageWindow *New ()
void SetPosition (int ,int )
void SetPosition (int )
int *GetPosition ()
void GetPosition (int * ,int *)
void SetSize (int ,int )
void SetSize (int )
int *GetSize ()
void GetSize (int * ,int *)
void SetDisplayId (void *)
void SetWindowId (void *)
void SetParentId (void *)
void *GetGenericDisplayId ()
void *GetGenericWindowId ()
void *GetGenericParentId ()
void *GetGenericContext ()
void *GetGenericDrawable ()
void SwapBuffers ()
void SetWindowInfo (char *)
void SetGrayScaleHint (int )
int GetGrayScaleHint ()
void GrayScaleHintOn ()
void GrayScaleHintOff ()
void AddImager (vtkImager *)
void RemoveImager (vtkImager *)
void Render ()
void EraseWindow ()
void SaveImageAsPPM ()
int OpenPPMImageFile ()
void WritePPMImageFile ()
void ClosePPMImageFile ()
void SetFileName (char *)
char *GetFileName ()
void MakeDefaultWindow ()

 

Detailed Method Descriptions:

Creates a vtkImageWindow with background erasing disabled and gray scale hint off

void vtkImageWindow ()
void vtkImageWindow ()

Set the position of the window on the screen

void SetPosition (int ,int )
void SetPosition (int )

Get the position of the window on the screen

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

Sets the size of a window in pixels.

void SetSize (int ,int )
void SetSize (int )

Returns the size of a window in pixels

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

These are here for using a tk window.

void SetDisplayId (void *)
void SetWindowId (void *)
void SetParentId (void *)
void *GetGenericDisplayId ()
void *GetGenericWindowId ()
void *GetGenericParentId ()
void *GetGenericContext ()
void *GetGenericDrawable ()

Swap the front and back buffers. This function is used to implement double buffering. The user shouldn't need to call this function. To enable double buffering, invoke DoubleBufferOn

void SwapBuffers ()

useful for scripting languages

void SetWindowInfo (char *)

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

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

Add an imager to the window's list of imagers to be rendered.

void AddImager (vtkImager *)

Remove an imager from the window

void RemoveImager (vtkImager *)

Draw the contents of the window

void Render ()

Erase the window contents

void EraseWindow ()

Save the current image as a PPM file.

void SaveImageAsPPM ()

Open/Write/Close a PPM file

int OpenPPMImageFile ()
void WritePPMImageFile ()
void ClosePPMImageFile ()

Set/Get the FileName used for saving images. See the SaveImageAsPPM method.

void SetFileName (char *)
char *GetFileName ()