16 #ifndef vtkXOpenGLRenderWindow_h
17 #define vtkXOpenGLRenderWindow_h
21 #include "vtkRenderingOpenGL2Module.h"
25 VTK_ABI_NAMESPACE_BEGIN
27 class vtkXOpenGLRenderWindowInternal;
28 struct vtkXVisualInfo;
40 void Start()
override;
45 void Frame()
override;
50 virtual void WindowInitialize();
83 virtual void PrefFullScreen();
105 void SetSizeNoXResize(
int,
int);
111 virtual Colormap GetDesiredColormap();
112 virtual Visual* GetDesiredVisual();
113 virtual vtkXVisualInfo* GetDesiredVisualInfo();
114 virtual
int GetDesiredDepth();
123 void SetStereoCapableWindow(
vtkTypeBool capable) override;
128 void MakeCurrent() override;
133 bool IsCurrent() override;
138 void ReleaseCurrent() override;
145 void SetForceMakeCurrent() override;
150 const
char* ReportCapabilities() override;
160 void* GetGenericDisplayId()
override {
return this->GetDisplayId(); }
168 void* GetGenericFBConfig();
185 Display* GetDisplayId();
192 void SetDisplayId(Display*);
193 void SetDisplayId(
void*) override;
199 Window GetParentId();
205 void SetParentId(Window);
206 void SetParentId(
void*) override;
212 Window GetWindowId();
218 void SetWindowId(Window);
219 void SetWindowId(
void*) override;
225 void SetNextWindowId(Window);
232 void SetNextWindowId(
void*) override;
237 void SetWindowName(const
char*) override;
249 bool InitializeFromCurrentContext() override;
254 bool GetPlatformSupportsRenderWindowSharing()
override {
return true; }
374 VTK_ABI_NAMESPACE_END
virtual void PopContext()
vtkTypeBool ForceMakeCurrent
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
vtkXOpenGLRenderWindowInternal * Internal
void * GetGenericContext() override
Dummy stubs for vtkWindow API.
virtual void WindowRemap()
Remap the rendering window.
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...
void Render() override
Handle opengl specific code and calls superclass.
void * GetGenericParentId() override
Dummy stubs for vtkWindow API.
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on...
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
void SetWindowInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
virtual void SetPosition(int x, int y)
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
virtual void Finalize()
Finalize the rendering process.
virtual void SetShowWindow(bool)
Show or not Show the window.
std::stack< Display * > DisplayStack
virtual void SetNextWindowInfo(const char *)
Dummy stubs for vtkWindow API.
#define VTK_DEPRECATED_IN_9_3_0(reason)
virtual void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels)...
void SetSize(int a[2]) override
Get the size (width and height) of the rendering window in screen coordinates (in pixels)...
std::stack< void * > ContextStack
a simple class to control print indentation
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
void Start() override
Begin the rendering process.
topologically and geometrically regular array of data
list of point or cell ids
virtual void ShowCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void SetPosition(int a[2]) override
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
std::stack< Drawable > DrawableStack
vtkTypeBool UsingHardware
virtual void Initialize()
Initialize the rendering window.
virtual void PushContext()
Ability to push and pop this window's context as the current context.
#define VTK_SIZEHINT(...)
virtual bool SetSwapControl(int)
Set the number of vertical syncs required between frames.
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
virtual vtkTypeBool GetEventPending()
Check to see if a mouse button has been pressed.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetParentInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual void CreateAWindow()=0
Create a not-off-screen window.
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.