Go to the documentation of this file.
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;
virtual void * GetGenericDrawable()
void InitializeApplication()
virtual void PopContext()
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.
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)
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.
~vtkWin32OpenGLRenderWindow()
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)
static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
virtual LRESULT MessageProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
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...
virtual void SetWindowId(HWND)
Set the window id to a pre-existing window.
virtual void * GetGenericContext()
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.
virtual void PushContext()
Ability to push and pop this window's context as the current context.
a simple class to control print indentation
virtual void SetPosition(int, int)
Set the position of the window.
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 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 CreateOffScreenWindow(int width, int height)
void CleanUpOffScreenRendering(void)
virtual void SetSize(int, int)
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.
virtual void SetupPalette(HDC hDC)
Initialize OpenGL for this window.
std::stack< HDC > DCStack
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...
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.
virtual void SetupPixelFormatPaletteAndContext(HDC hDC, DWORD dwFlags, int debug, int bpp=16, int zbpp=16)
virtual void * GetGenericWindowId()
virtual void SetPosition(int, int)
virtual int * GetPosition()
Get the position in screen coordinates 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.
std::stack< HGLRC > ContextStack
virtual void SetSize(int a[2])
Set the size of the window in screen coordinates in pixels.