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