42#ifndef vtkCocoaRenderWindow_h
43#define vtkCocoaRenderWindow_h
46#include "vtkRenderingOpenGL2Module.h"
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(); }
453 bool WantsBestResolution;
454 bool ConnectContextToNSView;
456 int DisplayIndex = 0;
Cocoa OpenGL rendering window.
virtual void SetRootWindow(void *)
Sets the NSWindow* associated with this vtkRenderWindow.
void SetWindowInfo(const char *) override
Set this RenderWindow's window id to a pre-existing window.
void SetDisplayId(void *displayId) override
Set the index of the NSScreen on which the window should be created.
void SetParentInfo(const char *) override
See the documentation for SetParentId().
void SetSize(int a[2]) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
virtual void * GetParentId()
Get the parent NSView* for this vtkRenderWindow.
void WindowRemap() override
Remap the window.
void * GetGenericDisplayId() override
Dummy stubs for vtkWindow API.
void SetParentId(void *nsview) override
Set the NSView* for the vtkRenderWindow to be parented within.
void * GetCocoaManager()
Accessors for the cocoa manager (Really an NSMutableDictionary*).
void SetCocoaServer(void *server)
void SetCocoaManager(void *manager)
Accessors for the cocoa manager (Really an NSMutableDictionary*).
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
void SetStereoCapableWindow(vtkTypeBool capable) override
Prescribe that the window be created in a stereo-capable mode.
void PushContext() override
Ability to push and pop this window's context as the current context.
void SetConnectContextToNSView(bool connect)
Set to false if you want to prevent the NSOpenGLContext from being associated with the NSView.
void CreateAWindow() override
Create a not-off-screen window.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool GetWantsBestResolution()
void SetPixelFormat(void *pixelFormat)
Accessors for the pixel format object (Really an NSOpenGLPixelFormat*).
vtkTypeBool OnScreenInitialized
int * GetScreenSize() override
Get the current size of the screen in pixels.
void PopContext() override
Ability to push and pop this window's context as the current context.
void Frame() override
Finish the rendering process.
int * GetSize() override
Get the size (width and height) of the rendering window in screen coordinates (in pixels).
virtual void * GetWindowId()
Returns the NSView* associated with this vtkRenderWindow.
void Initialize() override
Initialize the window for rendering.
void DestroyWindow() override
Destroy a not-off-screen window.
void SetWantsBestResolution(bool wantsBest)
Set to true if you want to force NSViews created by this object to have their wantsBestResolutionOpen...
~vtkCocoaRenderWindow() override
virtual void * GetRootWindow()
Returns the NSWindow* associated with this vtkRenderWindow.
void Start() override
Begin the rendering process.
void * GetPixelFormat()
Accessors for the pixel format object (Really an NSOpenGLPixelFormat*).
bool IsCurrent() override
Tells if this window is the current OpenGL context for the calling thread.
bool GetPlatformSupportsRenderWindowSharing() override
Does this platform support render window data sharing.
static vtkCocoaRenderWindow * New()
void SetPosition(int a[2]) override
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
void SetNextWindowId(void *) override
Dummy stubs for vtkWindow API.
void SetSize(int width, int height) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
bool GetConnectContextToNSView()
void SetWindowId(void *) override
Sets the NSView* associated with this vtkRenderWindow.
bool InitializeFromCurrentContext() override
Initialize the render window from the information associated with the currently activated OpenGL cont...
void MakeCurrent() override
Make this windows OpenGL context the current context.
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
virtual void PrefFullScreen()
Set the preferred window size to full screen.
void * GetGenericParentId() override
Dummy stubs for vtkWindow API.
virtual void WindowConfigure()
Specify various window parameters.
void ReleaseCurrent() override
Release the current context.
std::stack< void * > ContextStack
a simple class to control print indentation
#define VTK_DEPRECATED_IN_9_1_0(reason)
#define VTK_SIZEHINT(...)