 |
VTK
9.0.1
|
Go to the documentation of this file.
25 #ifndef vtkXOpenGLRenderWindow_h
26 #define vtkXOpenGLRenderWindow_h
29 #include "vtkRenderingOpenGL2Module.h"
31 #include <X11/Xutil.h>
35 class vtkXOpenGLRenderWindowInternal;
180 Display* GetDisplayId();
187 void SetDisplayId(Display*);
188 void SetDisplayId(
void*) override;
194 Window GetParentId();
200 void SetParentId(Window);
201 void SetParentId(
void*) override;
207 Window GetWindowId();
213 void SetWindowId(Window);
214 void SetWindowId(
void*) override;
220 void SetNextWindowId(Window);
227 void SetNextWindowId(
void*) override;
232 void SetWindowName(const
char*) override;
238 bool InitializeFromCurrentContext() override;
243 bool GetPlatformSupportsRenderWindowSharing()
override {
return true; }
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.
std::stack< Display * > DisplayStack
void SetWindowInfo(const char *info) override
Set this RenderWindow's X window id to a pre-existing window.
void SetSizeNoXResize(int, int)
Specify the size of the rendering window in pixels but do not resize the XWindow.
void SetShowWindow(bool val) override
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.
vtkTypeBool IsDirect() override
Is this render window using hardware acceleration? 0-false, 1-true.
void SetPosition(int x, int y) override
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
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 SetSize(int width, int height) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
void PopContext() override
#define VTK_SIZEHINT(...)
vtkTypeBool ForceMakeCurrent
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 Initialize() override
Initialize the rendering window.
vtkTypeBool GetEventPending() override
Check to see if a mouse button has been pressed or mouse wheel activated.
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< void * > ContextStack
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 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
void MakeCurrent() override
Make this window the current OpenGL context.
vtkTypeBool UsingHardware
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.