VTK
vtkWinCEOpenGLRenderWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWinCEOpenGLRenderWindow.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 =========================================================================*/
23 #ifndef __vtkWinCEOpenGLRenderWindow_h
24 #define __vtkWinCEOpenGLRenderWindow_h
25 
26 #include "vtkOpenGLRenderWindow.h"
27 
28 #include "GL/osmesa.h" // Needed for Mesa types
29 
30 class vtkIdList;
31 
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40  virtual void Start(void);
41 
43  void Frame(void);
44 
46  virtual void WindowInitialize(void);
47 
52  virtual void Initialize(void);
53 
58  virtual void Finalize(void);
59 
61  virtual void SetFullScreen(int);
62 
64  virtual void WindowRemap(void);
65 
67  virtual void PrefFullScreen(void);
68 
70  virtual void SetSize(int,int);
71 
73  virtual int *GetSize();
74 
76  virtual void SetPosition(int,int);
77 
79  virtual int *GetScreenSize();
80 
82  virtual int *GetPosition();
83 
86  virtual void SetWindowName(char *);
87 
89  void SetWindowInfo(char *);
90 
91  void SetNextWindowInfo(char *);
92 
94  void SetParentInfo(char *);
95 
96  //BTX
97  virtual void *GetGenericDisplayId() {return (void *)this->OffScreenContextId;};
98  virtual void *GetGenericWindowId() {return (void *)this->WindowId;};
99  virtual void *GetGenericParentId() {return (void *)this->ParentId;};
100  virtual void *GetGenericContext() {return (void *)this->DeviceContext;};
101  virtual void SetDisplayId(void *) {};
102 
104 
105  virtual HWND GetWindowId();
106  void SetWindowId(void *foo) {this->SetWindowId((HWND)foo);};
108 
110  virtual void SetWindowId(HWND);
111 
113 
114  virtual void SetParentId(HWND);
115  void SetParentId(void *foo) {this->SetParentId((HWND)foo);};
117 
119  virtual void SetNextWindowId(HWND);
120 
121  virtual void SetNextWindowId(void *);
122  //ETX
123 
128  virtual void SetStereoCapableWindow(int capable);
129 
131  void MakeCurrent();
132 
136  void SetForceMakeCurrent();
137 
140  virtual int GetEventPending();
141 
143  void Clean();
144 
146 
148  void HideCursor();
149  void ShowCursor();
151 
152 protected:
155 
157 
158  OSMesaContext OffScreenContextId;
160 
162  HWND WindowId;
163  HWND ParentId;
166  int ScreenSize[2];
167 
168  //BTX
169  // message handler
170  virtual LRESULT MessageProc(HWND hWnd, UINT message,
171  WPARAM wParam, LPARAM lParam);
172 
173  static LRESULT APIENTRY WndProc(HWND hWnd, UINT message,
174  WPARAM wParam, LPARAM lParam);
175  //ETX
178 
179  void ResizeWhileOffscreen(int xsize, int ysize);
180  void CreateAWindow(int x, int y, int width, int height);
181  void InitializeApplication();
182 private:
183  vtkWinCEOpenGLRenderWindow(const vtkWinCEOpenGLRenderWindow&); // Not implemented.
184  void operator=(const vtkWinCEOpenGLRenderWindow&); // Not implemented.
185 };
186 
187 
188 #endif
189 
OpenGL rendering window.
virtual void Finalize()=0
virtual void SetForceMakeCurrent()
virtual void SetWindowInfo(char *)=0
virtual void WindowRemap()=0
void PrintSelf(ostream &os, vtkIndent indent)
virtual void HideCursor()=0
static vtkRenderWindow * New()
virtual int * GetScreenSize()=0
virtual void SetWindowId(void *)=0
virtual void SetNextWindowInfo(char *)=0
virtual void SetFullScreen(int)=0
virtual int GetEventPending()=0
virtual void SetSize(int, int)
virtual void SetStereoCapableWindow(int capable)
virtual void SetParentInfo(char *)=0
virtual void SetParentId(void *)=0
a simple class to control print indentation
Definition: vtkIndent.h:37
list of point or cell ids
Definition: vtkIdList.h:34
virtual void MakeCurrent()=0
virtual void SetNextWindowId(void *)=0
virtual int * GetPosition()
virtual void Frame()=0
#define VTK_RENDERING_EXPORT
virtual int * GetSize()
virtual void Start()=0
virtual void SetWindowName(const char *)
virtual void SetPosition(int, int)
virtual void CreateAWindow()=0
virtual void ShowCursor()=0