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 "vtkRenderingOpenGL2Module.h" // For export macro
36 #include "vtkOpenGLRenderWindow.h"
37 
38 class VTKRENDERINGOPENGL2_EXPORT vtkGenericOpenGLRenderWindow :
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 protected:
48 
49 public:
50 
52  void Finalize();
53 
56  void Frame();
57 
60  void MakeCurrent();
61 
65  bool IsCurrent();
66 
70  int SupportsOpenGL();
71 
75  int IsDirect();
76 
77  // {@
79  void SetFrontBuffer(unsigned int);
80  void SetFrontLeftBuffer(unsigned int);
81  void SetFrontRightBuffer(unsigned int);
82  void SetBackBuffer(unsigned int);
83  void SetBackLeftBuffer(unsigned int);
84  void SetBackRightBuffer(unsigned int);
85  // }@
86 
88  void PushState() {}
90  void PopState() {}
91 
92  // {@
94  void SetWindowId(void*);
95  void* GetGenericWindowId();
96  void SetDisplayId(void*);
97  void SetParentId(void*);
98  void* GetGenericDisplayId();
99  void* GetGenericParentId();
100  void* GetGenericContext();
101  void* GetGenericDrawable();
102  void SetWindowInfo(char*);
103  void SetParentInfo(char*);
104  int* GetScreenSize();
105  void Start();
106  void HideCursor();
107  void ShowCursor();
108  void SetFullScreen(int);
109  void WindowRemap();
110  int GetEventPending();
111  void SetNextWindowId(void*);
112  void SetNextWindowInfo(char*);
113  void CreateAWindow();
114  void DestroyWindow();
115  // }@
116 
118 
120  void SetIsDirect(int newValue);
121  void SetSupportsOpenGL(int newValue);
122  void SetIsCurrent(bool newValue);
124 
125 protected:
126  int DirectStatus;
127  int SupportsOpenGLStatus;
128  bool CurrentStatus;
129 
130 private:
132  void operator=(const vtkGenericOpenGLRenderWindow&); // Not implemented.
133 };
134 
135 #endif
OpenGL rendering window.
virtual void Finalize()=0
virtual void SetWindowInfo(char *)=0
virtual void WindowRemap()=0
virtual void * GetGenericContext()=0
void PrintSelf(ostream &os, vtkIndent indent)
virtual void HideCursor()=0
virtual void * GetGenericDisplayId()=0
static vtkRenderWindow * New()
virtual int * GetScreenSize()=0
void PushState()
no-op (for API compat with OpenGL1).
virtual void SetWindowId(void *)=0
virtual void SetNextWindowInfo(char *)=0
virtual void SetFullScreen(int)=0
virtual void * GetGenericDrawable()=0
virtual int GetEventPending()=0
virtual int IsDirect()
virtual int SupportsOpenGL()
virtual void SetParentInfo(char *)=0
virtual bool IsCurrent()=0
virtual void SetParentId(void *)=0
platform independent render window
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void DestroyWindow()=0
virtual void SetDisplayId(void *)=0
virtual void MakeCurrent()=0
virtual void SetNextWindowId(void *)=0
virtual void Frame()=0
virtual void Start()=0
void PopState()
no-op (for API compat with OpenGL1).
virtual void CreateAWindow()=0
virtual void * GetGenericParentId()=0
virtual void ShowCursor()=0
virtual void * GetGenericWindowId()=0