25 #ifndef vtkXOpenGLRenderWindow_h 26 #define vtkXOpenGLRenderWindow_h 28 #include "vtkRenderingOpenGLModule.h" 31 #include <X11/Xutil.h> 34 class vtkXOpenGLRenderWindowInternal;
46 void Start() VTK_OVERRIDE;
51 void Frame() VTK_OVERRIDE;
56 virtual
void WindowInitialize();
64 virtual
void Initialize();
71 void Finalize() VTK_OVERRIDE;
76 void SetFullScreen(
int) VTK_OVERRIDE;
81 void WindowRemap() VTK_OVERRIDE;
86 virtual
void PrefFullScreen();
92 void SetSize(
int,
int) VTK_OVERRIDE;
93 void SetSize(
int a[2]) VTK_OVERRIDE { this->
SetSize(a[0], a[1]); }
100 virtual Colormap GetDesiredColormap();
101 virtual Visual *GetDesiredVisual();
102 virtual XVisualInfo *GetDesiredVisualInfo();
103 virtual int GetDesiredDepth();
122 bool IsCurrent() VTK_OVERRIDE;
129 void SetForceMakeCurrent() VTK_OVERRIDE;
134 const
char *ReportCapabilities() VTK_OVERRIDE;
139 int SupportsOpenGL() VTK_OVERRIDE;
144 int IsDirect() VTK_OVERRIDE;
149 void *GetGenericDisplayId() VTK_OVERRIDE
151 return this->GetDisplayId();
155 void *GetGenericParentId() VTK_OVERRIDE
157 return reinterpret_cast<void *
>(this->ParentId);
161 void *GetGenericDrawable() VTK_OVERRIDE
163 return reinterpret_cast<void *
>(this->WindowId);
174 int *GetPosition() VTK_OVERRIDE;
179 Display *GetDisplayId();
186 void SetDisplayId(Display *);
187 void SetDisplayId(
void *) VTK_OVERRIDE;
193 Window GetParentId();
199 void SetParentId(Window);
200 void SetParentId(
void *) VTK_OVERRIDE;
206 Window GetWindowId();
212 void SetWindowId(Window);
213 void SetWindowId(
void *) VTK_OVERRIDE;
219 void SetNextWindowId(Window);
226 void SetNextWindowId(
void *) VTK_OVERRIDE;
231 void SetWindowName(const
char *) VTK_OVERRIDE;
237 bool InitializeFromCurrentContext() VTK_OVERRIDE;
243 void SetPosition(
int,
int) VTK_OVERRIDE;
244 void SetPosition(
int a[2]) VTK_OVERRIDE { this->
SetPosition(a[0], a[1]); }
253 void ShowCursor() VTK_OVERRIDE;
259 void SetCurrentCursor(
int) VTK_OVERRIDE;
266 int GetEventPending() VTK_OVERRIDE;
271 void SetWindowInfo(
char *
info) VTK_OVERRIDE;
276 void SetNextWindowInfo(
char *
info) VTK_OVERRIDE;
281 void SetParentInfo(
char *
info) VTK_OVERRIDE;
287 void Render() VTK_OVERRIDE;
292 void SetOffScreenRendering(
int i) VTK_OVERRIDE;
298 vtkXOpenGLRenderWindowInternal *Internal;
309 int ForceMakeCurrent;
326 void CreateAWindow() VTK_OVERRIDE;
327 void DestroyWindow() VTK_OVERRIDE;
328 void CreateOffScreenWindow(
int width,
int height);
329 void DestroyOffScreenWindow();
330 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
Specify the size of the rendering window 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.