Go to the documentation of this file.
24 #ifndef vtkWin32OpenGLRenderWindow_h
25 #define vtkWin32OpenGLRenderWindow_h
27 #include "vtkRenderingOpenGLModule.h"
243 int bpp = 16,
int zbpp = 16);
300 int ScreenWindowSize[2];
309 WPARAM wParam, LPARAM lParam);
311 static LRESULT APIENTRY
WndProc(HWND hWnd, UINT message,
312 WPARAM wParam, LPARAM lParam);
virtual void * GetGenericDrawable()
void InitializeApplication()
virtual void PrefFullScreen(void)
Set the preferred window size to full screen.
void ResizeWhileOffscreen(int xsize, int ysize)
virtual void Initialize(void)
Initialize the rendering window.
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
void SetNextWindowInfo(char *)
Sets the WindowInfo that will be used after a WindowRemap.
int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
virtual int GetEventPending()
Check to see if a mouse button has been pressed or mouse wheel activated.
virtual void * GetGenericDisplayId()
const char * ReportCapabilities()
Get report of capabilities for the render window.
virtual void * GetGenericParentId()
void SetDeviceContext(HDC)
Set the window's device context.
virtual void SetSize(int width, int height)
Set the size of the window in pixels.
virtual void SetStereoCapableWindow(int capable)
Prescribe that the window be created in a stereo-capable mode.
void SetWindowId(void *foo)
virtual void SetWindowName(const char *)
Set the name of the window.
void Frame(void)
End the rendering process and display the image.
void ResumeScreenRendering(void)
int WindowIdReferenceCount
~vtkWin32OpenGLRenderWindow()
HINSTANCE ApplicationInstance
int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
virtual void SetNextWindowId(void *arg)
Set the window id of the new window once a WindowRemap is done.
virtual void WindowRemap(void)
Remap the window.
void SetCursorPosition(int x, int y)
Set cursor position in window (note that (0,0) is the lower left corner).
static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
virtual LRESULT MessageProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
void SetupMemoryRendering(HBITMAP hbmp)
virtual void Start(void)
Begin the rendering process.
virtual int * GetSize()
Get the current size of the window in pixels.
virtual void SetParentId(HWND)
Set the window's parent id to a pre-existing window.
void HideCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void SetupMemoryRendering(int x, int y, HDC prn)
These methods can be used by MFC applications to support print preview and printing,...
virtual void SetWindowId(HWND)
Set the window id to a pre-existing window.
virtual void * GetGenericContext()
int CreatingOffScreenWindow
virtual bool DetectDPI()
Attempt to detect and set the DPI of the display device by querying the system.
virtual bool IsCurrent()
Tells if this window is the current OpenGL context for the calling thread.
void Clean()
Clean up device contexts, rendering contexts, etc.
a simple class to control print indentation
void SetContextId(HGLRC)
Set the window's context id.
virtual void Finalize(void)
Finalize the rendering window.
virtual void DestroyWindow()
Destroy a not-off-screen window.
virtual void SetOffScreenRendering(int offscreen)
Override the default implementation so that we can actively switch between on and off screen renderin...
list of point or cell ids
virtual void SetupPixelFormat(HDC hDC, DWORD dwFlags, int debug, int bpp=16, int zbpp=16)
virtual void SetNextWindowId(HWND)
Set the window id of the new window once a WindowRemap is done.
virtual void SetFullScreen(int)
Change the window to fill the entire screen.
static vtkWin32OpenGLRenderWindow * New()
virtual void SetPosition(int a[2])
void CreateOffScreenDC(int xsize, int ysize, HDC aHdc)
void CreateOffScreenWindow(int width, int height)
void CleanUpOffScreenRendering(void)
BITMAPINFO MemoryDataHeader
virtual void SetSize(int a[2])
Set the size of the window in screen coordinates in pixels.
virtual void SetupPalette(HDC hDC)
Initialize OpenGL for this window.
void SetParentId(void *foo)
virtual HWND GetWindowId()
Get the window id.
void SetParentInfo(char *)
Sets the HWND id of the window that WILL BE created.
virtual bool InitializeFromCurrentContext()
Initialize the render window from the information associated with the currently activated OpenGL cont...
void SaveScreenRendering()
vtkWin32OpenGLRenderWindow()
void MakeCurrent()
Make this windows OpenGL context the current context.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void CreateOffScreenDC(HBITMAP hbmp, HDC aHdc)
unsigned char * GetMemoryData()
virtual void * GetGenericWindowId()
unsigned char * MemoryData
virtual void SetPosition(int, int)
virtual int * GetPosition()
Get the position in screen coordinates of the window.
virtual void SetPosition(int x, int y)
Set the position of the window.
virtual void SetDisplayId(void *)
Dummy stubs for vtkWindow API.
virtual void CreateAWindow()
Create a not-off-screen window.
void SetWindowInfo(char *)
Set this RenderWindow's window id to a pre-existing window.
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
virtual void WindowInitialize(void)
Create the window.
virtual void SetSize(int a[2])
Set the size of the window in screen coordinates in pixels.