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_h
33 #define vtkGenericOpenGLRenderWindow_h
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 
117 
119  void SetIsDirect(int newValue);
120  void SetSupportsOpenGL(int newValue);
121  void SetIsCurrent(bool newValue);
123 
124 protected:
128 
129 private:
131  void operator=(const vtkGenericOpenGLRenderWindow&); // Not implemented.
132 };
133 
134 #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
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
virtual void CreateAWindow()=0
virtual void * GetGenericParentId()=0
virtual void ShowCursor()=0
virtual void * GetGenericWindowId()=0