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 =========================================================================*/
29 #ifndef vtkGenericOpenGLRenderWindow_h
30 #define vtkGenericOpenGLRenderWindow_h
31 
32 #include "vtkRenderingOpenGL2Module.h" // For export macro
33 #include "vtkOpenGLRenderWindow.h"
34 
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 protected:
45 
46 public:
47 
49  void Finalize();
50 
53  void Frame();
54 
57  void MakeCurrent();
58 
62  bool IsCurrent();
63 
67  int SupportsOpenGL();
68 
72  int IsDirect();
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*);
92  void* GetGenericWindowId();
93  void SetDisplayId(void*);
94  void SetParentId(void*);
95  void* GetGenericDisplayId();
96  void* GetGenericParentId();
97  void* GetGenericContext();
98  void* GetGenericDrawable();
99  void SetWindowInfo(char*);
100  void SetParentInfo(char*);
101  int* GetScreenSize();
102  void Start();
103  void HideCursor();
104  void ShowCursor();
105  void SetFullScreen(int);
106  void WindowRemap();
107  int GetEventPending();
108  void SetNextWindowId(void*);
109  void SetNextWindowInfo(char*);
110  void CreateAWindow();
111  void DestroyWindow();
112  // }@
113 
115 
117  void SetIsDirect(int newValue);
118  void SetSupportsOpenGL(int newValue);
119  void SetIsCurrent(bool newValue);
121 
122 protected:
123  int DirectStatus;
124  int SupportsOpenGLStatus;
125  bool CurrentStatus;
126 
127 private:
129  void operator=(const vtkGenericOpenGLRenderWindow&); // Not implemented.
130 };
131 
132 #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
#define VTKRENDERINGOPENGL2_EXPORT
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