VTK
vtkEGLRenderWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEGLRenderWindow.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 =========================================================================*/
25 #ifndef vtkEGLRenderWindow_h
26 #define vtkEGLRenderWindow_h
27 
28 #include "vtkRenderingOpenGL2Module.h" // For export macro
29 #include "vtkOpenGLRenderWindow.h"
30 
31 class vtkIdList;
32 
34 {
35 public:
36  static vtkEGLRenderWindow *New();
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41  virtual void Start(void);
42 
44  virtual void Frame(void);
45 
47  virtual void WindowInitialize(void);
48 
53  virtual void Initialize(void);
54 
59  virtual void Finalize(void);
60 
62  virtual void SetFullScreen(int);
63 
65  virtual void WindowRemap(void);
66 
68  virtual void PrefFullScreen(void);
69 
71 
72  virtual void SetSize(int,int);
73  virtual void SetSize(int a[2]) {this->SetSize(a[0], a[1]);}
75 
80  virtual void SetStereoCapableWindow(int capable);
81 
83  void MakeCurrent();
84 
87  virtual bool IsCurrent();
88 
90  int SupportsOpenGL();
91 
93  int IsDirect() { return 1;};
94 
96  virtual int *GetScreenSize();
97 
99  virtual int *GetPosition();
100 
102 
103  virtual void SetDisplayId(void *) {};
104  virtual void SetWindowId(void *window);
105  virtual void SetNextWindowId(void *) {}
106  virtual void SetParentId(void *) {}
107  virtual void *GetGenericDisplayId();
108  virtual void *GetGenericWindowId() {return NULL;}
109  virtual void *GetGenericParentId() {return NULL;}
110  virtual void *GetGenericContext();
111  virtual void *GetGenericDrawable() {return NULL;}
112  virtual void SetWindowInfo(char *);
113  virtual void SetNextWindowInfo(char *) {}
114  virtual void SetParentInfo(char *) {}
116 
117  void SetWindowName(const char *);
118 
120 
121  void SetPosition(int,int);
122  void SetPosition(int a[2]) {this->SetPosition(a[0], a[1]);};
124 
126 
128  void HideCursor();
129  void ShowCursor();
131 
134  void Render();
135 
140  virtual int GetEventPending() { return 0;};
141 
142  int GetOwnWindow() { return this->OwnWindow; };
144 
145  virtual void SetOffScreenRendering (int value);
146  virtual int GetOffScreenRendering ();
148 
151  void GetEGLSurfaceSize(int* width, int* height);
153  int GetNumberOfDevices();
158  virtual bool IsPointSpriteBugPresent();
159 
160 protected:
163 
164  int ScreenSize[2];
169  class vtkInternals;
170  vtkInternals* Internals;
171 
172  void CreateAWindow();
173  void DestroyWindow();
174  void ResizeWindow(int width, int height);
175 
180  void SetDeviceAsDisplay(int deviceIndex);
181 
182 private:
183  vtkEGLRenderWindow(const vtkEGLRenderWindow&); // Not implemented.
184  void operator=(const vtkEGLRenderWindow&); // Not implemented.
185 
186  bool DeviceExtensionsPresent;
187 };
188 
189 
190 
191 #endif
OpenGL rendering window.
virtual void SetOffScreenRendering(int)
virtual void SetDisplayId(void *)
virtual void Finalize()=0
virtual void SetWindowInfo(char *)=0
vtkInternals * Internals
virtual void * GetGenericDrawable()
virtual void WindowRemap()=0
virtual void * GetGenericContext()=0
virtual void SetNextWindowId(void *)
void PrintSelf(ostream &os, vtkIndent indent)
virtual void HideCursor()=0
virtual void * GetGenericDisplayId()=0
virtual void SetNextWindowInfo(char *)
void SetPosition(int a[2])
#define VTKRENDERINGOPENGL2_EXPORT
static vtkRenderWindow * New()
virtual int * GetScreenSize()=0
virtual void * GetGenericWindowId()
virtual void SetWindowId(void *)=0
virtual void SetParentInfo(char *)
virtual int GetOffScreenRendering()
virtual void SetFullScreen(int)=0
virtual void SetSize(int, int)
virtual void SetStereoCapableWindow(int capable)
virtual int SupportsOpenGL()
virtual bool IsCurrent()=0
virtual void SetParentId(void *)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void DestroyWindow()=0
list of point or cell ids
Definition: vtkIdList.h:35
virtual void MakeCurrent()=0
virtual void SetSize(int a[2])
virtual int * GetPosition()
virtual void Frame()=0
virtual int GetEventPending()
virtual void Start()=0
virtual void SetWindowName(const char *)
virtual void SetPosition(int, int)
virtual bool IsPointSpriteBugPresent()
virtual void CreateAWindow()=0
OpenGL rendering window.
virtual int GetNumberOfDevices()
virtual void ShowCursor()=0
virtual void * GetGenericParentId()