VTK
vtkIOSRenderWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkIOSRenderWindow.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 =========================================================================*/
42 #ifndef vtkIOSRenderWindow_h
43 #define vtkIOSRenderWindow_h
44 
45 #include "vtkRenderingOpenGL2Module.h" // For export macro
46 #include "vtkOpenGLRenderWindow.h"
47 
48 class VTKRENDERINGOPENGL2_EXPORT vtkIOSRenderWindow : public vtkOpenGLRenderWindow
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56  virtual void Start();
57 
59  virtual void Frame();
60 
62  virtual void WindowConfigure();
63 
67  virtual void Initialize();
68 
73  virtual void SetFullScreen(int);
74 
77  virtual void WindowRemap();
78 
81  virtual void PrefFullScreen();
82 
84 
85  virtual void SetSize(int a[2]);
86  virtual void SetSize(int,int);
88 
90  virtual int *GetSize();
91 
93 
94  virtual void SetPosition(int a[2]);
95  virtual void SetPosition(int,int);
97 
99  virtual int *GetScreenSize();
100 
102  virtual int *GetPosition();
103 
106  virtual void SetWindowName(const char *);
107 
108  void SetNextWindowInfo(char *)
109  {
110  vtkWarningMacro("SetNextWindowInfo not implemented (WindowRemap not implemented).");
111  }
112  virtual void* GetGenericDrawable()
113  {
114  vtkWarningMacro("Method not implemented.");
115  return 0;
116  }
117  virtual void SetDisplayId(void*)
118  {
119  vtkWarningMacro("Method not implemented.");
120  }
121  virtual void *GetGenericDisplayId()
122  {
123  vtkWarningMacro("Method not implemented.");
124  return 0;
125  }
126 
130  virtual void SetWindowInfo(char*);
131 
135  virtual void SetParentInfo(char*);
136 
137  void SetNextWindowId(void*)
138  {
139  vtkWarningMacro("SetNextWindowId not implemented (WindowRemap not implemented).");
140  }
141 
145 
147  virtual void StereoUpdate();
148 
153  virtual void SetStereoCapableWindow(int capable);
154 
156  virtual void MakeCurrent();
157 
160  virtual bool IsCurrent();
161 
165  virtual bool IsDrawable();
166 
169 
171  const char *ReportCapabilities();
172 
175 
177  int IsDirect();
178 
182  virtual void SetForceMakeCurrent();
183 
186  virtual int GetEventPending();
187 
189 
190  virtual void SetupPalette(void *hDC);
191  virtual void SetupPixelFormat(void *hDC, void *dwFlags, int debug,
192  int bpp=16, int zbpp=16);
194 
196  void Finalize();
197 
200 
202 
205  virtual void HideCursor();
206  virtual void ShowCursor();
207  virtual void SetCursorPosition(int x, int y);
209 
211  virtual void SetCurrentCursor(int);
212 
215  virtual int GetWindowCreated();
216 
218 
219  void SetContextId(void *);
220  void *GetContextId();
221  virtual void *GetGenericContext() {return this->GetContextId();}
223 
232  virtual void SetRootWindow(void *);
233 
235  virtual void *GetRootWindow();
236 
245  virtual void SetWindowId(void *);
246 
248 
249  virtual void *GetWindowId();
250  virtual void *GetGenericWindowId() {return this->GetWindowId();}
252 
257  virtual void SetParentId(void *UIView);
258 
260 
263  virtual void *GetParentId();
264  virtual void *GetGenericParentId() { return this->GetParentId(); }
266 
268 
270  void SetPixelFormat(void *pixelFormat);
271  void *GetPixelFormat();
273 
274 protected:
277 
279 
283 
286 
287 private:
288  vtkIOSRenderWindow(const vtkIOSRenderWindow&); // Not implemented.
289  void operator=(const vtkIOSRenderWindow&); // Not implemented.
290 
291 private:
292  int WindowCreated;
293  int ViewCreated;
294  int CursorHidden;
295 
296  int ForceMakeCurrent;
297  char *Capabilities;
298 };
299 
300 #endif
vtkIOSRenderWindow::InitializeFromCurrentContext
virtual bool InitializeFromCurrentContext()
vtkIOSRenderWindow::CreateGLContext
void CreateGLContext()
vtkIOSRenderWindow::StereoUpdate
virtual void StereoUpdate()
vtkIOSRenderWindow::UpdateContext
void UpdateContext()
vtkIOSRenderWindow::Initialize
virtual void Initialize()
vtkIOSRenderWindow::PrefFullScreen
virtual void PrefFullScreen()
vtkIOSRenderWindow::SetWindowName
virtual void SetWindowName(const char *)
vtkIOSRenderWindow::SetRootWindow
virtual void SetRootWindow(void *)
vtkIOSRenderWindow::GetGenericWindowId
virtual void * GetGenericWindowId()
Definition: vtkIOSRenderWindow.h:250
vtkIOSRenderWindow::SetNextWindowInfo
void SetNextWindowInfo(char *)
Definition: vtkIOSRenderWindow.h:108
vtkIOSRenderWindow::IsDrawable
virtual bool IsDrawable()
vtkIOSRenderWindow::GetGenericParentId
virtual void * GetGenericParentId()
Definition: vtkIOSRenderWindow.h:264
vtkIOSRenderWindow::SetNextWindowId
void SetNextWindowId(void *)
Definition: vtkIOSRenderWindow.h:137
vtkIOSRenderWindow::MakeCurrent
virtual void MakeCurrent()
vtkIOSRenderWindow::GetEventPending
virtual int GetEventPending()
vtkIOSRenderWindow::SetPosition
virtual void SetPosition(int, int)
vtkIOSRenderWindow::OffScreenInitialized
int OffScreenInitialized
Definition: vtkIOSRenderWindow.h:284
vtkIOSRenderWindow::IsDirect
int IsDirect()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkIOSRenderWindow::~vtkIOSRenderWindow
~vtkIOSRenderWindow()
vtkIOSRenderWindow::SetStereoCapableWindow
virtual void SetStereoCapableWindow(int capable)
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkIOSRenderWindow::DestroyWindow
void DestroyWindow()
vtkIOSRenderWindow::New
static vtkIOSRenderWindow * New()
vtkIOSRenderWindow::GetContextId
void * GetContextId()
vtkIOSRenderWindow::GetWindowCreated
virtual int GetWindowCreated()
vtkIOSRenderWindow::SetContextId
void SetContextId(void *)
vtkIOSRenderWindow::DestroyOffScreenWindow
void DestroyOffScreenWindow()
vtkIOSRenderWindow::WindowRemap
virtual void WindowRemap()
vtkIOSRenderWindow::ReportCapabilities
const char * ReportCapabilities()
vtkIOSRenderWindow::GetPixelFormat
void * GetPixelFormat()
vtkIOSRenderWindow::vtkIOSRenderWindow
vtkIOSRenderWindow()
vtkIOSRenderWindow::GetScreenSize
virtual int * GetScreenSize()
vtkIOSRenderWindow::SetSize
virtual void SetSize(int, int)
vtkIOSRenderWindow::SupportsOpenGL
int SupportsOpenGL()
vtkIOSRenderWindow::WindowConfigure
virtual void WindowConfigure()
vtkOpenGLRenderWindow.h
vtkIOSRenderWindow::GetWindowId
virtual void * GetWindowId()
vtkIOSRenderWindow::HideCursor
virtual void HideCursor()
vtkIOSRenderWindow::Start
virtual void Start()
vtkIOSRenderWindow::SetWindowId
virtual void SetWindowId(void *)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkIOSRenderWindow::SetCursorPosition
virtual void SetCursorPosition(int x, int y)
vtkIOSRenderWindow::ShowCursor
virtual void ShowCursor()
vtkIOSRenderWindow::GetGenericDisplayId
virtual void * GetGenericDisplayId()
Definition: vtkIOSRenderWindow.h:121
vtkIOSRenderWindow::Frame
virtual void Frame()
vtkIOSRenderWindow::SetPosition
virtual void SetPosition(int a[2])
vtkIOSRenderWindow::SetSize
virtual void SetSize(int a[2])
vtkIOSRenderWindow::Finalize
void Finalize()
vtkIOSRenderWindow::SetParentInfo
virtual void SetParentInfo(char *)
vtkIOSRenderWindow::GetGenericContext
virtual void * GetGenericContext()
Definition: vtkIOSRenderWindow.h:221
vtkIOSRenderWindow::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIOSRenderWindow::SetForceMakeCurrent
virtual void SetForceMakeCurrent()
vtkgl::a
GLboolean GLboolean GLboolean GLboolean a
Definition: vtkgl.h:12312
vtkIOSRenderWindow::SetDisplayId
virtual void SetDisplayId(void *)
Definition: vtkIOSRenderWindow.h:117
vtkIOSRenderWindow::SetCurrentCursor
virtual void SetCurrentCursor(int)
vtkIOSRenderWindow::SetPixelFormat
void SetPixelFormat(void *pixelFormat)
vtkIOSRenderWindow::SetFullScreen
virtual void SetFullScreen(int)
vtkIOSRenderWindow::GetRootWindow
virtual void * GetRootWindow()
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkIOSRenderWindow::SetParentId
virtual void SetParentId(void *UIView)
vtkIOSRenderWindow::GetDepthBufferSize
int GetDepthBufferSize()
vtkIOSRenderWindow::CreateAWindow
void CreateAWindow()
vtkIOSRenderWindow::SetWindowInfo
virtual void SetWindowInfo(char *)
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:41
vtkIOSRenderWindow::GetParentId
virtual void * GetParentId()
vtkIOSRenderWindow::OnScreenInitialized
int OnScreenInitialized
Definition: vtkIOSRenderWindow.h:285
vtkIOSRenderWindow::GetGenericDrawable
virtual void * GetGenericDrawable()
Definition: vtkIOSRenderWindow.h:112
vtkIOSRenderWindow::GetPosition
virtual int * GetPosition()
vtkIOSRenderWindow::IsCurrent
virtual bool IsCurrent()
vtkWarningMacro
#define vtkWarningMacro(x)
Definition: vtkSetGet.h:471
vtkIOSRenderWindow
IOS OpenGL rendering window.
Definition: vtkIOSRenderWindow.h:49
vtkIOSRenderWindow::SetupPixelFormat
virtual void SetupPixelFormat(void *hDC, void *dwFlags, int debug, int bpp=16, int zbpp=16)
vtkIOSRenderWindow::SetupPalette
virtual void SetupPalette(void *hDC)
vtkIOSRenderWindow::GetSize
virtual int * GetSize()