28 #ifndef vtkXOpenGLRenderWindow_h
29 #define vtkXOpenGLRenderWindow_h
32 #include "vtkRenderingOpenGL2Module.h"
37 class vtkXOpenGLRenderWindowInternal;
38 struct vtkXVisualInfo;
50 void Start()
override;
55 void Frame()
override;
60 virtual void WindowInitialize();
93 virtual void PrefFullScreen();
110 void SetSizeNoXResize(
int,
int);
116 virtual Colormap GetDesiredColormap();
117 virtual Visual* GetDesiredVisual();
118 virtual vtkXVisualInfo* GetDesiredVisualInfo();
119 virtual int GetDesiredDepth();
173 void* GetGenericFBConfig();
190 Display* GetDisplayId();
197 void SetDisplayId(Display*);
198 void SetDisplayId(
void*) override;
204 Window GetParentId();
210 void SetParentId(Window);
211 void SetParentId(
void*) override;
217 Window GetWindowId();
223 void SetWindowId(Window);
224 void SetWindowId(
void*) override;
230 void SetNextWindowId(Window);
237 void SetNextWindowId(
void*) override;
242 void SetWindowName(const
char*) override;
254 bool InitializeFromCurrentContext() override;
259 bool GetPlatformSupportsRenderWindowSharing()
override {
return true; }
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
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 Start(void) override
Begin the rendering process.
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 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.
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.
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 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.
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.
void SetParentInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual void Initialize(void)
Initialize the rendering window.
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.