30 #ifndef vtkCocoaRenderWindow_h
31 #define vtkCocoaRenderWindow_h
34 #include "vtkRenderingOpenGL2Module.h"
37 VTK_ABI_NAMESPACE_BEGIN
48 void Start()
override;
53 void Frame()
override;
58 virtual void WindowConfigure();
87 virtual void PrefFullScreen();
114 void SetPosition(
int x,
int y) override;
115 void SetPosition(
int a[2])
override { this->
SetPosition(a[0], a[1]); }
134 void SetWindowName(const
char*) override;
136 void SetNextWindowInfo(const
char*)
override
138 vtkDebugMacro(
"SetNextWindowInfo not implemented (WindowRemap not implemented).");
142 vtkDebugMacro(
"Method not implemented.");
155 this->DisplayIndex = displayId ? *(
reinterpret_cast<int*
>(displayId)) : 0;
160 vtkDebugMacro(
"Method not implemented.");
180 vtkDebugMacro(
"SetNextWindowId not implemented (WindowRemap not implemented).");
220 void UpdateContext();
249 virtual void SetupPalette(
void* hDC);
250 virtual void SetupPixelFormat(
void* hDC,
void* dwFlags,
int debug,
int bpp = 16,
int zbpp = 16);
291 void SetContextId(
void*);
292 void* GetContextId();
306 virtual void SetRootWindow(
void*);
311 virtual void* GetRootWindow();
328 virtual void* GetWindowId();
344 virtual void* GetParentId();
357 void SetWantsBestResolution(
bool wantsBest);
358 bool GetWantsBestResolution();
366 void SetConnectContextToNSView(
bool connect);
367 bool GetConnectContextToNSView();
373 void SetPixelFormat(
void* pixelFormat);
374 void* GetPixelFormat();
397 void CreateGLContext();
408 void SetCocoaManager(
void* manager);
409 void* GetCocoaManager();
412 void SetCocoaServer(
void* server);
413 void* GetCocoaServer();
434 bool WantsBestResolution;
435 bool ConnectContextToNSView;
437 int DisplayIndex = 0;
440 VTK_ABI_NAMESPACE_END
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
std::stack< void * > ContextStack
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.
virtual void HideCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void Render() override
Handle opengl specific code and calls superclass.
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 void SetCurrentCursor(int)
Change the shape of the cursor.
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
virtual void Finalize()
Finalize the rendering process.
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 Start() override
Begin the rendering process.
virtual void ShowCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void * GetGenericDisplayId() override
Dummy stubs for vtkWindow API.
void * GetGenericContext() override
Accessors for the OpenGL context (Really an NSOpenGLContext*).
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
vtkTypeBool OnScreenInitialized
virtual void SetCursorPosition(int, int)
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
virtual void Initialize()
Initialize the rendering window.
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(...)
const char * ReportCapabilities() override
Get report of capabilities for the render window.
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 vtkTypeBool GetEventPending()
Check to see if a mouse button has been pressed.
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 CreateAWindow()=0
Create a not-off-screen window.
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.