Documentation for vtkXImageWindow

vtkXImageWindow - 2D display window for X

Super Class: vtkImageWindow

Description:

vtkXImageWindow is a concrete subclass of vtkImageWindow to support 2D rendering in vtk.

 

See Also:

vtkImageWindow

 

Methods:

void vtkXImageWindow ()
void vtkXImageWindow ()
static vtkXImageWindow *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
vtkXImageWindow *GetOutput ()
int GetNumberOfColors ()
int GetVisualDepth ()
int GetVisualClass ()
unknown GetParentId ()
void SetParentId (unknown )
void SetParentId (void *)
void SetDisplayId (unknown *)
void SetDisplayId (void *)
void SetWindowId (unknown )
void SetWindowId (void *)
unknown GetWindowId ()
unknown *GetDisplayId ()
unknown GetGC ()
int *GetPosition ()
void SetPosition (int ,int )
int *GetSize ()
void SetSize (int ,int )
void *GetGenericDisplayId ()
void *GetGenericWindowId ()
void *GetGenericParentId ()
void *GetGenericContext ()
void *GetGenericDrawable ()
void SwapBuffers ()
int GetDesiredDepth ()
unknown GetDesiredColormap ()
unknown *GetDesiredVisual ()
unknown *GetVisualId ()
void SetBackgroundColor (float ,float ,float )
void EraseWindow ()
unsigned char *GetPixelData (int ,int ,int ,int ,int )
void GetShiftsAndMasks (int & ,int & ,int & ,unsigned long & ,unsigned long & ,unsigned long &)
void MakeDefaultWindow ()
void GetDefaultVisualInfo (unknown *)
unknown MakeColorMap (unknown *)
void AllocateDirectColorMap ()

 

Detailed Method Descriptions:

Gets the number of colors in the pseudo color map.

int GetNumberOfColors ()

Gets the windows depth. For the templated function.

int GetVisualDepth ()

Gets the windows visual class. For the templated function.

int GetVisualClass ()

These are here for using a tk window.

unknown GetParentId ()
void SetParentId (unknown )
void SetParentId (void *)
void SetDisplayId (unknown *)
void SetDisplayId (void *)
void SetWindowId (unknown )
void SetWindowId (void *)
unknown GetWindowId ()
unknown *GetDisplayId ()
unknown GetGC ()

Set/Get the position of the window.

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

Set/Get the size of the window.

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

The GetGenericXXX functions are necessary to draw into a VTKWindow.

void *GetGenericDisplayId ()
void *GetGenericWindowId ()
void *GetGenericParentId ()
void *GetGenericContext ()
void *GetGenericDrawable ()

Swaps the 2D drawing buffers. The user should not need to use this call. To invoke double buffering, call DoubleBufferOn

void SwapBuffers ()

Determine the desired depth of the window.

int GetDesiredDepth ()

Determine the desired colormap of the window.

unknown GetDesiredColormap ()

Determine the desired visual for the window

unknown *GetDesiredVisual ()

Return the id of the visual we are using

unknown *GetVisualId ()

Set the background color of the window.

void SetBackgroundColor (float ,float ,float )

Erase the contents of the window.

void EraseWindow ()

Get the pixel data of an image, transmitted as RGBRGBRGB. 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. To maintain the same prototype as in vtkRenderWindow, the last argument is provided, but currently not used.

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