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 =========================================================================*/
30 #ifndef vtkGenericOpenGLRenderWindow_h
31 #define vtkGenericOpenGLRenderWindow_h
32 
33 #include "vtkRenderingOpenGLModule.h" // For export macro
34 #include "vtkOpenGLRenderWindow.h"
35 
36 class VTKRENDERINGOPENGL_EXPORT vtkGenericOpenGLRenderWindow : public vtkOpenGLRenderWindow
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42 protected:
44  ~vtkGenericOpenGLRenderWindow() VTK_OVERRIDE;
45 
46 public:
47 
49  void Finalize() VTK_OVERRIDE;
50 
53  void Frame() VTK_OVERRIDE;
54 
57  void MakeCurrent() VTK_OVERRIDE;
58 
62  bool IsCurrent() VTK_OVERRIDE;
63 
67  int SupportsOpenGL() VTK_OVERRIDE;
68 
72  int IsDirect() VTK_OVERRIDE;
73 
74  // {@
76  void SetFrontBuffer(unsigned int);
77  void SetFrontLeftBuffer(unsigned int);
78  void SetFrontRightBuffer(unsigned int);
79  void SetBackBuffer(unsigned int);
80  void SetBackLeftBuffer(unsigned int);
81  void SetBackRightBuffer(unsigned int);
82  // }@
83 
85  void PushState();
87  void PopState();
88 
89  // {@
91  void SetWindowId(void*) VTK_OVERRIDE;
92  void* GetGenericWindowId() VTK_OVERRIDE;
93  void SetDisplayId(void*) VTK_OVERRIDE;
94  void SetParentId(void*) VTK_OVERRIDE;
95  void* GetGenericDisplayId() VTK_OVERRIDE;
96  void* GetGenericParentId() VTK_OVERRIDE;
97  void* GetGenericContext() VTK_OVERRIDE;
98  void* GetGenericDrawable() VTK_OVERRIDE;
99  void SetWindowInfo(char*) VTK_OVERRIDE;
100  void SetParentInfo(char*) VTK_OVERRIDE;
101  int* GetScreenSize() VTK_OVERRIDE;
102  void Start() VTK_OVERRIDE;
103  void HideCursor() VTK_OVERRIDE;
104  void ShowCursor() VTK_OVERRIDE;
105  void SetFullScreen(int) VTK_OVERRIDE;
106  void WindowRemap() VTK_OVERRIDE;
107  int GetEventPending() VTK_OVERRIDE;
108  void SetNextWindowId(void*) VTK_OVERRIDE;
109  void SetNextWindowInfo(char*) VTK_OVERRIDE;
110  void CreateAWindow() VTK_OVERRIDE;
111  void DestroyWindow() VTK_OVERRIDE;
112  // }@
113 
115 
119  void SetIsDirect(int newValue);
120  void SetSupportsOpenGL(int newValue);
121  void SetIsCurrent(bool newValue);
123 
124 protected:
125  int DirectStatus;
126  int SupportsOpenGLStatus;
127  bool CurrentStatus;
128 
129 private:
131  void operator=(const vtkGenericOpenGLRenderWindow&) VTK_DELETE_FUNCTION;
132 };
133 
134 #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:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.