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 =========================================================================*/
32 #ifndef vtkGenericOpenGLRenderWindow_hpp
33 #define vtkGenericOpenGLRenderWindow_hpp
34 
35 #include "vtkRenderingOpenGLModule.h" // For export macro
36 #include "vtkOpenGLRenderWindow.h"
37 
38 class VTKRENDERINGOPENGL_EXPORT vtkGenericOpenGLRenderWindow : public vtkOpenGLRenderWindow
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 protected:
47 
48 public:
49 
51  void Finalize();
52 
55  void Frame();
56 
59  void MakeCurrent();
60 
64  bool IsCurrent();
65 
69  int SupportsOpenGL();
70 
74  int IsDirect();
75 
76  // {@
78  void SetFrontBuffer(unsigned int);
79  void SetFrontLeftBuffer(unsigned int);
80  void SetFrontRightBuffer(unsigned int);
81  void SetBackBuffer(unsigned int);
82  void SetBackLeftBuffer(unsigned int);
83  void SetBackRightBuffer(unsigned int);
84  // }@
85 
87  void PushState();
89  void PopState();
90 
91  // {@
93  void SetWindowId(void*);
94  void* GetGenericWindowId();
95  void SetDisplayId(void*);
96  void SetParentId(void*);
97  void* GetGenericDisplayId();
98  void* GetGenericParentId();
99  void* GetGenericContext();
100  void* GetGenericDrawable();
101  void SetWindowInfo(char*);
102  void SetParentInfo(char*);
103  int* GetScreenSize();
104  void Start();
105  void HideCursor();
106  void ShowCursor();
107  void SetFullScreen(int);
108  void WindowRemap();
109  int GetEventPending();
110  void SetNextWindowId(void*);
111  void SetNextWindowInfo(char*);
112  void CreateAWindow();
113  void DestroyWindow();
114  // }@
115 
116 protected:
117 
118 private:
120  void operator=(const vtkGenericOpenGLRenderWindow&); // Not implemented.
121 };
122 
123 #endif