43 #ifndef vtkCocoaRenderWindow_h
44 #define vtkCocoaRenderWindow_h
46 #include "vtkRenderingOpenGL2Module.h"
140 vtkWarningMacro(
"SetNextWindowInfo not implemented (WindowRemap not implemented).");
144 vtkWarningMacro(
"Method not implemented.");
149 vtkWarningMacro(
"Method not implemented.");
153 vtkWarningMacro(
"Method not implemented.");
173 vtkWarningMacro(
"SetNextWindowId not implemented (WindowRemap not implemented).");
247 int bpp=16,
int zbpp=16);
376 int OffScreenInitialized;
377 int OnScreenInitialized;
408 int ForceMakeCurrent;
Cocoa OpenGL rendering window.
virtual void SetRootWindow(void *)
Sets the NSWindow* associated with this vtkRenderWindow.
std::stack< void * > ContextStack
virtual void SetStereoCapableWindow(int capable)
Prescribe that the window be created in a stereo-capable mode.
virtual void SetSize(int, int)
virtual void * GetGenericWindowId()
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.
const char * ReportCapabilities()
Get report of capabilities for the render window.
void SetCocoaServer(void *server)
void SetCocoaManager(void *manager)
Accessors for the cocoa manager (Really an NSMutableDictionary*).
virtual void Frame()
Finish the rendering process.
void Finalize()
Clean up device contexts, rendering contexts, etc.
virtual void MakeCurrent()
Make this windows OpenGL context the current context.
virtual void * GetGenericDisplayId()
virtual void * GetGenericDrawable()
virtual void StereoUpdate()
Update system if needed due to stereo rendering.
virtual void WindowRemap()
Remap the window.
virtual void ShowCursor()
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.
void SetNextWindowInfo(char *)
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.
virtual void * GetGenericParentId()
static vtkCocoaRenderWindow * New()
void SetNextWindowId(void *)
virtual void PopContext()
virtual bool IsCurrent()
Tells if this window is the current OpenGL context for the calling thread.
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 * GetPosition()
Get the position in screen coordinates of the window.
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 int * GetSize()
Get the current size of the window in pixels.
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.
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 void * GetGenericContext()
virtual int GetWindowCreated()
Get the WindowCreated flag.
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
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*).
virtual void * GetParentId()
Get the parent NSView* for this vtkRenderWindow.
virtual void * GetRootWindow()
Returns the NSWindow* associated with this vtkRenderWindow.
int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
virtual void SetPosition(int, int)
virtual void * GetWindowId()
Returns the NSView* associated with this vtkRenderWindow.
void DestroyOffScreenWindow()
virtual void PushContext()
Ability to push and pop this window's context as the current context.
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