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

vtkWin32OpenGLImageWindow Class Reference

OpenGL Imageing window. More...

#include <vtkWin32OpenGLImageWindow.h>

Inheritance diagram for vtkWin32OpenGLImageWindow:

Inheritance graph
[legend]
Collaboration diagram for vtkWin32OpenGLImageWindow:

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)
vtkWin32OpenGLImageWindow * GetOutput ()
virtual void MakeDefaultWindow ()
void SwapBuffers ()
void Frame ()
void Render ()
virtual void SetWindowName (char *)
void SetWindowInfo (char *)
void SetParentInfo (char *)
virtual void * GetGenericDisplayId ()
virtual void * GetGenericWindowId ()
virtual void * GetGenericParentId ()
virtual void * GetGenericContext ()
virtual void SetDisplayId (void *)
virtual void SetWindowId (HWND)
void SetContextId (HGLRC)
void SetDeviceContext (HDC)
void MakeCurrent ()
void Clean ()
virtual void SetSize (int, int)
virtual void SetSize (int a[2])
virtual int * GetSize ()
virtual void GetSize (int *x, int *y)
virtual void SetPosition (int, int)
virtual void SetPosition (int a[2])
virtual int * GetPosition ()
virtual void GetPosition (int *x, int *y)
virtual HWND GetWindowId ()
void SetWindowId (void *foo)
virtual void SetParentId (HWND)
void SetParentId (void *foo)
virtual void SetNextWindowId (HWND)
virtual unsigned char * GetPixelData (int x, int y, int x2, int y2, int front)
virtual void SetPixelData (int x, int y, int x2, int y2, unsigned char *, int front)
virtual float * GetRGBAPixelData (int x, int y, int x2, int y2, int front)
virtual void SetRGBAPixelData (int x, int y, int x2, int y2, float *, int front, int blend=0)
virtual void ReleaseRGBAPixelData (float *data)
void SetupMemoryRendering (int x, int y, HDC prn)
void ResumeScreenRendering ()
HDC GetMemoryDC ()
unsigned char * GetMemoryData ()
virtual void OpenGLInit ()
virtual void SetupPalette (HDC hDC)
virtual void SetupPixelFormat (HDC hDC, DWORD dwFlags, int debug, int bpp=16, int zbpp=16)

Static Public Methods

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

Protected Methods

 vtkWin32OpenGLImageWindow ()
 ~vtkWin32OpenGLImageWindow ()
virtual LRESULT MessageProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Static Protected Methods

LRESULT APIENTRY WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Protected Attributes

HINSTANCE ApplicationInstance
HPALETTE Palette
HPALETTE OldPalette
HGLRC ContextId
HDC DeviceContext
HWND WindowId
HWND ParentId
HWND NextWindowId
int OwnWindow
int ScreenSize [2]
BITMAPINFO MemoryDataHeader
HBITMAP MemoryBuffer
unsigned char * MemoryData
HDC MemoryHdc
int ScreenMapped
int ScreenWindowSize [2]
HDC ScreenDeviceContext
int ScreenDoubleBuffer
HGLRC ScreenContextId

Detailed Description

OpenGL Imageing window.

Date:
2001/12/07 16:02:53
Revision:
1.21

vtkWin32OpenGLImageWindow is a concrete implementation of the abstract class vtkImageWindow. vtkWin32OpenGLImageer interfaces to the standard OpenGL graphics library in the Windows/NT environment..

Definition at line 58 of file vtkWin32OpenGLImageWindow.h.


Constructor & Destructor Documentation

vtkWin32OpenGLImageWindow::vtkWin32OpenGLImageWindow   [protected]
 

vtkWin32OpenGLImageWindow::~vtkWin32OpenGLImageWindow   [protected]
 


Member Function Documentation

vtkWin32OpenGLImageWindow* vtkWin32OpenGLImageWindow::New   [static]
 

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

Reimplemented from vtkImageWindow.

virtual const char* vtkWin32OpenGLImageWindow::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 vtkWin32OpenGLImageWindow::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 vtkWin32OpenGLImageWindow::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.

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

vtkWin32OpenGLImageWindow* vtkWin32OpenGLImageWindow::GetOutput   [inline]
 

Definition at line 66 of file vtkWin32OpenGLImageWindow.h.

virtual void vtkWin32OpenGLImageWindow::MakeDefaultWindow   [virtual]
 

Initialize the window for rendering.

Reimplemented from vtkImageWindow.

void vtkWin32OpenGLImageWindow::SwapBuffers   [virtual]
 

Swap the front and back buffers if double buffering is being used.

Reimplemented from vtkImageWindow.

void vtkWin32OpenGLImageWindow::Frame void    [virtual]
 

Flush the buffer and swap if necessary

Reimplemented from vtkImageWindow.

void vtkWin32OpenGLImageWindow::Render void    [virtual]
 

Draw the contents of the window

Reimplemented from vtkImageWindow.

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

Set the size of the window.

Reimplemented from vtkImageWindow.

virtual void vtkWin32OpenGLImageWindow::SetSize int    a[2] [inline, virtual]
 

