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) VTK_OVERRIDE;
39 protected:
41  ~vtkGenericOpenGLRenderWindow() VTK_OVERRIDE;
42 
43 public:
44 
46  void Finalize() VTK_OVERRIDE;
47 
50  void Frame() VTK_OVERRIDE;
51 
54  void MakeCurrent() VTK_OVERRIDE;
55 
59  bool IsCurrent() VTK_OVERRIDE;
60 
64  int SupportsOpenGL() VTK_OVERRIDE;
65 
69  int IsDirect() VTK_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*) VTK_OVERRIDE;
89  void* GetGenericWindowId() VTK_OVERRIDE;
90  void SetDisplayId(void*) VTK_OVERRIDE;
91  void SetParentId(void*) VTK_OVERRIDE;
92  void* GetGenericDisplayId() VTK_OVERRIDE;
93  void* GetGenericParentId() VTK_OVERRIDE;
94  void* GetGenericContext() VTK_OVERRIDE;
95  void* GetGenericDrawable() VTK_OVERRIDE;
96  void SetWindowInfo(char*) VTK_OVERRIDE;
97  void SetParentInfo(char*) VTK_OVERRIDE;
98  int* GetScreenSize() VTK_OVERRIDE;
99  void Start() VTK_OVERRIDE;
100  void HideCursor() VTK_OVERRIDE;
101  void ShowCursor() VTK_OVERRIDE;
102  void SetFullScreen(int) VTK_OVERRIDE;
103  void WindowRemap() VTK_OVERRIDE;
104  int GetEventPending() VTK_OVERRIDE;
105  void SetNextWindowId(void*) VTK_OVERRIDE;
106  void SetNextWindowInfo(char*) VTK_OVERRIDE;
107  void CreateAWindow() VTK_OVERRIDE;
108  void DestroyWindow() VTK_OVERRIDE;
109  // }@
110 
112 
116  void SetIsDirect(int newValue);
117  void SetSupportsOpenGL(int newValue);
118  void SetIsCurrent(bool newValue);
120 
121 protected:
122  int DirectStatus;
123  int SupportsOpenGLStatus;
124  bool CurrentStatus;
125 
126 private:
128  void operator=(const vtkGenericOpenGLRenderWindow&) VTK_DELETE_FUNCTION;
129 };
130 
131 #endif
OpenGL rendering window.
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on...
platform independent render window
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.