43#ifndef vtkCocoaRenderWindow_h
44#define vtkCocoaRenderWindow_h
46#include "vtkRenderingOpenGLModule.h"
139 vtkWarningMacro(
"SetNextWindowInfo not implemented (WindowRemap not implemented).");
143 vtkWarningMacro(
"Method not implemented.");
148 vtkWarningMacro(
"Method not implemented.");
152 vtkWarningMacro(
"Method not implemented.");
172 vtkWarningMacro(
"SetNextWindowId not implemented (WindowRemap not implemented).");
251 int bpp=16,
int zbpp=16);
403 int ForceMakeCurrent;
Cocoa OpenGL rendering window.
virtual void SetRootWindow(void *)
Sets the NSWindow* associated with this vtkRenderWindow.
virtual void * GetGenericDrawable()
virtual void SetStereoCapableWindow(int capable)
Prescribe that the window be created in a stereo-capable mode.
virtual void * GetGenericWindowId()
virtual void SetSize(int, int)
virtual void * GetParentId()
Get the parent NSView* for this vtkRenderWindow.
const char * ReportCapabilities()
Get report of capabilities for the render window.
int GetDepthBufferSize()
Get the size of the depth buffer.
virtual int GetEventPending()
Check to see if an event is pending for this window.
virtual void SetSize(int a[2])
Set the size of the window in pixels.
virtual void SetDisplayId(void *)
Dummy stubs for vtkWindow API.
void SetCocoaServer(void *server)
void SetCocoaManager(void *manager)
Accessors for the cocoa manager (Really an NSMutableDictionary*).
virtual void Frame()
Finish the rendering process.
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
void Finalize()
Clean up device contexts, rendering contexts, etc.
virtual void MakeCurrent()
Make this windows OpenGL context the current context.
virtual void StereoUpdate()
Update system if needed due to stereo rendering.
virtual void WindowRemap()
Remap the window.
virtual void ShowCursor()
virtual void * GetGenericContext()
virtual void * GetGenericDisplayId()
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...
virtual void SetFullScreen(int)
Change the window to fill the entire screen.
void SetPixelFormat(void *pixelFormat)
Accessors for the pixel format object (Really an NSOpenGLPixelFormat*).
virtual void SetPosition(int a[2])
Set the position of the window.
virtual int * GetSize()
Get the current size of the window in pixels.
void SetNextWindowInfo(char *)
virtual void * GetGenericParentId()
virtual void SetCursorPosition(int x, int y)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetNextWindowId(void *)
virtual void * GetWindowId()
Returns the NSView* associated with this vtkRenderWindow.
virtual bool IsCurrent()
Tells if this window is the current OpenGL context for the calling thread.
int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
virtual int * GetPosition()
Get the position in screen coordinates of the window.
void DestroyWindow()
Destroy a not-off-screen window.
virtual void SetupPixelFormat(void *hDC, void *dwFlags, int debug, int bpp=16, int zbpp=16)
virtual int GetViewCreated()
Get the ViewCreated flag.
virtual bool IsDrawable()
Test if the window has a valid drawable.
virtual void SetWindowInfo(char *)
Set this RenderWindow's window id to a pre-existing window.
virtual bool InitializeFromCurrentContext()
Initialize the render window from the information associated with the currently activated OpenGL cont...
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
virtual void SetWindowName(const char *)
Set the name of the window.
virtual void * GetRootWindow()
Returns the NSWindow* associated with this vtkRenderWindow.
void CreateAWindow()
Create a not-off-screen window.
virtual void SetParentInfo(char *)
See the documenation for SetParentId().
virtual void SetWindowId(void *)
Sets the NSView* associated with this vtkRenderWindow.
virtual int GetWindowCreated()
Get the WindowCreated flag.
static vtkCocoaRenderWindow * New()
virtual void Initialize()
Initialize the window for rendering.
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
void SetContextId(void *)
Accessors for the OpenGL context (Really an NSOpenGLContext*).
int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
virtual void SetPosition(int, int)
void DestroyOffScreenWindow()
virtual void SetParentId(void *nsview)
Set the NSView* for the vtkRenderWindow to be parented within.
void UpdateContext()
Update this window's OpenGL context, e.g.
virtual void PrefFullScreen()
Set the preferred window size to full screen.
virtual void Start()
Begin the rendering process.
virtual void SetupPalette(void *hDC)
Initialize OpenGL for this window.
virtual void WindowConfigure()
Specify various window parameters.
a simple class to control print indentation