VTK
vtkGenericOpenGLRenderWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderWindow.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef vtkGenericOpenGLRenderWindow_h
28 #define vtkGenericOpenGLRenderWindow_h
29 
30 #include "vtkRenderingOpenGLModule.h" // For export macro
31 #include "vtkOpenGLRenderWindow.h"
32 
33 class VTKRENDERINGOPENGL_EXPORT vtkGenericOpenGLRenderWindow : public vtkOpenGLRenderWindow
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 protected:
41  ~vtkGenericOpenGLRenderWindow() override;
42 
43 public:
44 
46  void Finalize() override;
47 
50  void Frame() override;
51 
54  void MakeCurrent() override;
55 
59  bool IsCurrent() override;
60 
64  int SupportsOpenGL() override;
65 
69  int IsDirect() override;
70 
71  // {@
73  void SetFrontBuffer(unsigned int);
74  void SetFrontLeftBuffer(unsigned int);
75  void SetFrontRightBuffer(unsigned int);
76  void SetBackBuffer(unsigned int);
77  void SetBackLeftBuffer(unsigned int);
78  void SetBackRightBuffer(unsigned int);
79  // }@
80 
82  void PushState();
84  void PopState();
85 
86  // {@
88  void SetWindowId(void*) override;
89  void* GetGenericWindowId() override;
90  void SetDisplayId(void*) override;
91  void SetParentId(void*) override;
92  void* GetGenericDisplayId() override;
93  void* GetGenericParentId() override;
94  void* GetGenericContext() override;
95  void* GetGenericDrawable() override;
96  void SetWindowInfo(char*) override;
97  void SetParentInfo(char*) override;
98  int* GetScreenSize() override;
99  void Start() override;
100  void HideCursor() override;
101  void ShowCursor() override;
102  void SetFullScreen(int) override;
103  void WindowRemap() override;
104  int GetEventPending() override;
105  void SetNextWindowId(void*) override;
106  void SetNextWindowInfo(char*) override;
107  void CreateAWindow() override;
108  void DestroyWindow() override;
109  // }@
110 
112 
116  void SetIsDirect(int newValue);
117  void SetSupportsOpenGL(int newValue);
118  void SetIsCurrent(bool newValue);
120 
121 protected:
125 
126 private:
128  void operator=(const vtkGenericOpenGLRenderWindow&) = delete;
129 };
130 
131 #endif
OpenGL rendering window.
virtual void Finalize()=0
Finalize the rendering process.
virtual void WindowRemap()=0
Remap the rendering window.
virtual void HideCursor()=0
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on...
virtual int * GetScreenSize()=0
Get the current size of the screen in pixels.
void * GetGenericContext() override=0
Dummy stubs for vtkWindow API.
virtual void SetNextWindowInfo(char *)=0
Dummy stubs for vtkWindow API.
virtual void SetFullScreen(int)=0
Turn on/off rendering full screen window size.
void * GetGenericParentId() override=0
Dummy stubs for vtkWindow API.
virtual int GetEventPending()=0
Check to see if a mouse button has been pressed.
bool CurrentStatus
Set this to true to indicate that the context is now ready.
void * GetGenericDisplayId() override=0
Dummy stubs for vtkWindow API.
virtual int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
int SupportsOpenGLStatus
Set this to true to indicate that the context is now ready.
virtual bool IsCurrent()=0
Tells if this window is the current graphics context for the calling thread.
void SetWindowId(void *) override=0
Dummy stubs for vtkWindow API.
platform independent render window
void SetDisplayId(void *) override=0
Dummy stubs for vtkWindow API.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
void SetWindowInfo(char *) override=0
Dummy stubs for vtkWindow API.
int SupportsOpenGL() override
Does this render window support OpenGL? 0-false, 1-true.
virtual void SetNextWindowId(void *)=0
Dummy stubs for vtkWindow API.
virtual void Frame()=0
A termination method performed at the end of the rendering process to do things like swapping buffers...
void SetParentId(void *) override=0
Dummy stubs for vtkWindow API.
void SetParentInfo(char *) override=0
Dummy stubs for vtkWindow API.
void * GetGenericDrawable() override=0
Dummy stubs for vtkWindow API.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Start()=0
Initialize the rendering process.
void * GetGenericWindowId() override=0
Dummy stubs for vtkWindow API.
virtual void CreateAWindow()=0
Create a not-off-screen window.
void MakeCurrent() override=0
Attempt to make this window the current graphics context for the calling thread.
virtual void ShowCursor()=0
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
int DirectStatus
Set this to true to indicate that the context is now ready.