 |
VTK
9.0.1
|
Go to the documentation of this file.
42 #ifndef vtkCocoaRenderWindow_h
43 #define vtkCocoaRenderWindow_h
46 #include "vtkRenderingOpenGL2Module.h"
125 void SetPosition(
int x,
int y) override;
126 void SetPosition(
int a[2])
override { this->
SetPosition(a[0], a[1]); }
145 void SetWindowName(const
char*) override;
147 void SetNextWindowInfo(const
char*)
override
149 vtkDebugMacro(
"SetNextWindowInfo not implemented (WindowRemap not implemented).");
153 vtkDebugMacro(
"Method not implemented.");
159 vtkDebugMacro(
"Method not implemented.");
163 vtkDebugMacro(
"Method not implemented.");
183 vtkDebugMacro(
"SetNextWindowId not implemented (WindowRemap not implemented).");
256 virtual void SetupPixelFormat(
void* hDC,
void* dwFlags,
int debug,
int bpp = 16,
int zbpp = 16);
438 bool WantsBestResolution;
439 bool ConnectContextToNSView;
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*).
bool GetConnectContextToNSView()
~vtkCocoaRenderWindow() override
void CreateAWindow() override
Create a not-off-screen window.
virtual vtkTypeBool GetWindowCreated()
Get the WindowCreated flag.
std::stack< void * > ContextStack
virtual void * GetWindowId()
Returns the NSView* associated with this vtkRenderWindow.
void SetPixelFormat(void *pixelFormat)
Accessors for the pixel format object (Really an NSOpenGLPixelFormat*).
void Start() override
Begin the rendering process.
const char * ReportCapabilities() override
Get report of capabilities for the render window.
void SetSize(int width, int height) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
int * GetSize() override
Get the size (width and height) of the rendering window in screen coordinates (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)
vtkTypeBool GetEventPending() override
Check to see if an event is pending for this window.
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 SetConnectContextToNSView(bool connect)
Set to false if you want to prevent the NSOpenGLContext from being associated with the NSView.
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.
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
virtual vtkTypeBool GetViewCreated()
Get the ViewCreated flag.
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...
vtkTypeBool OnScreenInitialized
bool GetPlatformSupportsRenderWindowSharing() override
Does this platform support render window data sharing.
void SetPosition(int a[2]) override
void SetSize(int a[2]) override
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.
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
vtkTypeBool 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.
int * GetScreenSize() override
Get the current size of the screen in pixels.
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...