Go to the documentation of this file.
42 #ifndef vtkCocoaRenderWindow_h
43 #define vtkCocoaRenderWindow_h
45 #include "vtkRenderingOpenGL2Module.h"
117 void SetPosition(
int a[2]) override;
118 void SetPosition(
int,
int) override;
135 void SetWindowName(const
char *) override;
137 void SetNextWindowInfo(const
char *)
override
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).");
246 int bpp=16,
int zbpp=16);
420 int ForceMakeCurrent;
422 bool WantsBestResolution;
void SetForceMakeCurrent() override
If called, allow MakeCurrent() to skip cache-check when called.
void SetCocoaManager(void *manager)
Accessors for the cocoa manager (Really an NSMutableDictionary*).
~vtkCocoaRenderWindow() override
void SetSize(int, int) override
void CreateAWindow() override
Create a not-off-screen window.
virtual void * GetWindowId()
Returns the NSView* associated with this vtkRenderWindow.
virtual int GetViewCreated()
Get the ViewCreated flag.
void SetPixelFormat(void *pixelFormat)
Accessors for the pixel format object (Really an NSOpenGLPixelFormat*).
void Start() override
Begin the rendering process.
int GetEventPending() override
Check to see if an event is pending for this window.
const char * ReportCapabilities() override
Get report of capabilities for the render window.
virtual int GetWindowCreated()
Get the WindowCreated flag.
int * GetSize() override
Get the current size of the window in pixels.
bool IsDrawable() override
Test if the window has a valid drawable.
void SetWindowId(void *) override
Sets the NSView* associated with this vtkRenderWindow.
void SetCocoaServer(void *server)
void Finalize() override
Clean up device contexts, rendering contexts, etc.
void SetCursorPosition(int x, int y) override
void * GetGenericDrawable() override
virtual void SetupPixelFormat(void *hDC, void *dwFlags, int debug, int bpp=16, int zbpp=16)
void SetCurrentCursor(int) override
Change the shape of the cursor.
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
void ShowCursor() override
void MakeCurrent() override
Make this windows OpenGL context the current context.
void PushContext() override
Ability to push and pop this window's context as the current context.
#define VTK_SIZEHINT(...)
static vtkCocoaRenderWindow * New()
void * GetGenericDisplayId() override
void * GetGenericContext() override
void SetContextId(void *)
Accessors for the OpenGL context (Really an NSOpenGLContext*).
void Initialize() override
Initialize the window for rendering.
void DestroyOffScreenWindow()
bool InitializeFromCurrentContext() override
Initialize the render window from the information associated with the currently activated OpenGL cont...
a simple class to control print indentation
void UpdateContext()
Update this window's OpenGL context, e.g.
void SetNextWindowId(void *) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void PopContext() override
void SetWantsBestResolution(bool wantsBest)
Set to true if you want to force NSViews created by this object to have their wantsBestResolutionOpen...
bool GetPlatformSupportsRenderWindowSharing() override
Does this platform support render window data sharing.
void SetSize(int a[2]) override
Set the size of the window in pixels.
Cocoa OpenGL rendering window.
void SetStereoCapableWindow(vtkTypeBool capable) override
Prescribe that the window be created in a stereo-capable mode.
void SetParentInfo(const char *) override
See the documentation for SetParentId().
virtual void SetRootWindow(void *)
Sets the NSWindow* associated with this vtkRenderWindow.
void * GetGenericParentId() override
virtual void SetupPalette(void *hDC)
Initialize OpenGL for this window.
std::stack< void * > ContextStack
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
int IsDirect() override
Is this render window using hardware acceleration? 0-false, 1-true.
void * GetGenericWindowId() override
void SetParentId(void *nsview) override
Set the NSView* for the vtkRenderWindow to be parented within.
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.
void Frame() override
Finish the rendering process.
virtual void * GetRootWindow()
Returns the NSWindow* associated with this vtkRenderWindow.
void SetWindowInfo(const char *) override
Set this RenderWindow's window id to a pre-existing window.
void WindowRemap() override
Remap the window.
void DestroyWindow() override
Destroy a not-off-screen window.
bool IsCurrent() override
Tells if this window is the current OpenGL context for the calling thread.
bool GetWantsBestResolution()
void HideCursor() override
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...