15 #ifndef vtkWin32OpenGLRenderWindow_h
16 #define vtkWin32OpenGLRenderWindow_h
19 #include "vtkRenderingOpenGL2Module.h"
23 #include "vtkWindows.h"
25 VTK_ABI_NAMESPACE_BEGIN
106 void SetPosition(
int x,
int y) override;
107 void SetPosition(
int a[2])
override { this->
SetPosition(a[0], a[1]); }
126 void SetWindowName(const
char*) override;
136 void SetWindowInfo(const
char*) override;
141 void SetNextWindowInfo(const
char*) override;
146 void SetParentInfo(const
char*) override;
148 void* GetGenericDisplayId()
override {
return (
void*)this->ContextId; }
248 HDC hDC, DWORD dwFlags,
int debug,
int bpp = 16,
int zbpp = 16);
320 virtual LRESULT
MessageProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
322 static LRESULT APIENTRY
WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
339 VTK_ABI_NAMESPACE_END
list of point or cell ids
topologically and geometrically regular array of data
a simple class to control print indentation
void DestroyWindow() override
Destroy a not-off-screen window.
void Clean()
Clean up device contexts, rendering contexts, etc.
static const std::string DEFAULT_BASE_WINDOW_NAME
virtual LRESULT MessageProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
void SetWindowId(HWND)
Set the window id to a pre-existing window.
void SetWindowId(void *foo) override
Set the window id to a pre-existing window.
vtkTypeBool Repositioning
static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
void SetNextWindowId(void *arg) override
Set the window id of the new window once a WindowRemap is done.
int * GetSize() override
Get the size (width and height) of the rendering window in screen coordinates (in pixels).
vtkTypeBool IsDirect() override
Is this render window using hardware acceleration? 0-false, 1-true.
void * GetGenericParentId() override
Dummy stubs for vtkWindow API.
~vtkWin32OpenGLRenderWindow() override
vtkTypeBool ForceMakeCurrent
HINSTANCE ApplicationInstance
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool SetSwapControl(int i) override
Set the number of vertical syncs required between frames.
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
void WindowRemap() override
Remap the window.
void Frame() override
End the rendering process and display the image.
void ShowCursor() 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
Dummy stubs for vtkWindow API.
vtkTypeBool GetEventPending() override
Check to see if a mouse button has been pressed or mouse wheel activated.
void SetShowWindow(bool val) override
Show or not Show the window.
std::stack< HDC > DCStack
HWND GetWindowId()
Get the window id.
void InitializeApplication()
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 SetCursorPosition(int x, int y) override
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 WindowInitialize()
Create the window.
void Finalize() override
Finalize the rendering window.
bool DetectDPI() override
Attempt to detect and set the DPI of the display device by querying the system.
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
void PushContext() override
Ability to push and pop this window's context as the current context.
void SetCurrentCursor(int) override
Change the shape of the cursor.
void SetSize(int a[2]) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
int WindowIdReferenceCount
bool InitializeFromCurrentContext() override
Initialize the render window from the information associated with the currently activated OpenGL cont...
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
virtual void PrefFullScreen()
Set the preferred window size to full screen.
bool GetPlatformSupportsRenderWindowSharing() override
Does this platform support render window data sharing.
void SetStereoCapableWindow(vtkTypeBool capable) override
Prescribe that the window be created in a stereo-capable mode.
void PopContext() override
Ability to push and pop this window's context as the current context.
virtual void SetupPixelFormatPaletteAndContext(HDC hDC, DWORD dwFlags, int debug, int bpp=16, int zbpp=16)
Initialize OpenGL for this window.
std::stack< HGLRC > ContextStack
void SetParentId(void *foo) override
Set the window's parent id to a pre-existing window.
void SetNextWindowId(HWND)
Set the window id of the new window once a WindowRemap is done.
const char * ReportCapabilities() override
Get report of capabilities for the render window.
vtkWin32OpenGLRenderWindow()
static vtkWin32OpenGLRenderWindow * New()
bool IsCurrent() override
Tells if this window is the current OpenGL context for the calling thread.
int * GetScreenSize() override
Get the current size of the screen in pixels.
void Initialize() override
Initialize the rendering window.
void * GetGenericContext() override
Dummy stubs for vtkWindow API.
void SetParentId(HWND)
Set the window's parent id to a pre-existing window.
void MakeCurrent() override
Make this windows OpenGL context the current context.
void SetPosition(int a[2]) override
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
void SetSize(int width, int height) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
void ResizeWhileOffscreen(int xsize, int ysize)
void CreateAWindow() override
Create a not-off-screen window.
void SetDeviceContext(HDC)
void ReleaseCurrent() override
Release the current context.
virtual void SetupPalette(HDC hDC)
Initialize OpenGL for this window.
#define VTK_SIZEHINT(...)