Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File 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 *)
void SetDeviceContext (void *dc)
void SetDeviceContext (HDC)
void SetDisplayId (void *foo)
void * GetGenericDisplayId ()
void * GetGenericWindowId ()
void * GetGenericParentId ()
void * GetGenericContext ()
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 ()
HWND GetWindowId ()
void SetWindowId (void *id)
void SetParentId (void *id)
void SetWindowId (HWND)
void SetParentId (HWND)
void SetSize (int, int)
int * GetSize ()
int * GetPosition ()
void SetPosition (int, int)
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 ()

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:
2001/11/13 14:17:35
Revision:
1.26
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

Definition at line 61 of file vtkWin32ImageWindow.h.


Constructor & Destructor Documentation

vtkWin32ImageWindow::vtkWin32ImageWindow   [protected]
 

vtkWin32ImageWindow::~vtkWin32ImageWindow   [protected]
 


Member Function Documentation

vtkWin32ImageWindow* vtkWin32ImageWindow::New   [static]
 

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

Reimplemented from 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.

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.

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.

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::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.

void vtkWin32ImageWindow::SwapBuffers   [virtual]
 

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

Reimplemented from vtkImageWindow.

void vtkWin32ImageWindow::Frame void    [virtual]
 

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

Reimplemented from vtkImageWindow.

vtkWin32ImageWindow* vtkWin32ImageWindow::GetOutput   [inline]
 

Definition at line 83 of file vtkWin32ImageWindow.h.

void vtkWin32ImageWindow::SetWindowInfo char *    info [virtual]
 

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

Reimplemented from vtkImageWindow.

void vtkWin32ImageWindow::SetParentInfo char *    info [virtual]
 

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

Reimplemented from vtkImageWindow.

HWND vtkWin32ImageWindow::GetWindowId  
 

Set/Get the window id and parent window id.

void vtkWin32ImageWindow::SetWindowId void *    id [inline, virtual]
 

Set/Get the window id and parent window id.

Reimplemented from vtkImageWindow.

Definition at line 96 of file vtkWin32ImageWindow.h.

void vtkWin32ImageWindow::SetParentId void *    id [inline, virtual]
 

Set/Get the window id and parent window id.

Reimplemented from vtkImageWindow.

Definition at line 97 of file vtkWin32ImageWindow.h.

void vtkWin32ImageWindow::SetWindowId HWND   
 

Set/Get the window id and parent window id.

void vtkWin32ImageWindow::SetParentId HWND   
 

Set/Get the window id and parent window id.

void vtkWin32ImageWindow::SetDeviceContext void *    dc [inline]
 

Definition at line 102 of file vtkWin32ImageWindow.h.

void vtkWin32ImageWindow::SetDeviceContext HDC   
 

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

These are here for using a tk window.

Reimplemented from vtkImageWindow.

Definition at line 104 of file vtkWin32ImageWindow.h.

void* vtkWin32ImageWindow::GetGenericDisplayId   [inline, virtual]
 

These are here for using a tk window.

Reimplemented from vtkImageWindow.

Definition at line 106 of file vtkWin32ImageWindow.h.

void* vtkWin32ImageWindow::GetGenericWindowId   [inline, virtual]
 

These are here for using a tk window.

Reimplemented from vtkImageWindow.

Definition at line 108 of file vtkWin32ImageWindow.h.

void* vtkWin32ImageWindow::GetGenericParentId   [inline, virtual]
 

These are here for using a tk window.

Reimplemented from vtkImageWindow.

Definition at line 109 of file vtkWin32ImageWindow.h.

void* vtkWin32ImageWindow::GetGenericContext   [inline, virtual]
 

These are here for using a tk window.

Reimplemented from vtkImageWindow.

Definition at line 110 of file vtkWin32ImageWindow.h.

void vtkWin32ImageWindow::SetSize int    x,
int    y
[virtual]
 

Set/Get the current size of the window.

Reimplemented from vtkImageWindow.

int* vtkWin32ImageWindow::GetSize   [virtual]
 

