42 #ifndef vtkCocoaRenderWindow_h
43 #define vtkCocoaRenderWindow_h
46 #include "vtkRenderingOpenGL2Module.h"
59 void Start()
override;
64 void Frame()
override;
69 virtual void WindowConfigure();
98 virtual void PrefFullScreen();
125 void SetPosition(
int x,
int y) override;
126 void SetPosition(
int a[2])
override { this->
SetPosition(a[0], a[1]); }
145 void SetWindowName(const
char*) override;
147 void SetNextWindowInfo(const
char*)
override
149 vtkDebugMacro(
"SetNextWindowInfo not implemented (WindowRemap not implemented).");
153 vtkDebugMacro(
"Method not implemented.");
166 this->DisplayIndex = displayId ? *(
reinterpret_cast<int*
>(displayId)) : 0;
171 vtkDebugMacro(
"Method not implemented.");
191 vtkDebugMacro(
"SetNextWindowId not implemented (WindowRemap not implemented).");
235 "Deprecated in 9.1 because no one knows what it's for and nothing uses it")
236 bool IsDrawable() override;
241 void UpdateContext();
246 const
char* ReportCapabilities() override;
258 void SetForceMakeCurrent() override;
270 virtual
void SetupPalette(
void* hDC);
271 virtual
void SetupPixelFormat(
void* hDC,
void* dwFlags,
int debug,
int bpp = 16,
int zbpp = 16);
277 void Finalize() override;
286 void HideCursor() override;
287 void ShowCursor() override;
288 void SetCursorPosition(
int x,
int y) override;
294 void SetCurrentCursor(
int) override;
312 void SetContextId(
void*);
313 void* GetContextId();
314 void* GetGenericContext()
override {
return this->GetContextId(); }
327 virtual void SetRootWindow(
void*);
332 virtual void* GetRootWindow();
349 virtual void* GetWindowId();
365 virtual void* GetParentId();
378 void SetWantsBestResolution(
bool wantsBest);
379 bool GetWantsBestResolution();
387 void SetConnectContextToNSView(
bool connect);
388 bool GetConnectContextToNSView();
394 void SetPixelFormat(
void* pixelFormat);
395 void* GetPixelFormat();
416 void CreateGLContext();
427 void SetCocoaManager(
void* manager);
428 void* GetCocoaManager();
431 void SetCocoaServer(
void* server);
432 void* GetCocoaServer();
453 bool WantsBestResolution;
454 bool ConnectContextToNSView;
456 int DisplayIndex = 0;
std::stack< void * > ContextStack
#define VTK_DEPRECATED_IN_9_1_0(reason)
virtual void PopContext()
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
virtual void WindowRemap()
Remap the rendering window.
void Start(void) override
Begin the rendering process.
Cocoa OpenGL rendering window.
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 SetWindowInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
void SetNextWindowId(void *) override
Dummy stubs for vtkWindow API.
void SetParentId(void *) override
Dummy stubs for vtkWindow API.
virtual void SetStereoCapableWindow(vtkTypeBool capable)
Prescribe that the window be created in a stereo-capable mode.
void SetDisplayId(void *displayId) override
Set the index of the NSScreen on which the window should be created.
void SetPosition(int a[2]) override
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
virtual void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels)...
void SetWindowId(void *) override
Dummy stubs for vtkWindow API.
a simple class to control print indentation
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
void * GetGenericDisplayId() override
Dummy stubs for vtkWindow API.
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
vtkTypeBool OnScreenInitialized
virtual void MakeCurrent()
Make the window current.
virtual void PushContext()
Ability to push and pop this window's context as the current context.
#define VTK_SIZEHINT(...)
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
virtual int * GetSize()
Get the size (width and height) of the rendering window in screen coordinates (in pixels)...
virtual void ReleaseCurrent()
Release the current context.
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.
void SetSize(int a[2]) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels)...
bool GetPlatformSupportsRenderWindowSharing() override
Does this platform support render window data sharing.
void SetParentInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual void Initialize(void)
Initialize the rendering window.
virtual void CreateAWindow()=0
Create a not-off-screen window.
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.