Documentation for vtkWindow

vtkWindow - window superclass for ImageWindow and RenderWindow

Super Class: vtkObject

Description:

vtkWindow is an abstract object to specify the behavior of a rendering or imaging window. It contains vtkViewports.

 

See Also:

vtkImageWindow vtkRenderWindow vtkViewport

 

Methods:

void vtkWindow ()
void vtkWindow ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void SetDisplayId (void *)
void SetWindowId (void *)
void SetParentId (void *)
void *GetGenericDisplayId ()
void *GetGenericWindowId ()
void *GetGenericParentId ()
void *GetGenericContext ()
void *GetGenericDrawable ()
void SetWindowInfo (char *)
int *GetPosition ()
void SetPosition (int ,int )
void SetPosition (int )
int *GetSize ()
void SetSize (int ,int )
void SetSize (int )
void SetMapped (int )
int GetMapped ()
void MappedOn ()
void MappedOff ()
void SetErase (int )
int GetErase ()
void EraseOn ()
void EraseOff ()
void SetDoubleBuffer (int )
int GetDoubleBuffer ()
void DoubleBufferOn ()
void DoubleBufferOff ()
char *GetWindowName ()
void SetWindowName (char *)
unsigned char *GetPixelData (int ,int ,int ,int ,int )
int GetDPI ()
void SetDPI (int )

 

Detailed Method Descriptions:

These are window system independent methods that are used to help interface vtkWindow to native windowing systems.

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

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 )

Keep track of whether the rendering window has been mapped to screen.

void SetMapped (int )
int GetMapped ()
void MappedOn ()
void MappedOff ()

Turn on/off erasing the screen between images. This allows multiple exposure sequences if turned on. You will need to turn double buffering off or make use of the SwapBuffers methods to prevent you from swapping buffers between exposures.

void SetErase (int )
int GetErase ()
void EraseOn ()
void EraseOff ()

Keep track of whether double buffering is on or off

void SetDoubleBuffer (int )
int GetDoubleBuffer ()
void DoubleBufferOn ()
void DoubleBufferOff ()

Get name of rendering window

char *GetWindowName ()
void SetWindowName (char *)

Get the pixel data of an image, transmitted as RGBRGBRGB. The front argument indicates if the front buffer should be used or the back buffer. It is the caller's responsibility to delete the resulting array. It is very important to realize that the memory in this array is organized from the bottom of the window to the top. The origin of the screen is in the lower left corner. The y axis increases as you go up the screen. So the storage of pixels is from left to right and from bottom to top.

unsigned char *GetPixelData (int ,int ,int ,int ,int )

Return a best estimate to the dots per inch of the display device being rendered (or printed).

int GetDPI ()
void SetDPI (int )