Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkWin32ImageWindow Class Reference

(obsolete)2D display window for Windows. More...

#include <vtkWin32ImageWindow.h>

Inheritance diagram for vtkWin32ImageWindow:

Inheritance graph
[legend]
Collaboration diagram for vtkWin32ImageWindow:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SwapBuffers ()
void Frame ()
vtkWin32ImageWindow * GetOutput ()
void SetWindowInfo (char *)
void SetParentInfo (char *)
HWND GetWindowId ()
void SetWindowId (void *id)
void SetParentId (void *id)
void SetWindowId (HWND)
void SetParentId (HWND)
void SetDeviceContext (void *dc)
void SetDeviceContext (HDC)
void SetDisplayId (void *foo)
void * GetGenericDisplayId ()
void * GetGenericWindowId ()
void * GetGenericParentId ()
void * GetGenericContext ()
void SetSize (int, int)
int * GetSize ()
int * GetPosition ()
void SetPosition (int, int)
void SetBackgroundColor (float r, float g, float b)
void EraseWindow ()
unsigned char * GetDIBPtr ()
unsigned char * GetPixelData (int x1, int y1, int x2, int y2, int)
void MakeDefaultWindow ()
void SetupMemoryRendering (int x, int y, HDC prn)
void ResumeScreenRendering ()
HDC GetMemoryDC ()
unsigned char * GetMemoryData ()

Static Public Methods

vtkWin32ImageWindow * New ()
int IsTypeOf (const char *type)
vtkWin32ImageWindow * SafeDownCast (vtkObject *o)

Public Attributes

HINSTANCE ApplicationInstance
HPALETTE Palette
HDC DeviceContext
HWND WindowId
HWND ParentId

Protected Methods

 vtkWin32ImageWindow ()
 ~vtkWin32ImageWindow ()
 vtkWin32ImageWindow (const vtkWin32ImageWindow &)
void operator= (const vtkWin32ImageWindow &)

Protected Attributes

BITMAPINFO MemoryDataHeader
HBITMAP MemoryBuffer
unsigned char * MemoryData
HDC MemoryHdc
int ScreenMapped
int ScreenWindowSize [2]
HDC ScreenDeviceContext
int OwnWindow
unsigned char * DIBPtr
int SwapFlag
HDC CompatHdc
HDC OldHdc
HBITMAP BackBuffer
BITMAPINFO DataHeader

Detailed Description

(obsolete)2D display window for Windows.

Date:
2000/12/10 20:09:14
Revision:
1.21
Thanks:
Thanks to Matt Turek who developed this class.
vtkWin32ImageWindow is a concrete subclass of vtkImageWindow. It handles 2D rendering under windows.

See also:
vtkImageWindow


Member Function Documentation

void vtkWin32ImageWindow::EraseWindow   [virtual]
 

Erase the window. Normally nor called by the user.

Reimplemented from vtkImageWindow.

void vtkWin32ImageWindow::Frame   [virtual]
 

Flush and swap buffers if necessary. Double buffering is not supported in this class.

Implements vtkImageWindow.

virtual const char* vtkWin32ImageWindow::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageWindow.

unsigned char* vtkWin32ImageWindow::GetPixelData int    x1,
int    y1,
int    x2,
int    y2,
int   
[virtual]
 

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.

Reimplemented from vtkWindow.

int* vtkWin32ImageWindow::GetPosition   [virtual]
 

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

Implements vtkImageWindow.

int* vtkWin32ImageWindow::GetSize   [virtual]
 

Returns the size of a window in pixels

Implements vtkImageWindow.

HWND vtkWin32ImageWindow::GetWindowId  
 

Set/Get the window id and parent window id.

virtual int vtkWin32ImageWindow::IsA const char *    type [virtual]
 

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageWindow.

int vtkWin32ImageWindow::IsTypeOf const char *    type [static]
 

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageWindow.

void vtkWin32ImageWindow::MakeDefaultWindow   [virtual]
 

Creates a Win32 window or sets up an existing window.

Implements vtkImageWindow.

vtkWin32ImageWindow* vtkWin32ImageWindow::New   [static]
 

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

Reimplemented from vtkImageWindow.

void vtkWin32ImageWindow::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkImageWindow.

vtkWin32ImageWindow* vtkWin32ImageWindow::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageWindow.

void vtkWin32ImageWindow::SetBackgroundColor float    r,
float    g,
float    b
 

Set the desired background color for the window.

void vtkWin32ImageWindow::SetDisplayId void *    foo [inline, virtual]
 

These are here for using a tk window.

Implements vtkImageWindow.

void vtkWin32ImageWindow::SetParentInfo char *    [virtual]
 

Sets the HWND id of the window that WILL BE created.

Reimplemented from vtkImageWindow.

void vtkWin32ImageWindow::SetPosition int   ,
int   
[virtual]
 

Set the position of the window on the screen

Implements vtkImageWindow.

void vtkWin32ImageWindow::SetSize int   ,
int   
[virtual]
 

Set/Get the current size of the window.

Implements vtkImageWindow.

void vtkWin32ImageWindow::SetupMemoryRendering int    x,
int    y,
HDC    prn
 

These methods can be used by MFC applications to support print preview and printing, or more general rendering into memory.

void vtkWin32ImageWindow::SetWindowInfo char *    [virtual]
 

Set this ImageWindow's window id to a pre-existing window.

Reimplemented from vtkImageWindow.

void vtkWin32ImageWindow::SwapBuffers   [virtual]
 

Swap the front and back buffers. Normally not called by the user. Double buffering is not supported in this class.

Implements vtkImageWindow.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:35:12 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002