 |
VTK
9.0.1
|
Go to the documentation of this file.
28 #ifndef vtkXOpenGLRenderWindow_h
29 #define vtkXOpenGLRenderWindow_h
32 #include "vtkRenderingOpenGL2Module.h"
34 #include <X11/Xutil.h>
38 class vtkXOpenGLRenderWindowInternal;
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 XVisualInfo* GetDesiredVisualInfo();
119 virtual int GetDesiredDepth();
183 Display* GetDisplayId();
190 void SetDisplayId(Display*);
191 void SetDisplayId(
void*) override;
197 Window GetParentId();
203 void SetParentId(Window);
204 void SetParentId(
void*) override;
210 Window GetWindowId();
216 void SetWindowId(Window);
217 void SetWindowId(
void*) override;
223 void SetNextWindowId(Window);
230 void SetNextWindowId(
void*) override;
235 void SetWindowName(const
char*) override;
241 bool InitializeFromCurrentContext() override;
246 bool GetPlatformSupportsRenderWindowSharing()
override {
return true; }
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 *) override
virtual bool SetSwapControl(int)
Set the number of vertical syncs required between frames.
virtual void SetPosition(int x, int y)
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
std::stack< Drawable > DrawableStack
virtual void SetNextWindowInfo(const char *)
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
virtual void WindowRemap()
Remap the rendering window.
virtual void PopContext()
virtual void ShowCursor()
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...
#define VTK_SIZEHINT(...)
virtual void Finalize()
Finalize the rendering process.
void Render() override
Handle opengl specific code and calls superclass.
vtkTypeBool ForceMakeCurrent
void MakeCurrent() override
Attempt to make this window the current graphics context for the calling thread.
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
virtual vtkTypeBool GetEventPending()
Check to see if a mouse button has been pressed.
a simple class to control print indentation
list of point or cell ids
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
void SetParentInfo(const char *) override
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
virtual void SetStereoCapableWindow(vtkTypeBool capable)
void * GetGenericDisplayId() override
Xwindow get set functions.
const char * ReportCapabilities() override
Get report of capabilities for the render window.
void SetSize(int width, int height) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
void * GetGenericDrawable() override
std::stack< void * > ContextStack
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
virtual void SetShowWindow(bool)
void SetSize(int a[2]) override
vtkTypeBool UsingHardware
vtkXOpenGLRenderWindowInternal * Internal
void * GetGenericContext() override
void Start(void) override
Begin the rendering process.
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
void * GetGenericWindowId() override
void SetPosition(int a[2]) override
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on,...
void * GetGenericParentId() override
virtual void PushContext()
Ability to push and pop this window's context as the current context.
virtual void Initialize(void)
Initialize the rendering window.
virtual void CreateAWindow()=0
Create a not-off-screen window.