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 "vtkOpenGLRenderWindow.h"
36 
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 protected:
46 
47 public:
48 
50  void Finalize();
51 
54  void Frame();
55 
58  void MakeCurrent();
59 
63  bool IsCurrent();
64 
68  int SupportsOpenGL();
69 
73  int IsDirect();
74 
75  // {@
77  void SetFrontBuffer(unsigned int);
78  void SetFrontLeftBuffer(unsigned int);
79  void SetFrontRightBuffer(unsigned int);
80  void SetBackBuffer(unsigned int);
81  void SetBackLeftBuffer(unsigned int);
82  void SetBackRightBuffer(unsigned int);
83  // }@
84 
86  void PushState();
88  void PopState();
89 
90  // {@
92  void SetWindowId(void*);
93  void* GetGenericWindowId();
94  void SetDisplayId(void*);
95  void SetParentId(void*);
96  void* GetGenericDisplayId();
97  void* GetGenericParentId();
98  void* GetGenericContext();
99  void* GetGenericDrawable();
100  void SetWindowInfo(char*);
101  void SetParentInfo(char*);
102  int* GetScreenSize();
103  void Start();
104  void HideCursor();
105  void ShowCursor();
106  void SetFullScreen(int);
107  void WindowRemap();
108  int GetEventPending();
109  void SetNextWindowId(void*);
110  void SetNextWindowInfo(char*);
111  void CreateAWindow();
112  void DestroyWindow();
113  // }@
114 
115 protected:
116 
117 private:
119  void operator=(const vtkGenericOpenGLRenderWindow&); // Not implemented.
120 };
121 
122 #endif