Set/Get the current size of the window.

Reimplemented from vtkImageWindow.

int* vtkWin32ImageWindow::GetPosition   [virtual]
 

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

Reimplemented from vtkImageWindow.

void vtkWin32ImageWindow::SetPosition int    x,
int    y
[virtual]
 

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

Reimplemented from vtkImageWindow.

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

Set the desired background color for the window.

void vtkWin32ImageWindow::EraseWindow   [virtual]
 

Erase the window. Normally nor called by the user.

Reimplemented from vtkImageWindow.

unsigned char* vtkWin32ImageWindow::GetDIBPtr  
 

unsigned char* vtkWin32ImageWindow::GetPixelData int    x1,
int    y1,
int    x2,
int    y2,
int    front
[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.

void vtkWin32ImageWindow::MakeDefaultWindow   [virtual]
 

Creates a Win32 window or sets up an existing window.

Reimplemented from 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::ResumeScreenRendering  
 

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

HDC vtkWin32ImageWindow::GetMemoryDC  
 

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

unsigned char* vtkWin32ImageWindow::GetMemoryData   [inline]
 

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

Definition at line 143 of file vtkWin32ImageWindow.h.


Member Data Documentation

HINSTANCE vtkWin32ImageWindow::ApplicationInstance
 

Definition at line 64 of file vtkWin32ImageWindow.h.

HPALETTE vtkWin32ImageWindow::Palette
 

Definition at line 65 of file vtkWin32ImageWindow.h.

HDC vtkWin32ImageWindow::DeviceContext
 

Definition at line 66 of file vtkWin32ImageWindow.h.

HWND vtkWin32ImageWindow::WindowId
 

Definition at line 67 of file vtkWin32ImageWindow.h.

HWND vtkWin32ImageWindow::ParentId
 

Definition at line 68 of file vtkWin32ImageWindow.h.

BITMAPINFO vtkWin32ImageWindow::MemoryDataHeader [protected]
 

Definition at line 151 of file vtkWin32ImageWindow.h.

HBITMAP vtkWin32ImageWindow::MemoryBuffer [protected]
 

Definition at line 152 of file vtkWin32ImageWindow.h.

unsigned char* vtkWin32ImageWindow::MemoryData [protected]
 

Definition at line 153 of file vtkWin32ImageWindow.h.

HDC vtkWin32ImageWindow::MemoryHdc [protected]
 

Definition at line 154 of file vtkWin32ImageWindow.h.

int vtkWin32ImageWindow::ScreenMapped [protected]
 

Definition at line 155 of file vtkWin32ImageWindow.h.

int vtkWin32ImageWindow::ScreenWindowSize[2] [protected]
 

Definition at line 156 of file vtkWin32ImageWindow.h.

HDC vtkWin32ImageWindow::ScreenDeviceContext [protected]
 

Definition at line 157 of file vtkWin32ImageWindow.h.

int vtkWin32ImageWindow::OwnWindow [protected]
 

Definition at line 159 of file vtkWin32ImageWindow.h.

unsigned char* vtkWin32ImageWindow::DIBPtr [protected]
 

Definition at line 161 of file vtkWin32ImageWindow.h.

int vtkWin32ImageWindow::SwapFlag [protected]
 

Definition at line 162 of file vtkWin32ImageWindow.h.

HDC vtkWin32ImageWindow::CompatHdc [protected]
 

Definition at line 163 of file vtkWin32ImageWindow.h.

HDC vtkWin32ImageWindow::OldHdc [protected]
 

Definition at line 164 of file vtkWin32ImageWindow.h.

HBITMAP vtkWin32ImageWindow::BackBuffer [protected]
 

Definition at line 165 of file vtkWin32ImageWindow.h.

BITMAPINFO vtkWin32ImageWindow::DataHeader [protected]
 

Definition at line 166 of file vtkWin32ImageWindow.h.


The documentation for this class was generated from the following file:
Generated on Thu Mar 28 14:47:39 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001