Go to the documentation of this file.
25 #ifndef vtkXOpenGLRenderWindow_h
26 #define vtkXOpenGLRenderWindow_h
28 #include "vtkRenderingOpenGL2Module.h"
32 #include <X11/Xutil.h>
35 class vtkXOpenGLRenderWindowInternal;
145 return this->GetDisplayId();
151 return reinterpret_cast<void *
>(this->ParentId);
157 return reinterpret_cast<void *
>(this->WindowId);
173 Display *GetDisplayId();
180 void SetDisplayId(Display *);
181 void SetDisplayId(
void *) override;
187 Window GetParentId();
193 void SetParentId(Window);
194 void SetParentId(
void *) override;
200 Window GetWindowId();
206 void SetWindowId(Window);
207 void SetWindowId(
void *) override;
213 void SetNextWindowId(Window);
220 void SetNextWindowId(
void *) override;
225 void SetWindowName(const
char *) override;
231 bool InitializeFromCurrentContext() override;
236 bool GetPlatformSupportsRenderWindowSharing()
override {
return true; };
std::stack< void * > ContextStack
void DestroyWindow() override
Destroy a not-off-screen window.
void SetCurrentCursor(int) override
Change the shape of the cursor.
virtual Colormap GetDesiredColormap()
Get the X properties of an ideal rendering window.
void * GetGenericWindowId() override
void Render() override
This computes the size of the render window before calling the supper classes render.
virtual int GetDesiredDepth()
virtual void WindowInitialize()
Initialize the window for rendering.
virtual Visual * GetDesiredVisual()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetWindowInfo(const char *info) override
Set this RenderWindow's X window id to a pre-existing window.
void DestroyOffScreenWindow()
std::stack< Drawable > DrawableStack
void SetNextWindowInfo(const char *info) override
Set the window info that will be used after WindowRemap()
int * GetScreenSize() override
Get the current size of the screen in pixels.
void SetForceMakeCurrent() override
If called, allow MakeCurrent() to skip cache-check when called.
int IsDirect() override
Is this render window using hardware acceleration? 0-false, 1-true.
void Finalize() override
"Deinitialize" the rendering window.
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
bool IsCurrent() override
Tells if this window is the current OpenGL context for the calling thread.
void PopContext() override
#define VTK_SIZEHINT(...)
void CreateAWindow() override
Create a not-off-screen window.
void Start() override
Begin the rendering process.
void SetStereoCapableWindow(vtkTypeBool capable) override
Prescribe that the window be created in a stereo-capable mode.
void ShowCursor() override
a simple class to control print indentation
void ResizeOffScreenWindow(int width, int height)
void Initialize() override
Initialize the rendering window.
void CreateOffScreenWindow(int width, int height)
void SetOffScreenRendering(vtkTypeBool i) override
Render without displaying the window.
virtual XVisualInfo * GetDesiredVisualInfo()
list of point or cell ids
virtual void PrefFullScreen()
Set the preferred window size to full screen.
static vtkXOpenGLRenderWindow * New()
void * GetGenericContext() override
void SetParentInfo(const char *info) override
Sets the X window id of the window that WILL BE created.
void * GetGenericDisplayId() override
Xwindow get set functions.
void * GetGenericDrawable() override
std::stack< Display * > DisplayStack
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...
void SetPosition(int, int) override
Move the window to a new position on the display.
void WindowRemap() override
Resize the window.
void Frame() override
End the rendering process and display the image.
const char * ReportCapabilities() override
Get report of capabilities for the render window.
void SetSize(int a[2]) override
Set the size of the window in screen coordinates in pixels.
void MakeCurrent() override
Make this window the current OpenGL context.
vtkXOpenGLRenderWindowInternal * Internal
void SetPosition(int a[2]) override
void * GetGenericParentId() override
void PushContext() override
Ability to push and pop this window's context as the current context.
~vtkXOpenGLRenderWindow() override
bool SetSwapControl(int i) override
Set the number of vertical syncs required between frames.
int GetEventPending() override
Check to see if a mouse button has been pressed or mouse wheel activated.
void SetSize(int, int) override
Specify the size of the rendering window in pixels.