42 #ifndef vtkCocoaRenderWindow_h 43 #define vtkCocoaRenderWindow_h 45 #include "vtkRenderingOpenGLModule.h" 58 void Start()
override;
63 void Frame()
override;
68 virtual void WindowConfigure();
97 virtual void PrefFullScreen();
103 void SetSize(
int a[2])
override;
104 void SetSize(
int,
int)
override;
138 vtkWarningMacro(
"SetNextWindowInfo not implemented (WindowRemap not implemented).");
142 vtkWarningMacro(
"Method not implemented.");
147 vtkWarningMacro(
"Method not implemented.");
151 vtkWarningMacro(
"Method not implemented.");
171 vtkWarningMacro(
"SetNextWindowId not implemented (WindowRemap not implemented).");
209 void UpdateContext();
243 virtual void SetupPalette(
void *hDC);
244 virtual void SetupPixelFormat(
void *hDC,
void *dwFlags,
int debug,
245 int bpp=16,
int zbpp=16);
279 virtual int GetViewCreated();
285 virtual int GetWindowCreated();
291 void SetContextId(
void *);
292 void *GetContextId();
306 virtual void SetRootWindow(
void *);
311 virtual void *GetRootWindow();
328 virtual void *GetWindowId();
344 virtual void *GetParentId();
356 void SetWantsBestResolution(
bool wantsBest);
357 bool GetWantsBestResolution();
363 void SetPixelFormat(
void *pixelFormat);
364 void *GetPixelFormat();
371 void CreateGLContext();
375 void DestroyOffScreenWindow();
385 void SetCocoaManager(
void *manager);
386 void *GetCocoaManager();
389 void SetCocoaServer(
void *server);
390 void *GetCocoaServer();
409 int ForceMakeCurrent;
412 bool WantsBestResolution;
int GetDepthBufferSize() override
Get the size of the depth buffer.
virtual void Finalize()=0
Finalize the rendering process.
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
virtual void WindowRemap()=0
Remap the rendering window.
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
virtual void HideCursor()=0
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
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...
virtual int * GetScreenSize()=0
Get the current size of the screen in pixels.
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
virtual void SetFullScreen(int)=0
Turn on/off rendering full screen window size.
void SetNextWindowId(void *) override
Dummy stubs for vtkWindow API.
virtual int GetEventPending()=0
Check to see if a mouse button has been pressed.
virtual void SetStereoCapableWindow(int capable)
Prescribe that the window be created in a stereo-capable mode.
virtual int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
virtual bool IsCurrent()=0
Tells if this window is the current graphics context for the calling thread.
void SetWindowId(void *) override=0
Dummy stubs for vtkWindow API.
a simple class to control print indentation
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
void SetWindowInfo(char *) override=0
Dummy stubs for vtkWindow API.
void * GetGenericDisplayId() override
Dummy stubs for vtkWindow API.
void * GetGenericContext() override
Accessors for the OpenGL context (Really an NSOpenGLContext*).
int SupportsOpenGL() override
Does this render window support OpenGL? 0-false, 1-true.
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 int * GetPosition()
Set/Get the position in screen coordinates of the rendering window.
virtual void Frame()=0
A termination method performed at the end of the rendering process to do things like swapping buffers...
const char * ReportCapabilities() override
Get report of capabilities for the render window.
void SetNextWindowInfo(char *) override
Dummy stubs for vtkWindow API.
void SetParentId(void *) override=0
Dummy stubs for vtkWindow API.
virtual int * GetSize()
Set/Get the size of the window in screen coordinates in pixels.
void SetParentInfo(char *) 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 SetSize(int a[2]) override
Set the size of the window in screen coordinates in pixels.
void * GetGenericParentId() override
Dummy stubs for vtkWindow API.
virtual void Start()=0
Initialize the rendering process.
virtual void SetWindowName(const char *)
Get name of rendering window.
virtual void SetPosition(int, int)
Set/Get the position in screen coordinates of the rendering window.
virtual void Initialize(void)
Initialize the rendering window.
virtual void CreateAWindow()=0
Create a not-off-screen window.
void MakeCurrent() override=0
Attempt to make this window the current graphics context for the calling thread.
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
virtual void ShowCursor()=0
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
virtual bool IsDrawable()
Test if the window has a valid drawable.