Set the size of the window.

Reimplemented from vtkImageWindow.

Definition at line 83 of file vtkWin32OpenGLImageWindow.h.

virtual int* vtkWin32OpenGLImageWindow::GetSize   [virtual]
 

Get the current size of the window.

Reimplemented from vtkImageWindow.

virtual void vtkWin32OpenGLImageWindow::GetSize int *    x,
int *    y
[inline, virtual]
 

Get the current size of the window.

Reimplemented from vtkImageWindow.

Definition at line 89 of file vtkWin32OpenGLImageWindow.h.

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

Set the position of the window.

Reimplemented from vtkImageWindow.

virtual void vtkWin32OpenGLImageWindow::SetPosition int    a[2] [inline, virtual]
 

Set the position of the window.

Reimplemented from vtkImageWindow.

Definition at line 95 of file vtkWin32OpenGLImageWindow.h.

virtual int* vtkWin32OpenGLImageWindow::GetPosition   [virtual]
 

Get the position in screen coordinates of the window.

Reimplemented from vtkImageWindow.

virtual void vtkWin32OpenGLImageWindow::GetPosition int *    x,
int *    y
[inline, virtual]
 

Get the position in screen coordinates of the window.

Reimplemented from vtkImageWindow.

Definition at line 101 of file vtkWin32OpenGLImageWindow.h.

virtual void vtkWin32OpenGLImageWindow::SetWindowName char *    name [virtual]
 

Set the name of the window. This appears at the top of the window normally.

Reimplemented from vtkWindow.

void vtkWin32OpenGLImageWindow::SetWindowInfo char *    info [virtual]
 

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

Reimplemented from vtkImageWindow.

void vtkWin32OpenGLImageWindow::SetParentInfo char *    info [virtual]
 

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

Reimplemented from vtkImageWindow.

virtual void* vtkWin32OpenGLImageWindow::GetGenericDisplayId   [inline, virtual]
 

These are here for using a tk window.

Reimplemented from vtkImageWindow.

Definition at line 115 of file vtkWin32OpenGLImageWindow.h.

virtual void* vtkWin32OpenGLImageWindow::GetGenericWindowId   [inline, virtual]
 

These are here for using a tk window.

Reimplemented from vtkImageWindow.

Definition at line 116 of file vtkWin32OpenGLImageWindow.h.

virtual void* vtkWin32OpenGLImageWindow::GetGenericParentId   [inline, virtual]
 

These are here for using a tk window.

Reimplemented from vtkImageWindow.

Definition at line 117 of file vtkWin32OpenGLImageWindow.h.

virtual void* vtkWin32OpenGLImageWindow::GetGenericContext   [inline, virtual]
 

These are here for using a tk window.

Reimplemented from vtkImageWindow.

Definition at line 118 of file vtkWin32OpenGLImageWindow.h.

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

These are here for using a tk window.

Reimplemented from vtkImageWindow.

Definition at line 119 of file vtkWin32OpenGLImageWindow.h.

virtual HWND vtkWin32OpenGLImageWindow::GetWindowId   [virtual]
 

Get the window id.

void vtkWin32OpenGLImageWindow::SetWindowId void *    foo [inline, virtual]
 

Get the window id.

Reimplemented from vtkImageWindow.

Definition at line 124 of file vtkWin32OpenGLImageWindow.h.

virtual void vtkWin32OpenGLImageWindow::SetWindowId HWND    [virtual]
 

Set the window id to a pre-existing window.

virtual void vtkWin32OpenGLImageWindow::SetParentId HWND    [virtual]
 

Set the window's parent id to a pre-existing window.

void vtkWin32OpenGLImageWindow::SetParentId void *    foo [inline, virtual]
 

Set the window's parent id to a pre-existing window.

Reimplemented from vtkImageWindow.

Definition at line 133 of file vtkWin32OpenGLImageWindow.h.

void vtkWin32OpenGLImageWindow::SetContextId HGLRC   
 

void vtkWin32OpenGLImageWindow::SetDeviceContext HDC   
 

virtual void vtkWin32OpenGLImageWindow::SetNextWindowId HWND    [virtual]
 

Set the window id of the new window once a WindowRemap is done.

virtual unsigned char* vtkWin32OpenGLImageWindow::GetPixelData int    x,
int    y,
int    x2,
int    y2,
int    front
[virtual]
 

Set/Get the pixel data of an image, transmitted as RGBRGB...

Reimplemented from vtkWindow.

virtual void vtkWin32OpenGLImageWindow::SetPixelData int    x,
int    y,
int    x2,
int    y2,
unsigned char *   ,
int    front
[virtual]
 

Set/Get the pixel data of an image, transmitted as RGBRGB...

virtual float* vtkWin32OpenGLImageWindow::GetRGBAPixelData int    x,
int    y,
int    x2,
int    y2,
int    front
[virtual]
 

Set/Get the pixel data of an image, transmitted as RGBARGBA...

