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