|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   27 #ifndef vtkWin32OpenGLRenderWindow_h 
   28 #define vtkWin32OpenGLRenderWindow_h 
   31 #include "vtkRenderingOpenGL2Module.h"  
   34 #include "vtkWindows.h"  
   48   void Frame(
void) 
override;
 
   53   virtual void WindowInitialize(
void);
 
   88   virtual void PrefFullScreen(
void);
 
  115   void SetPosition(
int x, 
int y) override;
 
  116   void SetPosition(
int a[2])
 override { this->
SetPosition(a[0], a[1]); }
 
  135   void SetWindowName(const 
char*) override;
 
  140   void SetWindowInfo(const 
char*) override;
 
  145   void SetNextWindowInfo(const 
char*) override;
 
  150   void SetParentInfo(const 
char*) override;
 
  152   void* GetGenericDisplayId()
 override { 
return (
void*)this->ContextId; }
 
  191   void SetContextId(HGLRC);   
 
  192   void SetDeviceContext(HDC); 
 
  245   virtual void SetupPalette(HDC hDC);
 
  246   virtual void SetupPixelFormatPaletteAndContext(
 
  247     HDC hDC, DWORD dwFlags, 
int debug, 
int bpp = 16, 
int zbpp = 16);
 
  316   virtual LRESULT MessageProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
 
  318   static LRESULT APIENTRY WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
 
  323   void ResizeWhileOffscreen(
int xsize, 
int ysize);
 
  326   void InitializeApplication();
 
  327   void CleanUpRenderers();
 
  328   void VTKRegisterClass();
 
  
void * GetGenericContext() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetWindowId(void *foo) override
virtual bool SetSwapControl(int)
Set the number of vertical syncs required between frames.
virtual int * GetSize()
Get the size (width and height) of the rendering window in screen coordinates (in pixels).
int WindowIdReferenceCount
void SetWindowId(void *) override
HINSTANCE ApplicationInstance
void SetParentId(void *foo) override
virtual bool DetectDPI()
Attempt to detect and set the DPI of the display device by querying the system.
void SetSize(int a[2]) override
virtual void WindowRemap()
Remap the rendering window.
virtual void PopContext()
virtual void ShowCursor()
virtual 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 SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
#define VTK_SIZEHINT(...)
virtual void Finalize()
Finalize the rendering process.
bool InitializeFromCurrentContext() override
Initialize the render window from the information associated with the currently activated OpenGL cont...
virtual void SetNextWindowId(void *)
void MakeCurrent() override
Attempt to make this window the current graphics context for the calling thread.
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
virtual vtkTypeBool GetEventPending()
Check to see if a mouse button has been pressed.
a simple class to control print indentation
list of point or cell ids
void * GetGenericWindowId() override
bool GetPlatformSupportsRenderWindowSharing() override
Does this platform support render window data sharing.
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
virtual void SetStereoCapableWindow(vtkTypeBool capable)
void SetParentId(void *) override
void * GetGenericParentId() override
const char * ReportCapabilities() override
Get report of capabilities for the render window.
void SetSize(int width, int height) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
virtual void SetCursorPosition(int, int)
std::stack< HDC > DCStack
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
virtual void SetShowWindow(bool)
void * GetGenericDrawable() override
void SetPosition(int a[2]) override
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
vtkTypeBool ForceMakeCurrent
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on,...
virtual void PushContext()
Ability to push and pop this window's context as the current context.
virtual void Initialize(void)
Initialize the rendering window.
virtual void CreateAWindow()=0
Create a not-off-screen window.
std::stack< HGLRC > ContextStack