VTK  9.1.0
vtkRenderWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderWindow.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
41 #ifndef vtkRenderWindow_h
42 #define vtkRenderWindow_h
43 
44 #include "vtkDeprecation.h" // for VTK_DEPRECATED_IN_9_0_0
45 #include "vtkNew.h" // For vtkNew
46 #include "vtkRenderingCoreModule.h" // For export macro
47 #include "vtkSmartPointer.h" // For vtkSmartPointer
48 #include "vtkWindow.h"
49 
50 class vtkFloatArray;
51 class vtkProp;
52 class vtkCollection;
53 class vtkRenderTimerLog;
55 class vtkRenderer;
59 
60 // lets define the different types of stereo
61 #define VTK_STEREO_CRYSTAL_EYES 1
62 #define VTK_STEREO_RED_BLUE 2
63 #define VTK_STEREO_INTERLACED 3
64 #define VTK_STEREO_LEFT 4
65 #define VTK_STEREO_RIGHT 5
66 #define VTK_STEREO_DRESDEN 6
67 #define VTK_STEREO_ANAGLYPH 7
68 #define VTK_STEREO_CHECKERBOARD 8
69 #define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL 9
70 #define VTK_STEREO_FAKE 10
71 #define VTK_STEREO_EMULATE 11
72 
73 #define VTK_CURSOR_DEFAULT 0
74 #define VTK_CURSOR_ARROW 1
75 #define VTK_CURSOR_SIZENE 2
76 #define VTK_CURSOR_SIZENW 3
77 #define VTK_CURSOR_SIZESW 4
78 #define VTK_CURSOR_SIZESE 5
79 #define VTK_CURSOR_SIZENS 6
80 #define VTK_CURSOR_SIZEWE 7
81 #define VTK_CURSOR_SIZEALL 8
82 #define VTK_CURSOR_HAND 9
83 #define VTK_CURSOR_CROSSHAIR 10
84 #define VTK_CURSOR_CUSTOM 11
85 
86 class VTKRENDERINGCORE_EXPORT vtkRenderWindow : public vtkWindow
87 {
88 public:
89  vtkTypeMacro(vtkRenderWindow, vtkWindow);
90  void PrintSelf(ostream& os, vtkIndent indent) override;
91 
97  static vtkRenderWindow* New();
98 
102  virtual void AddRenderer(vtkRenderer*);
103 
108 
113 
117  static const char* GetRenderLibrary();
118 
122  virtual const char* GetRenderingBackend();
123 
128 
132  vtkRendererCollection* GetRenderers() { return this->Renderers; }
133 
142 
144 
147  vtkGetMacro(CapturingGL2PSSpecialProps, int);
149 
154  void Render() override;
155 
159  virtual void Start() {}
160 
164  virtual void End(){};
165 
169  virtual void Finalize() {}
170 
175  virtual void Frame() {}
176 
181  virtual void WaitForCompletion() {}
182 
187  virtual void CopyResultFrame();
188 
195 
197 
203  virtual void HideCursor() {}
204  virtual void ShowCursor() {}
205  virtual void SetCursorPosition(int, int) {}
207 
209 
212  vtkSetMacro(CurrentCursor, int);
213  vtkGetMacro(CurrentCursor, int);
215 
217 
221  vtkSetFilePathMacro(CursorFileName);
222  vtkGetFilePathMacro(CursorFileName);
224 
226 
229  virtual void SetFullScreen(vtkTypeBool) {}
230  vtkGetMacro(FullScreen, vtkTypeBool);
231  vtkBooleanMacro(FullScreen, vtkTypeBool);
233 
235 
240  vtkSetMacro(Borders, vtkTypeBool);
241  vtkGetMacro(Borders, vtkTypeBool);
242  vtkBooleanMacro(Borders, vtkTypeBool);
244 
246 
250  vtkGetMacro(StereoCapableWindow, vtkTypeBool);
251  vtkBooleanMacro(StereoCapableWindow, vtkTypeBool);
252  virtual void SetStereoCapableWindow(vtkTypeBool capable);
254 
256 
259  vtkGetMacro(StereoRender, vtkTypeBool);
261  vtkBooleanMacro(StereoRender, vtkTypeBool);
263 
265 
268  vtkSetMacro(AlphaBitPlanes, vtkTypeBool);
269  vtkGetMacro(AlphaBitPlanes, vtkTypeBool);
270  vtkBooleanMacro(AlphaBitPlanes, vtkTypeBool);
272 
274 
278  vtkSetMacro(PointSmoothing, vtkTypeBool);
279  vtkGetMacro(PointSmoothing, vtkTypeBool);
280  vtkBooleanMacro(PointSmoothing, vtkTypeBool);
282 
284 
288  vtkSetMacro(LineSmoothing, vtkTypeBool);
289  vtkGetMacro(LineSmoothing, vtkTypeBool);
290  vtkBooleanMacro(LineSmoothing, vtkTypeBool);
292 
294 
298  vtkSetMacro(PolygonSmoothing, vtkTypeBool);
299  vtkGetMacro(PolygonSmoothing, vtkTypeBool);
300  vtkBooleanMacro(PolygonSmoothing, vtkTypeBool);
302 
304 
325  vtkGetMacro(StereoType, int);
326  void SetStereoType(int);
327  void SetStereoTypeToCrystalEyes() { this->SetStereoType(VTK_STEREO_CRYSTAL_EYES); }
328  void SetStereoTypeToRedBlue() { this->SetStereoType(VTK_STEREO_RED_BLUE); }
329  void SetStereoTypeToInterlaced() { this->SetStereoType(VTK_STEREO_INTERLACED); }
330  void SetStereoTypeToLeft() { this->SetStereoType(VTK_STEREO_LEFT); }
331  void SetStereoTypeToRight() { this->SetStereoType(VTK_STEREO_RIGHT); }
332  void SetStereoTypeToDresden() { this->SetStereoType(VTK_STEREO_DRESDEN); }
333  void SetStereoTypeToAnaglyph() { this->SetStereoType(VTK_STEREO_ANAGLYPH); }
334  void SetStereoTypeToCheckerboard() { this->SetStereoType(VTK_STEREO_CHECKERBOARD); }
336  {
337  this->SetStereoType(VTK_STEREO_SPLITVIEWPORT_HORIZONTAL);
338  }
339  void SetStereoTypeToFake() { this->SetStereoType(VTK_STEREO_FAKE); }
340  void SetStereoTypeToEmulate() { this->SetStereoType(VTK_STEREO_EMULATE); }
342 
344 
347  const char* GetStereoTypeAsString();
348  static const char* GetStereoTypeAsString(int type);
350 
355  virtual void StereoUpdate();
356 
361  virtual void StereoMidpoint();
362 
367  virtual void StereoRenderComplete();
368 
370 
377  vtkSetClampMacro(AnaglyphColorSaturation, float, 0.0f, 1.0f);
378  vtkGetMacro(AnaglyphColorSaturation, float);
380 
382 
396  vtkSetVector2Macro(AnaglyphColorMask, int);
397  vtkGetVectorMacro(AnaglyphColorMask, int, 2);
399 
405  virtual void WindowRemap() {}
406 
408 
411  vtkSetMacro(SwapBuffers, vtkTypeBool);
412  vtkGetMacro(SwapBuffers, vtkTypeBool);
413  vtkBooleanMacro(SwapBuffers, vtkTypeBool);
415 
417 
429  virtual int SetPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, unsigned char* /*data*/,
430  int /*front*/, int /*right*/ = 0)
431  {
432  return 0;
433  }
434  virtual int SetPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
435  vtkUnsignedCharArray* /*data*/, int /*front*/, int /*right*/ = 0)
436  {
437  return 0;
438  }
440 
442 
449  virtual float* GetRGBAPixelData(
450  int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/, int /*right*/ = 0)
451  {
452  return nullptr;
453  }
454  virtual int GetRGBAPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/,
455  vtkFloatArray* /*data*/, int /*right*/ = 0)
456  {
457  return 0;
458  }
459  virtual int SetRGBAPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float*, int /*front*/,
460  int /*blend*/ = 0, int /*right*/ = 0)
461  {
462  return 0;
463  }
464  virtual int SetRGBAPixelData(
465  int, int, int, int, vtkFloatArray*, int, int /*blend*/ = 0, int /*right*/ = 0)
466  {
467  return 0;
468  }
469  virtual void ReleaseRGBAPixelData(float* /*data*/) {}
470  virtual unsigned char* GetRGBACharPixelData(
471  int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/, int /*right*/ = 0)
472  {
473  return nullptr;
474  }
475  virtual int GetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/,
476  vtkUnsignedCharArray* /*data*/, int /*right*/ = 0)
477  {
478  return 0;
479  }
480  virtual int SetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
481  unsigned char* /*data*/, int /*front*/, int /*blend*/ = 0, int /*right*/ = 0)
482  {
483  return 0;
484  }
485  virtual int SetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
486  vtkUnsignedCharArray* /*data*/, int /*front*/, int /*blend*/ = 0, int /*right*/ = 0)
487  {
488  return 0;
489  }
491 
493 
498  virtual float* GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/) { return nullptr; }
499  virtual int GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float* /*z*/)
500  {
501  return 0;
502  }
503  virtual int GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, vtkFloatArray* /*z*/)
504  {
505  return 0;
506  }
507  virtual int SetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float* /*z*/)
508  {
509  return 0;
510  }
511  virtual int SetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, vtkFloatArray* /*z*/)
512  {
513  return 0;
514  }
515  float GetZbufferDataAtPoint(int x, int y)
516  {
517  float value;
518  this->GetZbufferData(x, y, x, y, &value);
519  return value;
520  }
522 
524 
527  vtkGetMacro(NeverRendered, int);
529 
531 
535  vtkGetMacro(AbortRender, int);
536  vtkSetMacro(AbortRender, int);
537  vtkGetMacro(InAbortCheck, int);
538  vtkSetMacro(InAbortCheck, int);
539  virtual int CheckAbortStatus();
541 
543 
546  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
547  vtkTypeBool GetIsPicking();
548  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
549  void SetIsPicking(vtkTypeBool);
550  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
551  void IsPickingOn();
552  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
553  void IsPickingOff();
555 
562  virtual vtkTypeBool GetEventPending() { return 0; }
563 
567  virtual int CheckInRenderStatus() { return this->InRender; }
568 
572  virtual void ClearInRenderStatus() { this->InRender = 0; }
573 
575 
583  virtual void SetDesiredUpdateRate(double);
584  vtkGetMacro(DesiredUpdateRate, double);
586 
588 
594  vtkGetMacro(NumberOfLayers, int);
595  vtkSetClampMacro(NumberOfLayers, int, 1, VTK_INT_MAX);
597 
599 
602  vtkGetObjectMacro(Interactor, vtkRenderWindowInteractor);
604 
609 
614  void UnRegister(vtkObjectBase* o) override;
615 
617 
620  void SetDisplayId(void*) override {}
621  void SetWindowId(void*) override {}
622  virtual void SetNextWindowId(void*) {}
623  void SetParentId(void*) override {}
624  void* GetGenericDisplayId() override { return nullptr; }
625  void* GetGenericWindowId() override { return nullptr; }
626  void* GetGenericParentId() override { return nullptr; }
627  void* GetGenericContext() override { return nullptr; }
628  void* GetGenericDrawable() override { return nullptr; }
629  void SetWindowInfo(const char*) override {}
630  virtual void SetNextWindowInfo(const char*) {}
631  void SetParentInfo(const char*) override {}
633 
638  virtual bool InitializeFromCurrentContext() { return false; }
639 
641 
649  vtkGetObjectMacro(SharedRenderWindow, vtkRenderWindow);
650  virtual bool GetPlatformSupportsRenderWindowSharing() { return false; }
652 
657  virtual bool IsCurrent() { return false; }
658 
666  "Deprecated in 9.1 because no one knows what it's for and nothing uses it")
667  virtual bool IsDrawable();
668 
674  virtual void SetForceMakeCurrent() {}
675 
679  virtual const char* ReportCapabilities() { return "Not Implemented"; }
680 
684  virtual int SupportsOpenGL() { return 0; }
685 
689  virtual vtkTypeBool IsDirect() { return 0; }
690 
695  virtual int GetDepthBufferSize() { return 0; }
696 
701  virtual int GetColorBufferSizes(int* /*rgba*/) { return 0; }
702 
704 
708  virtual void SetMultiSamples(int);
709  vtkGetMacro(MultiSamples, int);
711 
713 
716  vtkSetMacro(StencilCapable, vtkTypeBool);
717  vtkGetMacro(StencilCapable, vtkTypeBool);
718  vtkBooleanMacro(StencilCapable, vtkTypeBool);
720 
722 
728  vtkSetMacro(DeviceIndex, int);
729  vtkGetMacro(DeviceIndex, int);
731 
735  virtual int GetNumberOfDevices() { return 0; }
736 
738 
742  vtkGetMacro(UseSRGBColorSpace, bool);
743  vtkSetMacro(UseSRGBColorSpace, bool);
744  vtkBooleanMacro(UseSRGBColorSpace, bool);
746 
747 protected:
749  ~vtkRenderWindow() override;
750 
751  virtual void DoStereoRender();
752 
757  int OldScreen[5];
772  int InRender;
777  int AnaglyphColorMask[2];
782 
785 
790 
792 
793 private:
794  vtkRenderWindow(const vtkRenderWindow&) = delete;
795  void operator=(const vtkRenderWindow&) = delete;
796 
797  vtkNew<vtkStereoCompositor> StereoCompositor;
798 };
799 
800 #endif
create and manipulate ordered lists of objects
Definition: vtkCollection.h:53
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:36
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract base class for most VTK objects
Definition: vtkObjectBase.h:70
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
Asynchronously measures GPU execution times for a series of events.
platform-independent render window interaction including picking and frame rate control.
create a window for renderers to draw into
void SetStereoTypeToDresden()
Set/Get what type of stereo rendering to use.
virtual void SetDesiredUpdateRate(double)
Set/Get the desired update rate.
virtual void ReleaseRGBAPixelData(float *)
Same as Get/SetPixelData except that the image also contains an alpha component.
virtual int GetZbufferData(int, int, int, int, float *)
Set/Get the zbuffer data from the frame buffer.
void SetStereoType(int)
Set/Get what type of stereo rendering to use.
static const char * GetRenderLibrary()
What rendering library has the user requested.
virtual int SetRGBACharPixelData(int, int, int, int, unsigned char *, int, int=0, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
virtual int SetZbufferData(int, int, int, int, float *)
Set/Get the zbuffer data from the frame buffer.
vtkRendererCollection * GetRenderers()
Return the collection of renderers in the render window.
void SetStereoTypeToRedBlue()
Set/Get what type of stereo rendering to use.
virtual float * GetRGBAPixelData(int, int, int, int, int, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
vtkNew< vtkRenderTimerLog > RenderTimer
void SetParentInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual void Finalize()
Finalize the rendering process.
const char * GetStereoTypeAsString()
Returns the stereo type as a string.
vtkGetFilePathMacro(CursorFileName)
Set/Get the full path to the custom cursor.
virtual bool GetPlatformSupportsRenderWindowSharing()
Set/Get an already existing window that this window should share data with if possible.
double AbortCheckTime
The universal time since the last abort check occurred.
virtual int SetRGBAPixelData(int, int, int, int, float *, int, int=0, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
virtual int SetPixelData(int, int, int, int, unsigned char *, int, int=0)
Set/Get the pixel data of an image, transmitted as RGBRGBRGB.
virtual void AddRenderer(vtkRenderer *)
Add a renderer to the list of renderers.
void * GetGenericDisplayId() override
Dummy stubs for vtkWindow API.
virtual void Frame()
A termination method performed at the end of the rendering process to do things like swapping buffers...
vtkTypeBool LineSmoothing
vtkRenderWindowInteractor * Interactor
void SetStereoTypeToFake()
Set/Get what type of stereo rendering to use.
virtual int GetZbufferData(int, int, int, int, vtkFloatArray *)
Set/Get the zbuffer data from the frame buffer.
float AnaglyphColorSaturation
vtkTypeBool FullScreen
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...
void SetStereoTypeToInterlaced()
Set/Get what type of stereo rendering to use.
void CaptureGL2PSSpecialProps(vtkCollection *specialProps)
The GL2PS exporter must handle certain props in a special way (e.g.
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
virtual int GetRGBACharPixelData(int, int, int, int, int, vtkUnsignedCharArray *, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
virtual unsigned char * GetRGBACharPixelData(int, int, int, int, int, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
float GetZbufferDataAtPoint(int x, int y)
Set/Get the zbuffer data from the frame buffer.
virtual void WaitForCompletion()
Block the thread until the actual rendering is finished().
virtual void StereoRenderComplete()
Handles work required once both views have been rendered when using stereo rendering.
virtual void SetStereoCapableWindow(vtkTypeBool capable)
Prescribe that the window be created in a stereo-capable mode.
virtual int SetPixelData(int, int, int, int, vtkUnsignedCharArray *, int, int=0)
Set/Get the pixel data of an image, transmitted as RGBRGBRGB.
vtkTypeBool PolygonSmoothing
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on,...
~vtkRenderWindow() override
virtual int GetDepthBufferSize()
This method should be defined by the subclass.
void SetStereoRender(vtkTypeBool stereo)
Turn on/off stereo rendering.
void SetStereoTypeToLeft()
Set/Get what type of stereo rendering to use.
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
virtual void SetNextWindowId(void *)
Dummy stubs for vtkWindow API.
virtual bool InitializeFromCurrentContext()
Initialize the render window from the information associated with the currently activated OpenGL cont...
void SetWindowInfo(const char *) override
Dummy stubs for vtkWindow API.
void * GetGenericContext() override
Dummy stubs for vtkWindow API.
virtual void DoStereoRender()
virtual int GetRGBAPixelData(int, int, int, int, int, vtkFloatArray *, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
virtual void SetNextWindowInfo(const char *)
Dummy stubs for vtkWindow API.
virtual void ClearInRenderStatus()
Clear status (after an exception was thrown for example)
virtual vtkRenderWindowInteractor * MakeRenderWindowInteractor()
Create an interactor to control renderers in this window.
void Render() override
Ask each renderer owned by this RenderWindow to render its image and synchronize this process.
vtkSmartPointer< vtkUnsignedCharArray > ResultFrame
void SetParentId(void *) override
Dummy stubs for vtkWindow API.
virtual void SetInteractor(vtkRenderWindowInteractor *)
Set the interactor to the render window.
virtual void End()
Update the system, if needed, at end of render process.
virtual int CheckAbortStatus()
This is a flag that can be set to interrupt a rendering that is in progress.
void SetWindowId(void *) override
Dummy stubs for vtkWindow API.
void SetStereoTypeToCheckerboard()
Set/Get what type of stereo rendering to use.
static const char * GetStereoTypeAsString(int type)
Returns the stereo type as a string.
void UnRegister(vtkObjectBase *o) override
This Method detects loops of RenderWindow<->Interactor, so objects are freed properly.
virtual float * GetZbufferData(int, int, int, int)
Set/Get the zbuffer data from the frame buffer.
virtual int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
vtkTypeBool AlphaBitPlanes
vtkRenderWindow * SharedRenderWindow
virtual void StereoUpdate()
Update the system, if needed, due to stereo rendering.
virtual void SetMultiSamples(int)
Set / Get the number of multisamples to use for hardware antialiasing.
virtual void Start()
Start the rendering process for a frame.
void SetStereoTypeToAnaglyph()
Set/Get what type of stereo rendering to use.
virtual void CopyResultFrame()
Performed at the end of the rendering process to generate image.
void * GetGenericParentId() override
Dummy stubs for vtkWindow API.
virtual int SetRGBACharPixelData(int, int, int, int, vtkUnsignedCharArray *, int, int=0, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
vtkRendererCollection * Renderers
virtual int SetRGBAPixelData(int, int, int, int, vtkFloatArray *, int, int=0, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
vtkTypeBool StencilCapable
virtual void WindowRemap()
Remap the rendering window.
void RemoveRenderer(vtkRenderer *)
Remove a renderer from the list of renderers.
virtual int SetZbufferData(int, int, int, int, vtkFloatArray *)
Set/Get the zbuffer data from the frame buffer.
vtkTypeBool StereoRender
virtual int GetColorBufferSizes(int *)
Get the size of the color buffer.
vtkGetNewMacro(RenderTimer, vtkRenderTimerLog)
Get the render timer log for this window.
virtual void SetSharedRenderWindow(vtkRenderWindow *)
Set/Get an already existing window that this window should share data with if possible.
vtkTypeBool PointSmoothing
vtkTypeBool StereoCapableWindow
virtual void SetCursorPosition(int, int)
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void StereoMidpoint()
Intermediate method performs operations required between the rendering of the left and right eye.
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
void SetStereoTypeToEmulate()
Set/Get what type of stereo rendering to use.
virtual const char * ReportCapabilities()
Get report of capabilities for the render window.
vtkSetFilePathMacro(CursorFileName)
Set/Get the full path to the custom cursor.
void SetStereoTypeToSplitViewportHorizontal()
Set/Get what type of stereo rendering to use.
int HasRenderer(vtkRenderer *)
Query if a renderer is in the list of renderers.
virtual int GetNumberOfDevices()
Returns the number of devices (graphics cards) on a system.
virtual void ShowCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
vtkSmartPointer< vtkUnsignedCharArray > StereoBuffer
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
void SetStereoTypeToCrystalEyes()
Set/Get what type of stereo rendering to use.
vtkTypeBool SwapBuffers
void SetStereoTypeToRight()
Set/Get what type of stereo rendering to use.
virtual int CheckInRenderStatus()
Are we rendering at the moment.
vtkTypeBool Borders
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
virtual const char * GetRenderingBackend()
What rendering backend has the user requested.
an ordered list of renderers
abstract specification for renderers
Definition: vtkRenderer.h:64
helper class to generate composited stereo images.
dynamic, self-adjusting array of unsigned char
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
@ value
Definition: vtkX3D.h:226
@ type
Definition: vtkX3D.h:522
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_DEPRECATED_IN_9_1_0(reason)
#define VTK_DEPRECATED_IN_9_0_0(reason)
#define VTK_STEREO_ANAGLYPH
#define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL
#define VTK_STEREO_DRESDEN
#define VTK_STEREO_CHECKERBOARD
#define VTK_STEREO_CRYSTAL_EYES
#define VTK_STEREO_RIGHT
#define VTK_STEREO_FAKE
#define VTK_STEREO_RED_BLUE
#define VTK_STEREO_INTERLACED
#define VTK_STEREO_EMULATE
#define VTK_STEREO_LEFT
#define VTK_INT_MAX
Definition: vtkType.h:155