|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   42 #ifndef vtkCocoaRenderWindow_h 
   43 #define vtkCocoaRenderWindow_h 
   46 #include "vtkRenderingOpenGL2Module.h"  
   59   void Start() 
override;
 
   64   void Frame() 
override;
 
   69   virtual void WindowConfigure();
 
   98   virtual void PrefFullScreen();
 
  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).");
 
  226   void UpdateContext();
 
  255   virtual void SetupPalette(
void* hDC);
 
  256   virtual void SetupPixelFormat(
void* hDC, 
void* dwFlags, 
int debug, 
int bpp = 16, 
int zbpp = 16);
 
  297   void SetContextId(
void*);
 
  298   void* GetContextId();
 
  312   virtual void SetRootWindow(
void*);
 
  317   virtual void* GetRootWindow();
 
  334   virtual void* GetWindowId();
 
  350   virtual void* GetParentId();
 
  363   void SetWantsBestResolution(
bool wantsBest);
 
  364   bool GetWantsBestResolution();
 
  372   void SetConnectContextToNSView(
bool connect);
 
  373   bool GetConnectContextToNSView();
 
  379   void SetPixelFormat(
void* pixelFormat);
 
  380   void* GetPixelFormat();
 
  401   void CreateGLContext();
 
  412   void SetCocoaManager(
void* manager);
 
  413   void* GetCocoaManager();
 
  416   void SetCocoaServer(
void* server); 
 
  417   void* GetCocoaServer();
 
  438   bool WantsBestResolution;
 
  439   bool ConnectContextToNSView;
 
  
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
std::stack< void * > ContextStack
void SetWindowInfo(const char *) override
virtual int * GetSize()
Get the size (width and height) of the rendering window in screen coordinates (in pixels).
void SetWindowId(void *) override
void * GetGenericDrawable() override
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
virtual void WindowRemap()
Remap the rendering window.
virtual void PopContext()
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
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...
#define VTK_SIZEHINT(...)
virtual void Finalize()
Finalize the rendering process.
void * GetGenericDisplayId() override
void * GetGenericContext() override
bool InitializeFromCurrentContext() override
Initialize the render window from the information associated with the currently activated OpenGL cont...
void MakeCurrent() override
Attempt to make this window the current graphics context for the calling thread.
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
virtual vtkTypeBool GetEventPending()
Check to see if a mouse button has been pressed.
a simple class to control print indentation
void SetNextWindowId(void *) override
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
void SetParentInfo(const char *) override
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
virtual void SetStereoCapableWindow(vtkTypeBool capable)
vtkTypeBool OnScreenInitialized
void SetParentId(void *) override
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.
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).
virtual void SetCursorPosition(int, int)
void * GetGenericParentId() override
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
virtual bool IsDrawable()
Test if the window has a valid drawable.
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
void * GetGenericWindowId() override
void Start(void) override
Begin the rendering process.
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on,...
virtual void PushContext()
Ability to push and pop this window's context as the current context.
virtual void Initialize(void)
Initialize the rendering window.
virtual void CreateAWindow()=0
Create a not-off-screen window.