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 ()
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

Definition at line 60 of file vtkWin32ImageWindow.h.


Constructor & Destructor Documentation

vtkWin32ImageWindow::vtkWin32ImageWindow   [protected]
 

vtkWin32ImageWindow::~vtkWin32ImageWindow   [protected]
 

vtkWin32ImageWindow::vtkWin32ImageWindow const vtkWin32ImageWindow &    [inline, protected]
 

Definition at line 134 of file vtkWin32ImageWindow.h.


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 82 of file vtkWin32ImageWindow.h.

HWND vtkWin32ImageWindow::GetWindowId  
 

Set/Get the window id and parent window id.

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

Reimplemented from vtkImageWindow.

Definition at line 88 of file vtkWin32ImageWindow.h.

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

Reimplemented from vtkImageWindow.

Definition at line 89 of file vtkWin32ImageWindow.h.

void vtkWin32ImageWindow::SetWindowId HWND   
 

void vtkWin32ImageWindow::SetParentId HWND   
 

void vtkWin32ImageWindow::SetDeviceContext void *    dc [inline]
 

Definition at line 93 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 95 of file vtkWin32ImageWindow.h.

void* vtkWin32ImageWindow::GetGenericDisplayId   [inline, virtual]
 

Reimplemented from vtkImageWindow.

Definition at line 97 of file vtkWin32ImageWindow.h.

void* vtkWin32ImageWindow::GetGenericWindowId   [inline, virtual]
 

Reimplemented from vtkImageWindow.

Definition at line 99 of file vtkWin32ImageWindow.h.

void* vtkWin32ImageWindow::GetGenericParentId   [inline, virtual]
 

Reimplemented from vtkImageWindow.

Definition at line 100 of file vtkWin32ImageWindow.h.

void* vtkWin32ImageWindow::GetGenericContext   [inline, virtual]
 

Reimplemented from vtkImageWindow.

Definition at line 101 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]
 

Returns the size of a window in pixels

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 the position of the window on the screen

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  
 

HDC vtkWin32ImageWindow::GetMemoryDC  
 

unsigned char* vtkWin32ImageWindow::GetMemoryData   [inline]
 

Definition at line 129 of file vtkWin32ImageWindow.h.

void vtkWin32ImageWindow::operator= const vtkWin32ImageWindow &    [inline, protected]
 

Definition at line 135 of file vtkWin32ImageWindow.h.


Member Data Documentation

HINSTANCE vtkWin32ImageWindow::ApplicationInstance
 

Definition at line 63 of file vtkWin32ImageWindow.h.

HPALETTE vtkWin32ImageWindow::Palette
 

Definition at line 64 of file vtkWin32ImageWindow.h.

HDC vtkWin32ImageWindow::DeviceContext
 

Definition at line 65 of file vtkWin32ImageWindow.h.

HWND vtkWin32ImageWindow::WindowId
 

Definition at line 66 of file vtkWin32ImageWindow.h.

HWND vtkWin32ImageWindow::ParentId
 

Definition at line 67 of file vtkWin32ImageWindow.h.

BITMAPINFO vtkWin32ImageWindow::MemoryDataHeader [protected]
 

Definition at line 138 of file vtkWin32ImageWindow.h.

HBITMAP vtkWin32ImageWindow::MemoryBuffer [protected]
 

Definition at line 139 of file vtkWin32ImageWindow.h.

unsigned char* vtkWin32ImageWindow::MemoryData [protected]
 

Definition at line 140 of file vtkWin32ImageWindow.h.

HDC vtkWin32ImageWindow::MemoryHdc [protected]
 

Definition at line 141 of file vtkWin32ImageWindow.h.

int vtkWin32ImageWindow::ScreenMapped [protected]
 

Definition at line 142 of file vtkWin32ImageWindow.h.

int vtkWin32ImageWindow::ScreenWindowSize[2] [protected]
 

Definition at line 143 of file vtkWin32ImageWindow.h.

HDC vtkWin32ImageWindow::ScreenDeviceContext [protected]
 

Definition at line 144 of file vtkWin32ImageWindow.h.

int vtkWin32ImageWindow::OwnWindow [protected]
 

Definition at line 146 of file vtkWin32ImageWindow.h.

unsigned char* vtkWin32ImageWindow::DIBPtr [protected]
 

Definition at line 148 of file vtkWin32ImageWindow.h.

int vtkWin32ImageWindow::SwapFlag [protected]
 

Definition at line 149 of file vtkWin32ImageWindow.h.

HDC vtkWin32ImageWindow::CompatHdc [protected]
 

Definition at line 150 of file vtkWin32ImageWindow.h.

HDC vtkWin32ImageWindow::OldHdc [protected]
 

Definition at line 151 of file vtkWin32ImageWindow.h.

HBITMAP vtkWin32ImageWindow::BackBuffer [protected]
 

Definition at line 152 of file vtkWin32ImageWindow.h.

BITMAPINFO vtkWin32ImageWindow::DataHeader [protected]
 

Definition at line 153 of file vtkWin32ImageWindow.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 13:02:47 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001