Go to the documentation of this file.
42 #ifndef vtkCocoaRenderWindow_h
43 #define vtkCocoaRenderWindow_h
45 #include "vtkRenderingOpenGL2Module.h"
59 void Start()
override;
64 void Frame()
override;
69 virtual void WindowConfigure();
98 virtual void PrefFullScreen();
104 void SetSize(
int a[2])
override;
105 void SetSize(
int,
int)
override;
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).");
215 void UpdateContext();
244 virtual void SetupPalette(
void *hDC);
245 virtual void SetupPixelFormat(
void *hDC,
void *dwFlags,
int debug,
246 int bpp=16,
int zbpp=16);
275 virtual int GetViewCreated();
281 virtual int GetWindowCreated();
287 void SetContextId(
void *);
288 void *GetContextId();
302 virtual void SetRootWindow(
void *);
307 virtual void *GetRootWindow();
324 virtual void *GetWindowId();
340 virtual void *GetParentId();
353 void SetWantsBestResolution(
bool wantsBest);
354 bool GetWantsBestResolution();
360 void SetPixelFormat(
void *pixelFormat);
361 void *GetPixelFormat();
382 void CreateGLContext();
386 void DestroyOffScreenWindow();
396 void SetCocoaManager(
void *manager);
397 void *GetCocoaManager();
400 void SetCocoaServer(
void *server);
401 void *GetCocoaServer();
420 int ForceMakeCurrent;
422 bool WantsBestResolution;
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetSize(int a[2]) override
Set the size of the window in screen coordinates in pixels.
virtual void Start()=0
Initialize the rendering process.
virtual void ShowCursor()=0
virtual int * GetSize()
Set/Get the size of the window in screen coordinates in pixels.
virtual void HideCursor()=0
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 Finalize()=0
Finalize the rendering process.
virtual void SetFullScreen(vtkTypeBool)=0
Turn on/off rendering full screen window size.
virtual bool IsCurrent()=0
Tells if this window is the current graphics context for the calling thread.
void * GetGenericDrawable() override
void SetWindowId(void *) override=0
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
virtual void WindowRemap()=0
Remap the rendering window.
virtual void PopContext()
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
void SetParentId(void *) override=0
#define VTK_SIZEHINT(...)
void * GetGenericDisplayId() override
void * GetGenericContext() override
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 SetWindowInfo(const char *) override=0
void SetNextWindowId(void *) override
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
void MakeCurrent() override=0
Attempt to make this window the current graphics context for the calling thread.
virtual void SetStereoCapableWindow(vtkTypeBool capable)
bool GetPlatformSupportsRenderWindowSharing() override
Does this platform support render window data sharing.
Cocoa OpenGL rendering window.
const char * ReportCapabilities() override
Get report of capabilities for the render window.
virtual void SetCursorPosition(int, int)
void * GetGenericParentId() override
std::stack< void * > ContextStack
virtual bool IsDrawable()
Test if the window has a valid drawable.
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
void * GetGenericWindowId() override
virtual int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
virtual void Frame()=0
A termination method performed at the end of the rendering process to do things like swapping buffers...
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 int GetEventPending()=0
Check to see if a mouse button has been pressed.
virtual void Initialize(void)
Initialize the rendering window.
virtual void CreateAWindow()=0
Create a not-off-screen window.
void SetParentInfo(const char *) override=0