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