42 #ifndef vtkCocoaRenderWindow_h
43 #define vtkCocoaRenderWindow_h
45 #include "vtkRenderingOpenGL2Module.h"
59 void Start() VTK_OVERRIDE;
64 void Frame() VTK_OVERRIDE;
69 virtual
void WindowConfigure();
79 void Initialize() VTK_OVERRIDE;
87 void SetFullScreen(
int) VTK_OVERRIDE;
92 void WindowRemap() VTK_OVERRIDE;
98 virtual
void PrefFullScreen();
104 void SetSize(
int a[2]) VTK_OVERRIDE;
105 void SetSize(
int,
int) VTK_OVERRIDE;
111 int *GetSize() VTK_OVERRIDE;
117 void SetPosition(
int a[2]) VTK_OVERRIDE;
118 void SetPosition(
int,
int) VTK_OVERRIDE;
124 int *GetScreenSize() VTK_OVERRIDE;
129 int *GetPosition() VTK_OVERRIDE;
135 void SetWindowName(const
char *) VTK_OVERRIDE;
137 void SetNextWindowInfo(
char *) VTK_OVERRIDE
139 vtkWarningMacro(
"SetNextWindowInfo not implemented (WindowRemap not implemented).");
143 vtkWarningMacro(
"Method not implemented.");
148 vtkWarningMacro(
"Method not implemented.");
152 vtkWarningMacro(
"Method not implemented.");
168 void SetParentInfo(
char*) VTK_OVERRIDE;
170 void SetNextWindowId(
void*) VTK_OVERRIDE
172 vtkWarningMacro(
"SetNextWindowId not implemented (WindowRemap not implemented).");
184 void StereoUpdate() VTK_OVERRIDE;
192 void SetStereoCapableWindow(
int capable) VTK_OVERRIDE;
197 void MakeCurrent() VTK_OVERRIDE;
202 bool IsCurrent() VTK_OVERRIDE;
210 bool IsDrawable() VTK_OVERRIDE;
215 void UpdateContext();
220 const
char *ReportCapabilities() VTK_OVERRIDE;
225 int IsDirect() VTK_OVERRIDE;
232 void SetForceMakeCurrent() VTK_OVERRIDE;
238 int GetEventPending() VTK_OVERRIDE;
244 virtual
void SetupPalette(
void *hDC);
245 virtual
void SetupPixelFormat(
void *hDC,
void *dwFlags,
int debug,
246 int bpp=16,
int zbpp=16);
252 void Finalize() VTK_OVERRIDE;
261 void HideCursor() VTK_OVERRIDE;
262 void ShowCursor() VTK_OVERRIDE;
263 void SetCursorPosition(
int x,
int y) VTK_OVERRIDE;
269 void SetCurrentCursor(
int) VTK_OVERRIDE;
275 virtual
int GetViewCreated();
281 virtual
int GetWindowCreated();
287 void SetContextId(
void *);
288 void *GetContextId();
289 void *GetGenericContext() VTK_OVERRIDE {
return this->GetContextId();}
302 virtual void SetRootWindow(
void *);
307 virtual void *GetRootWindow();
324 virtual
void *GetWindowId();
325 void *GetGenericWindowId() VTK_OVERRIDE {
return this->GetWindowId();}
340 virtual void *GetParentId();
353 void SetWantsBestResolution(
bool wantsBest);
354 bool GetWantsBestResolution();
360 void SetPixelFormat(
void *pixelFormat);
361 void *GetPixelFormat();
373 void PopContext() VTK_OVERRIDE;
378 ~vtkCocoaRenderWindow() VTK_OVERRIDE;
380 std::stack<
void *> ContextStack;
382 void CreateGLContext();
384 void CreateAWindow() VTK_OVERRIDE;
385 void DestroyWindow() VTK_OVERRIDE;
386 void DestroyOffScreenWindow();
388 int OffScreenInitialized;
389 int OnScreenInitialized;
396 void SetCocoaManager(
void *manager);
397 void *GetCocoaManager();
400 void SetCocoaServer(
void *server);
401 void *GetCocoaServer();
404 vtkCocoaRenderWindow(const vtkCocoaRenderWindow&) VTK_DELETE_FUNCTION;
405 void operator=(const vtkCocoaRenderWindow&) VTK_DELETE_FUNCTION;
420 int ForceMakeCurrent;
422 bool WantsBestResolution;
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
Cocoa OpenGL rendering window.
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on...
bool InitializeFromCurrentContext() override
Initialize the render window from the information associated with the currently activated OpenGL cont...
void SetWindowId(void *) override=0
Dummy stubs for vtkWindow API.
a simple class to control print indentation
void SetWindowInfo(char *) override=0
Dummy stubs for vtkWindow API.
void * GetGenericDisplayId() override
Dummy stubs for vtkWindow API.
virtual void PushContext()
Ability to push and pop this window's context as the current context.
void SetParentId(void *) override=0
Dummy stubs for vtkWindow API.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void * GetGenericParentId() override
Dummy stubs for vtkWindow API.
virtual void Start()=0
Initialize the rendering process.