Go to the documentation of this file.
24 #ifndef vtkWin32OpenGLRenderWindow_h
25 #define vtkWin32OpenGLRenderWindow_h
27 #include "vtkRenderingOpenGL2Module.h"
31 #include "vtkWindows.h"
104 void SetPosition(
int,
int) override;
122 void SetWindowName(const
char *) override;
127 void SetWindowInfo(const
char *) override;
132 void SetNextWindowInfo(const
char *) override;
137 void SetParentInfo(const
char *) override;
139 void *GetGenericDisplayId()
override {
return (
void *)this->ContextId;}
234 HDC hDC, DWORD dwFlags,
int debug,
235 int bpp=16,
int zbpp=16);
314 WPARAM wParam, LPARAM lParam);
316 static LRESULT APIENTRY
WndProc(HWND hWnd, UINT message,
317 WPARAM wParam, LPARAM lParam);
void * GetGenericContext() override
void Frame(void) override
End the rendering process and display the image.
void InitializeApplication()
virtual void PrefFullScreen(void)
Set the preferred window size to full screen.
void SetSize(int a[2]) override
Set the size of the window in screen coordinates in pixels.
void ResizeWhileOffscreen(int xsize, int ysize)
void PopContext() override
void ShowCursor() override
void SetCurrentCursor(int) override
Change the shape of the cursor.
const char * ReportCapabilities() override
Get report of capabilities for the render window.
void SetWindowId(void *foo) override
void SetDeviceContext(HDC)
bool InitializeFromCurrentContext() override
Initialize the render window from the information associated with the currently activated OpenGL cont...
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
bool SetSwapControl(int i) override
Set the number of vertical syncs required between frames.
int WindowIdReferenceCount
~vtkWin32OpenGLRenderWindow()
HINSTANCE ApplicationInstance
void SetParentId(void *foo) override
void SetSize(int a[2]) override
Set the size of the window in screen coordinates in pixels.
static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
virtual LRESULT MessageProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
void SetCursorPosition(int x, int y) override
#define VTK_SIZEHINT(...)
int CreatingOffScreenWindow
int GetEventPending() override
Check to see if a mouse button has been pressed or mouse wheel activated.
int * GetScreenSize() override
Get the current size of the screen in pixels.
void Clean()
Clean up device contexts, rendering contexts, etc.
void SetStereoCapableWindow(vtkTypeBool capable) override
Prescribe that the window be created in a stereo-capable mode.
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
a simple class to control print indentation
list of point or cell ids
void SetNextWindowId(void *arg) override
Set the window id of the new window once a WindowRemap is done.
void * GetGenericWindowId() override
bool GetPlatformSupportsRenderWindowSharing() override
Does this platform support render window data sharing.
void DestroyWindow() override
Destroy a not-off-screen window.
int * GetSize() override
Get the current size of the window in pixels.
bool IsCurrent() override
Tells if this window is the current OpenGL context for the calling thread.
int IsDirect() override
Is this render window using hardware acceleration? 0-false, 1-true.
static vtkWin32OpenGLRenderWindow * New()
void CreateAWindow() override
Create a not-off-screen window.
void CreateOffScreenWindow(int width, int height)
void CleanUpOffScreenRendering(void)
HWND GetWindowId()
Get the window id.
void Finalize(void) override
Finalize the rendering window.
void SetParentId(HWND)
Set the window's parent id to a pre-existing window.
void SetSize(int, int) override
Set the size of the window in pixels.
void SetWindowId(HWND)
Set the window id to a pre-existing window.
void WindowRemap(void) override
Remap the window.
virtual void SetupPalette(HDC hDC)
Initialize OpenGL for this window.
void * GetGenericParentId() override
std::stack< HDC > DCStack
void Start(void) override
Begin the rendering process.
void Initialize(void) override
Initialize the rendering window.
vtkWin32OpenGLRenderWindow()
void SetOffScreenRendering(vtkTypeBool offscreen) override
Override the default implementation so that we can actively switch between on and off screen renderin...
void PrintSelf(ostream &os, vtkIndent indent) override
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)
void HideCursor() override
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void * GetGenericDrawable() override
void PushContext() override
Ability to push and pop this window's context as the current context.
void MakeCurrent() override
Make this windows OpenGL context the current context.
virtual void SetPosition(int, int)
bool DetectDPI() override
Attempt to detect and set the DPI of the display device by querying the system.
void SetNextWindowId(HWND)
Set the window id of the new window once a WindowRemap is done.
virtual void WindowInitialize(void)
Create the window.
std::stack< HGLRC > ContextStack