25 #ifndef vtkXOpenGLRenderWindow_h 26 #define vtkXOpenGLRenderWindow_h 28 #include "vtkRenderingOpenGL2Module.h" 32 #include <X11/Xutil.h> 35 class vtkXOpenGLRenderWindowInternal;
47 void Start() VTK_OVERRIDE;
52 void Frame() VTK_OVERRIDE;
57 virtual
void WindowInitialize();
65 void Initialize() VTK_OVERRIDE;
72 void Finalize() VTK_OVERRIDE;
77 virtual
void SetFullScreen(
int) VTK_OVERRIDE;
82 void WindowRemap() VTK_OVERRIDE;
87 virtual
void PrefFullScreen();
92 void SetSize(
int,
int) VTK_OVERRIDE;
93 void SetSize(
int a[2]) VTK_OVERRIDE { this->
SetSize(a[0], a[1]); }
99 virtual Colormap GetDesiredColormap();
100 virtual Visual *GetDesiredVisual();
101 virtual XVisualInfo *GetDesiredVisualInfo();
102 virtual int GetDesiredDepth();
121 bool IsCurrent() VTK_OVERRIDE;
128 void SetForceMakeCurrent() VTK_OVERRIDE;
133 const
char *ReportCapabilities() VTK_OVERRIDE;
138 int IsDirect() VTK_OVERRIDE;
143 void *GetGenericDisplayId() VTK_OVERRIDE
145 return this->GetDisplayId();
149 void *GetGenericParentId() VTK_OVERRIDE
151 return reinterpret_cast<void *
>(this->ParentId);
155 void *GetGenericDrawable() VTK_OVERRIDE
157 return reinterpret_cast<void *
>(this->WindowId);
168 int *GetPosition() VTK_OVERRIDE;
173 Display *GetDisplayId();
180 void SetDisplayId(Display *);
181 void SetDisplayId(
void *) VTK_OVERRIDE;
187 Window GetParentId();
193 void SetParentId(Window);
194 void SetParentId(
void *) VTK_OVERRIDE;
200 Window GetWindowId();
206 void SetWindowId(Window);
207 void SetWindowId(
void *) VTK_OVERRIDE;
213 void SetNextWindowId(Window);
220 void SetNextWindowId(
void *) VTK_OVERRIDE;
225 void SetWindowName(const
char *) VTK_OVERRIDE;
231 bool InitializeFromCurrentContext() VTK_OVERRIDE;
237 void SetPosition(
int,
int) VTK_OVERRIDE;
238 void SetPosition(
int a[2]) VTK_OVERRIDE { this->
SetPosition(a[0], a[1]); }
247 void ShowCursor() VTK_OVERRIDE;
253 void SetCurrentCursor(
int) VTK_OVERRIDE;
260 int GetEventPending() VTK_OVERRIDE;
265 void SetWindowInfo(
char *
info) VTK_OVERRIDE;
270 void SetNextWindowInfo(
char *
info) VTK_OVERRIDE;
275 void SetParentInfo(
char *
info) VTK_OVERRIDE;
281 void Render() VTK_OVERRIDE;
286 void SetOffScreenRendering(
int i) VTK_OVERRIDE;
296 void PushContext() VTK_OVERRIDE;
297 void PopContext() VTK_OVERRIDE;
304 vtkXOpenGLRenderWindowInternal *Internal;
315 int ForceMakeCurrent;
318 std::stack<Display *> DisplayStack;
319 std::stack<Drawable> DrawableStack;
320 std::stack<
void *> ContextStack;
335 void CreateAWindow() VTK_OVERRIDE;
336 void DestroyWindow() VTK_OVERRIDE;
337 void CreateOffScreenWindow(
int width,
int height);
338 void DestroyOffScreenWindow();
339 void ResizeOffScreenWindow(
int width,
int height);
virtual void HideCursor()=0
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on...
virtual int * GetScreenSize()=0
Get the current size of the screen in pixels.
void * GetGenericContext() override=0
Dummy stubs for vtkWindow API.
virtual void SetStereoCapableWindow(int capable)
Prescribe that the window be created in a stereo-capable mode.
void SetSize(int a[2]) override
Set the size of the window in screen coordinates in pixels.
a simple class to control print indentation
list of point or cell ids
void SetPosition(int a[2]) override
Move the window to a new position on the display.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Start()=0
Initialize the rendering process.
void * GetGenericWindowId() override=0
Dummy stubs for vtkWindow API.
void MakeCurrent() override=0
Attempt to make this window the current graphics context for the calling thread.