virtual void vtkWin32OpenGLImageWindow::SetRGBAPixelData int    x,
int    y,
int    x2,
int    y2,
float *   ,
int    front,
int    blend = 0
[virtual]
 

Set/Get the pixel data of an image, transmitted as RGBARGBA...

virtual void vtkWin32OpenGLImageWindow::ReleaseRGBAPixelData float *    data [virtual]
 

Set/Get the pixel data of an image, transmitted as RGBARGBA...

void vtkWin32OpenGLImageWindow::MakeCurrent   [virtual]
 

Make this windows OpenGL context the current context.

Reimplemented from vtkImageWindow.

void vtkWin32OpenGLImageWindow::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 vtkWin32OpenGLImageWindow::ResumeScreenRendering  
 

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

HDC vtkWin32OpenGLImageWindow::GetMemoryDC  
 

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

unsigned char* vtkWin32OpenGLImageWindow::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 169 of file vtkWin32OpenGLImageWindow.h.

virtual void vtkWin32OpenGLImageWindow::OpenGLInit   [virtual]
 

Initialize OpenGL for this window.

virtual void vtkWin32OpenGLImageWindow::SetupPalette HDC    hDC [virtual]
 

Initialize OpenGL for this window.

virtual void vtkWin32OpenGLImageWindow::SetupPixelFormat HDC    hDC,
DWORD    dwFlags,
int    debug,
int    bpp = 16,
int    zbpp = 16
[virtual]
 

Initialize OpenGL for this window.

void vtkWin32OpenGLImageWindow::Clean  
 

Clean up device contexts, rendering contexts, etc.

virtual LRESULT vtkWin32OpenGLImageWindow::MessageProc HWND    hWnd,
UINT    message,
WPARAM    wParam,
LPARAM    lParam
[protected, virtual]
 

LRESULT APIENTRY vtkWin32OpenGLImageWindow::WndProc HWND    hWnd,
UINT    message,
WPARAM    wParam,
LPARAM    lParam
[static, protected]
 


Member Data Documentation

HINSTANCE vtkWin32OpenGLImageWindow::ApplicationInstance [protected]
 

Definition at line 187 of file vtkWin32OpenGLImageWindow.h.

HPALETTE vtkWin32OpenGLImageWindow::Palette [protected]
 

Definition at line 188 of file vtkWin32OpenGLImageWindow.h.

HPALETTE vtkWin32OpenGLImageWindow::OldPalette [protected]
 

Definition at line 189 of file vtkWin32OpenGLImageWindow.h.

HGLRC vtkWin32OpenGLImageWindow::ContextId [protected]
 

Definition at line 190 of file vtkWin32OpenGLImageWindow.h.

HDC vtkWin32OpenGLImageWindow::DeviceContext [protected]
 

Definition at line 191 of file vtkWin32OpenGLImageWindow.h.

HWND vtkWin32OpenGLImageWindow::WindowId [protected]
 

Definition at line 192 of file vtkWin32OpenGLImageWindow.h.

HWND vtkWin32OpenGLImageWindow::ParentId [protected]
 

Definition at line 193 of file vtkWin32OpenGLImageWindow.h.

HWND vtkWin32OpenGLImageWindow::NextWindowId [protected]
 

Definition at line 194 of file vtkWin32OpenGLImageWindow.h.

int vtkWin32OpenGLImageWindow::OwnWindow [protected]
 

Definition at line 195 of file vtkWin32OpenGLImageWindow.h.

int vtkWin32OpenGLImageWindow::ScreenSize[2] [protected]
 

Definition at line 196 of file vtkWin32OpenGLImageWindow.h.

BITMAPINFO vtkWin32OpenGLImageWindow::MemoryDataHeader [protected]
 

Definition at line 199 of file vtkWin32OpenGLImageWindow.h.

HBITMAP vtkWin32OpenGLImageWindow::MemoryBuffer [protected]
 

Definition at line 200 of file vtkWin32OpenGLImageWindow.h.

unsigned char* vtkWin32OpenGLImageWindow::MemoryData [protected]
 

Definition at line 201 of file vtkWin32OpenGLImageWindow.h.

HDC vtkWin32OpenGLImageWindow::MemoryHdc [protected]
 

Definition at line 202 of file vtkWin32OpenGLImageWindow.h.

int vtkWin32OpenGLImageWindow::ScreenMapped [protected]
 

Definition at line 204 of file vtkWin32OpenGLImageWindow.h.

int vtkWin32OpenGLImageWindow::ScreenWindowSize[2] [protected]
 

Definition at line 205 of file vtkWin32OpenGLImageWindow.h.

HDC vtkWin32OpenGLImageWindow::ScreenDeviceContext [protected]
 

Definition at line 206 of file vtkWin32OpenGLImageWindow.h.

int vtkWin32OpenGLImageWindow::ScreenDoubleBuffer [protected]
 

Definition at line 207 of file vtkWin32OpenGLImageWindow.h.

HGLRC vtkWin32OpenGLImageWindow::ScreenContextId [protected]
 

Definition at line 208 of file vtkWin32OpenGLImageWindow.h.


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