24 #ifndef vtkWin32OpenGLRenderWindow_h
25 #define vtkWin32OpenGLRenderWindow_h
27 #include "vtkRenderingOpenGL2Module.h"
31 #include "vtkWindows.h"
229 HDC hDC, DWORD dwFlags,
int debug,
230 int bpp=16,
int zbpp=16);
279 HINSTANCE ApplicationInstance;
284 BOOL MFChandledWindow;
294 int CreatingOffScreenWindow;
298 WPARAM wParam, LPARAM lParam);
300 static LRESULT APIENTRY
WndProc(HWND hWnd, UINT message,
301 WPARAM wParam, LPARAM lParam);
303 int ForceMakeCurrent;
306 int WindowIdReferenceCount;
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.
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)
virtual void Finalize(void)
Finalize the rendering window.
static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
virtual void PrefFullScreen(void)
Set the preferred window size to full screen.
virtual void * GetGenericDrawable()
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.
virtual void SetPosition(int, int)
Set the position of the window.
virtual void PushContext()
Ability to push and pop this window's context as the current context.
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...
virtual void * GetGenericDisplayId()
virtual HWND GetWindowId()
Get the window id.
void SetCursorPosition(int x, int y)
virtual void SetPosition(int a[2])
virtual void SetFullScreen(int)
Change the window to fill the entire screen.
std::stack< HDC > DCStack
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 void SetSize(int, int)
Set the size of the window in pixels.
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 * 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.
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.
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.
void SetNextWindowInfo(char *)
Sets the WindowInfo that will be used after a WindowRemap.
virtual void SetupPixelFormatPaletteAndContext(HDC hDC, DWORD dwFlags, int debug, int bpp=16, int zbpp=16)
std::stack< HGLRC > ContextStack
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 PopContext()
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 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)
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)