28 #ifndef vtkXOpenGLRenderWindow_h
29 #define vtkXOpenGLRenderWindow_h
32 #include "vtkRenderingOpenGL2Module.h"
37 class vtkXOpenGLRenderWindowInternal;
38 struct vtkXVisualInfo;
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; }
list of point or cell ids
a simple class to control print indentation
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...
bool IsCurrent() override
Tells if this window is the current OpenGL context for the calling thread.
vtkTypeBool IsDirect() override
Is this render window using hardware acceleration? 0-false, 1-true.
void DestroyWindow() override
Destroy a not-off-screen window.
void PopContext() override
void SetForceMakeCurrent() override
If called, allow MakeCurrent() to skip cache-check when called.
virtual Colormap GetDesiredColormap()
Get the X properties of an ideal rendering window.
void ShowCursor() override
void Initialize() override
Initialize the rendering window.
void SetSize(int a[2]) override
void SetSize(int width, int height) override
Set the size (width and height) of the rendering window in screen coordinates (in pixels).
void CreateAWindow() override
Create a not-off-screen window.
void * GetGenericWindowId() override
void SetParentInfo(const char *info) override
Sets the X window id of the window that WILL BE created.
vtkTypeBool ForceMakeCurrent
void Start() override
Begin the rendering process.
bool SetSwapControl(int i) override
Set the number of vertical syncs required between frames.
void SetFullScreen(vtkTypeBool) override
Change the window to fill the entire screen.
virtual int GetDesiredDepth()
void MakeCurrent() override
Make this window the current OpenGL context.
vtkTypeBool GetEventPending() override
Check to see if a mouse button has been pressed or mouse wheel activated.
void SetWindowInfo(const char *info) override
Set this RenderWindow's X window id to a pre-existing window.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetCurrentCursor(int) override
Change the shape of the cursor.
void * GetGenericDrawable() override
void SetSizeNoXResize(int, int)
Specify the size of the rendering window in pixels but do not resize the XWindow.
virtual Visual * GetDesiredVisual()
int * GetScreenSize() override
Get the current size of the screen in pixels.
vtkXOpenGLRenderWindowInternal * Internal
const char * ReportCapabilities() override
Get report of capabilities for the render window.
void Finalize() override
"Deinitialize" the rendering window.
void * GetGenericParentId() override
void SetNextWindowInfo(const char *info) override
Set the window info that will be used after WindowRemap()
void Frame() override
End the rendering process and display the image.
std::stack< Drawable > DrawableStack
void * GetGenericContext() override
~vtkXOpenGLRenderWindow() override
virtual vtkXVisualInfo * GetDesiredVisualInfo()
static vtkXOpenGLRenderWindow * New()
virtual void PrefFullScreen()
Set the preferred window size to full screen.
void WindowRemap() override
Resize the window.
void SetStereoCapableWindow(vtkTypeBool capable) override
Prescribe that the window be created in a stereo-capable mode.
virtual void WindowInitialize()
Initialize the window for rendering.
void SetPosition(int a[2]) override
std::stack< void * > ContextStack
void Render() override
This computes the size of the render window before calling the supper classes render.
void SetPosition(int x, int y) override
Set the position (x and y) of the rendering window in screen coordinates (in pixels).
std::stack< Display * > DisplayStack
void SetShowWindow(bool val) override
void PushContext() override
Ability to push and pop this window's context as the current context.
void * GetGenericDisplayId() override
Xwindow get set functions.
vtkTypeBool UsingHardware
#define VTK_SIZEHINT(...)