30#ifndef vtkIOSRenderWindow_h
31#define vtkIOSRenderWindow_h
34#include "vtkRenderingOpenGL2Module.h"
36VTK_ABI_NAMESPACE_BEGIN
92 void SetSize(
int width,
int height)
override;
108 void SetPosition(
int x,
int y) override;
109 void SetPosition(
int a[2])
override { this->
SetPosition(a[0], a[1]); }
128 void SetWindowName(const
char*) override;
130 void SetNextWindowInfo(const
char*)
override
132 vtkWarningMacro(
"SetNextWindowInfo not implemented (WindowRemap not implemented).");
136 vtkWarningMacro(
"Method not implemented.");
139 void SetDisplayId(
void*)
override { vtkWarningMacro(
"Method not implemented."); }
142 vtkWarningMacro(
"Method not implemented.");
162 vtkWarningMacro(
"SetNextWindowId not implemented (WindowRemap not implemented).");
227 virtual void SetupPixelFormat(
void* hDC,
void* dwFlags,
int debug,
int bpp = 16,
int zbpp = 16);
349 const vtkRecti& rect,
int front,
int glFormat,
int glType,
void* data,
int right = 0)
override;
IOS OpenGL rendering window.
void SetPixelFormat(void *pixelFormat)
Accessors for the pixel format object (Really an NSOpenGLPixelFormat*).
void SetNextWindowId(void *) override
Dummy stubs for vtkWindow API.
void Frame() override
Finish the rendering process.
void ShowCursor() override
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void CreateAWindow() override
Create a not-off-screen window.
~vtkIOSRenderWindow() override
virtual void PrefFullScreen()
Set the preferred window size to full screen.
void SetSize(int a[2]) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
void DestroyWindow() override
Destroy a not-off-screen window.
virtual void SetRootWindow(void *)
Sets the NSWindow* associated with this vtkRenderWindow.
void BlitDisplayFramebuffersToHardware() override
void SetContextId(void *)
Accessors for the OpenGL context (Really an NSOpenGLContext*).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void * GetContextId()
Accessors for the OpenGL context (Really an NSOpenGLContext*).
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
void SetParentId(void *UIView) override
Set the UIView* for the vtkRenderWindow to be parented within.
vtkTypeBool IsDirect() override
Is this render window using hardware acceleration? 0-false, 1-true.
int * GetSize() override
Get the size (width and height) of the rendering window in screen coordinates (in pixels).
vtkTypeBool OnScreenInitialized
void SetForceMakeCurrent() override
If called, allow MakeCurrent() to skip cache-check when called.
void SetCursorPosition(int x, int y) override
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void Initialize() override
Initialize the window for rendering.
void DestroyOffScreenWindow()
void Finalize() override
Clean up device contexts, rendering contexts, etc.
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...
virtual void SetupPixelFormat(void *hDC, void *dwFlags, int debug, int bpp=16, int zbpp=16)
Initialize OpenGL for this window.
static vtkIOSRenderWindow * New()
void * GetGenericDrawable() override
These are window system independent methods that are used to help interface vtkWindow to native windo...
int SupportsOpenGL() override
Does this render window support OpenGL? 0-false, 1-true.
bool IsCurrent() override
Tells if this window is the current OpenGL context for the calling thread.
vtkTypeBool GetEventPending() override
Check to see if an event is pending for this window.
void SetStereoCapableWindow(vtkTypeBool capable) override
Prescribe that the window be created in a stereo-capable mode.
void WindowRemap() override
Remap the window.
virtual int GetWindowCreated()
Get the WindowCreated flag.
void * GetPixelFormat()
Accessors for the pixel format object (Really an NSOpenGLPixelFormat*).
void * GetGenericWindowId() override
These are window system independent methods that are used to help interface vtkWindow to native windo...
void * GetGenericDisplayId() override
These are window system independent methods that are used to help interface vtkWindow to native windo...
void * GetGenericContext() override
Accessors for the OpenGL context (Really an NSOpenGLContext*).
void MakeCurrent() override
Make this windows OpenGL context the current context.
void UpdateContext()
Update this window's OpenGL context, e.g.
void SetPosition(int a[2]) override
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
bool InitializeFromCurrentContext() override
Initialize the render window from the information associated with the currently activated OpenGL cont...
const char * ReportCapabilities() override
Get report of capabilities for the render window.
int GetDepthBufferSize() override
Get the size of the depth buffer.
void SetCurrentCursor(int) override
Change the shape of the cursor.
int * GetScreenSize() override
Get the current size of the screen in pixels.
virtual void * GetRootWindow()
Returns the NSWindow* associated with this vtkRenderWindow.
virtual void * GetParentId()
Get the parent UIView* for this vtkRenderWindow.
vtkTypeBool OffScreenInitialized
void SetWindowInfo(const char *) override
Set this RenderWindow's window id to a pre-existing window.
void SetParentInfo(const char *) override
See the documentation for SetParentId().
void SetSize(int width, int height) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
void SetWindowId(void *) override
Sets the UIView* associated with this vtkRenderWindow.
virtual void * GetWindowId()
Returns the UIView* associated with this vtkRenderWindow.
void * GetGenericParentId() override
These are window system independent methods that are used to help interface vtkWindow to native windo...
virtual void SetupPalette(void *hDC)
Initialize OpenGL for this window.
int ReadPixels(const vtkRecti &rect, int front, int glFormat, int glType, void *data, int right=0) override
virtual void WindowConfigure()
Specify various window parameters.
void SetDisplayId(void *) override
These are window system independent methods that are used to help interface vtkWindow to native windo...
a simple class to control print indentation
#define VTK_SIZEHINT(...)