16 #ifndef vtkXOpenGLRenderWindow_h
17 #define vtkXOpenGLRenderWindow_h
20 #include "vtkRenderingOpenGL2Module.h"
22 #include "vtkX11Functions.h"
25 VTK_ABI_NAMESPACE_BEGIN
27 class vtkXOpenGLRenderWindowInternal;
40 void Start()
override;
45 void Frame()
override;
50 virtual void WindowInitialize();
83 virtual void PrefFullScreen();
104 virtual Colormap GetDesiredColormap();
105 virtual Visual* GetDesiredVisual();
106 virtual vtkXVisualInfo* GetDesiredVisualInfo();
107 virtual int GetDesiredDepth();
167 void* GetGenericFBConfig();
185 Display* GetDisplayId();
190 bool EnsureDisplay() override;
198 void SetDisplayId(Display*);
200 void SetDisplayId(
void*) override;
207 Window GetParentId();
214 void SetParentId(Window);
216 void SetParentId(
void*) override;
223 Window GetWindowId();
230 void SetWindowId(Window);
232 void SetWindowId(
void*) override;
238 void SetNextWindowId(Window);
245 void SetNextWindowId(
void*) override;
250 void SetWindowName(const
char*) override;
262 bool InitializeFromCurrentContext() override;
267 bool GetPlatformSupportsRenderWindowSharing()
override {
return true; }
392 VTK_ABI_NAMESPACE_END
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
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...
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.
void Render() override
Handle opengl specific code and calls superclass.
void * GetGenericParentId() override
Dummy stubs for vtkWindow API.
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
void SetWindowInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual void SetPosition(int x, int y)
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
virtual void Finalize()
Finalize the rendering process.
virtual void SetShowWindow(bool)
Show or not Show the window.
std::stack< Display * > DisplayStack
virtual void SetStereoCapableWindow(vtkTypeBool capable)
Prescribe that the window be created in a stereo-capable mode.
virtual void SetNextWindowInfo(const char *)
Dummy stubs for vtkWindow API.
static vtkOpenGLRenderWindow * New()
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.
virtual void SetCoverable(vtkTypeBool coverable)
Set/Get whether windows should be coverable (as opposed to always on top).
void Start() override
Begin the rendering process.
topologically and geometrically regular array of data
list of point or cell ids
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.
void Initialize() override
Initialize the rendering window.
std::stack< Drawable > DrawableStack
vtkTypeBool UsingHardware
virtual void MakeCurrent()
Make the window current.
virtual void PushContext()
Ability to push and pop this window's context as the current context.
#define VTK_SIZEHINT(...)
const char * ReportCapabilities() override
Get report of capabilities for the render window.
#define VTK_MARSHALEXCLUDE(reason)
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.
virtual void ReleaseCurrent()
Release the current context.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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...
#define VTK_MARSHAL_EXCLUDE_REASON_NOT_SUPPORTED
void SetParentInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
virtual void CreateAWindow()=0
Create a not-off-screen window.
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
void * GetGenericDisplayId() override
Xwindow get set functions.
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.