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 =========================================================================*/
150 #ifndef vtkRenderWindow_h
151 #define vtkRenderWindow_h
152 
153 #include "vtkDeprecation.h" // for VTK_DEPRECATED_IN_9_0_0
154 #include "vtkNew.h" // For vtkNew
155 #include "vtkRenderingCoreModule.h" // For export macro
156 #include "vtkSmartPointer.h" // For vtkSmartPointer
157 #include "vtkWindow.h"
158 
159 class vtkFloatArray;
160 class vtkProp;
161 class vtkCollection;
162 class vtkRenderTimerLog;
164 class vtkRenderer;
166 class vtkStereoCompositor;
168 
169 // lets define the different types of stereo
170 #define VTK_STEREO_CRYSTAL_EYES 1
171 #define VTK_STEREO_RED_BLUE 2
172 #define VTK_STEREO_INTERLACED 3
173 #define VTK_STEREO_LEFT 4
174 #define VTK_STEREO_RIGHT 5
175 #define VTK_STEREO_DRESDEN 6
176 #define VTK_STEREO_ANAGLYPH 7
177 #define VTK_STEREO_CHECKERBOARD 8
178 #define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL 9
179 #define VTK_STEREO_FAKE 10
180 #define VTK_STEREO_EMULATE 11
181 
182 #define VTK_CURSOR_DEFAULT 0
183 #define VTK_CURSOR_ARROW 1
184 #define VTK_CURSOR_SIZENE 2
185 #define VTK_CURSOR_SIZENW 3
186 #define VTK_CURSOR_SIZESW 4
187 #define VTK_CURSOR_SIZESE 5
188 #define VTK_CURSOR_SIZENS 6
189 #define VTK_CURSOR_SIZEWE 7
190 #define VTK_CURSOR_SIZEALL 8
191 #define VTK_CURSOR_HAND 9
192 #define VTK_CURSOR_CROSSHAIR 10
193 #define VTK_CURSOR_CUSTOM 11
194 
195 class VTKRENDERINGCORE_EXPORT vtkRenderWindow : public vtkWindow
196 {
197 public:
198  vtkTypeMacro(vtkRenderWindow, vtkWindow);
199  void PrintSelf(ostream& os, vtkIndent indent) override;
200 
206  static vtkRenderWindow* New();
207 
211  virtual void AddRenderer(vtkRenderer*);
212 
217 
222 
226  static const char* GetRenderLibrary();
227 
231  virtual const char* GetRenderingBackend();
232 
237 
241  vtkRendererCollection* GetRenderers() { return this->Renderers; }
242 
251 
253 
256  vtkGetMacro(CapturingGL2PSSpecialProps, int);
258 
263  void Render() override;
264 
268  virtual void Start() {}
269 
273  virtual void End(){};
274 
278  virtual void Finalize() {}
279 
284  virtual void Frame() {}
285 
290  virtual void WaitForCompletion() {}
291 
296  virtual void CopyResultFrame();
297 
304 
306 
312  virtual void HideCursor() {}
313  virtual void ShowCursor() {}
314  virtual void SetCursorPosition(int, int) {}
316 
318 
321  vtkSetMacro(CurrentCursor, int);
322  vtkGetMacro(CurrentCursor, int);
324 
326 
330  vtkSetFilePathMacro(CursorFileName);
331  vtkGetFilePathMacro(CursorFileName);
333 
335 
338  virtual void SetFullScreen(vtkTypeBool) {}
339  vtkGetMacro(FullScreen, vtkTypeBool);
340  vtkBooleanMacro(FullScreen, vtkTypeBool);
342 
344 
349  vtkSetMacro(Borders, vtkTypeBool);
350  vtkGetMacro(Borders, vtkTypeBool);
351  vtkBooleanMacro(Borders, vtkTypeBool);
353 
355 
359  vtkGetMacro(StereoCapableWindow, vtkTypeBool);
360  vtkBooleanMacro(StereoCapableWindow, vtkTypeBool);
361  virtual void SetStereoCapableWindow(vtkTypeBool capable);
363 
365 
368  vtkGetMacro(StereoRender, vtkTypeBool);
370  vtkBooleanMacro(StereoRender, vtkTypeBool);
372 
374 
377  vtkSetMacro(AlphaBitPlanes, vtkTypeBool);
378  vtkGetMacro(AlphaBitPlanes, vtkTypeBool);
379  vtkBooleanMacro(AlphaBitPlanes, vtkTypeBool);
381 
383 
387  vtkSetMacro(PointSmoothing, vtkTypeBool);
388  vtkGetMacro(PointSmoothing, vtkTypeBool);
389  vtkBooleanMacro(PointSmoothing, vtkTypeBool);
391 
393 
397  vtkSetMacro(LineSmoothing, vtkTypeBool);
398  vtkGetMacro(LineSmoothing, vtkTypeBool);
399  vtkBooleanMacro(LineSmoothing, vtkTypeBool);
401 
403 
407  vtkSetMacro(PolygonSmoothing, vtkTypeBool);
408  vtkGetMacro(PolygonSmoothing, vtkTypeBool);
409  vtkBooleanMacro(PolygonSmoothing, vtkTypeBool);
411 
413 
434  vtkGetMacro(StereoType, int);
435  void SetStereoType(int);
436  void SetStereoTypeToCrystalEyes() { this->SetStereoType(VTK_STEREO_CRYSTAL_EYES); }
437  void SetStereoTypeToRedBlue() { this->SetStereoType(VTK_STEREO_RED_BLUE); }
438  void SetStereoTypeToInterlaced() { this->SetStereoType(VTK_STEREO_INTERLACED); }
439  void SetStereoTypeToLeft() { this->SetStereoType(VTK_STEREO_LEFT); }
440  void SetStereoTypeToRight() { this->SetStereoType(VTK_STEREO_RIGHT); }
441  void SetStereoTypeToDresden() { this->SetStereoType(VTK_STEREO_DRESDEN); }
442  void SetStereoTypeToAnaglyph() { this->SetStereoType(VTK_STEREO_ANAGLYPH); }
443  void SetStereoTypeToCheckerboard() { this->SetStereoType(VTK_STEREO_CHECKERBOARD); }
445  {
446  this->SetStereoType(VTK_STEREO_SPLITVIEWPORT_HORIZONTAL);
447  }
448  void SetStereoTypeToFake() { this->SetStereoType(VTK_STEREO_FAKE); }
449  void SetStereoTypeToEmulate() { this->SetStereoType(VTK_STEREO_EMULATE); }
451 
453 
456  const char* GetStereoTypeAsString();
457  static const char* GetStereoTypeAsString(int type);
459 
464  virtual void StereoUpdate();
465 
470  virtual void StereoMidpoint();
471 
476  virtual void StereoRenderComplete();
477 
479 
486  vtkSetClampMacro(AnaglyphColorSaturation, float, 0.0f, 1.0f);
487  vtkGetMacro(AnaglyphColorSaturation, float);
489 
491 
505  vtkSetVector2Macro(AnaglyphColorMask, int);
506  vtkGetVectorMacro(AnaglyphColorMask, int, 2);
508 
514  virtual void WindowRemap() {}
515 
517 
520  vtkSetMacro(SwapBuffers, vtkTypeBool);
521  vtkGetMacro(SwapBuffers, vtkTypeBool);
522  vtkBooleanMacro(SwapBuffers, vtkTypeBool);
524 
526 
538  virtual int SetPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, unsigned char* /*data*/,
539  int /*front*/, int /*right*/ = 0)
540  {
541  return 0;
542  }
543  virtual int SetPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
544  vtkUnsignedCharArray* /*data*/, int /*front*/, int /*right*/ = 0)
545  {
546  return 0;
547  }
549 
551 
558  virtual float* GetRGBAPixelData(
559  int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/, int /*right*/ = 0)
560  {
561  return nullptr;
562  }
563  virtual int GetRGBAPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/,
564  vtkFloatArray* /*data*/, int /*right*/ = 0)
565  {
566  return 0;
567  }
568  virtual int SetRGBAPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float*, int /*front*/,
569  int /*blend*/ = 0, int /*right*/ = 0)
570  {
571  return 0;
572  }
573  virtual int SetRGBAPixelData(
574  int, int, int, int, vtkFloatArray*, int, int /*blend*/ = 0, int /*right*/ = 0)
575  {
576  return 0;
577  }
578  virtual void ReleaseRGBAPixelData(float* /*data*/) {}
579  virtual unsigned char* GetRGBACharPixelData(
580  int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/, int /*right*/ = 0)
581  {
582  return nullptr;
583  }
584  virtual int GetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/,
585  vtkUnsignedCharArray* /*data*/, int /*right*/ = 0)
586  {
587  return 0;
588  }
589  virtual int SetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
590  unsigned char* /*data*/, int /*front*/, int /*blend*/ = 0, int /*right*/ = 0)
591  {
592  return 0;
593  }
594  virtual int SetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
595  vtkUnsignedCharArray* /*data*/, int /*front*/, int /*blend*/ = 0, int /*right*/ = 0)
596  {
597  return 0;
598  }
600 
602 
607  virtual float* GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/) { return nullptr; }
608  virtual int GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float* /*z*/)
609  {
610  return 0;
611  }
612  virtual int GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, vtkFloatArray* /*z*/)
613  {
614  return 0;
615  }
616  virtual int SetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float* /*z*/)
617  {
618  return 0;
619  }
620  virtual int SetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, vtkFloatArray* /*z*/)
621  {
622  return 0;
623  }
624  float GetZbufferDataAtPoint(int x, int y)
625  {
626  float value;
627  this->GetZbufferData(x, y, x, y, &value);
628  return value;
629  }
631 
633 
636  vtkGetMacro(NeverRendered, int);
638 
640 
644  vtkGetMacro(AbortRender, int);
645  vtkSetMacro(AbortRender, int);
646  vtkGetMacro(InAbortCheck, int);
647  vtkSetMacro(InAbortCheck, int);
648  virtual int CheckAbortStatus();
650 
652 
655  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
656  vtkTypeBool GetIsPicking();
657  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
658  void SetIsPicking(vtkTypeBool);
659  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
660  void IsPickingOn();
661  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
662  void IsPickingOff();
664 
671  virtual vtkTypeBool GetEventPending() { return 0; }
672 
676  virtual int CheckInRenderStatus() { return this->InRender; }
677 
681  virtual void ClearInRenderStatus() { this->InRender = 0; }
682 
684 
692  virtual void SetDesiredUpdateRate(double);
693  vtkGetMacro(DesiredUpdateRate, double);
695 
697 
703  vtkGetMacro(NumberOfLayers, int);
704  vtkSetClampMacro(NumberOfLayers, int, 1, VTK_INT_MAX);
706 
708 
711  vtkGetObjectMacro(Interactor, vtkRenderWindowInteractor);
713 
718 
723  void UnRegister(vtkObjectBase* o) override;
724 
726 
729  void SetDisplayId(void*) override {}
730  void SetWindowId(void*) override {}
731  virtual void SetNextWindowId(void*) {}
732  void SetParentId(void*) override {}
733  void* GetGenericDisplayId() override { return nullptr; }
734  void* GetGenericWindowId() override { return nullptr; }
735  void* GetGenericParentId() override { return nullptr; }
736  void* GetGenericContext() override { return nullptr; }
737  void* GetGenericDrawable() override { return nullptr; }
738  void SetWindowInfo(const char*) override {}
739  virtual void SetNextWindowInfo(const char*) {}
740  void SetParentInfo(const char*) override {}
742 
747  virtual bool InitializeFromCurrentContext() { return false; }
748 
750 
758  vtkGetObjectMacro(SharedRenderWindow, vtkRenderWindow);
759  virtual bool GetPlatformSupportsRenderWindowSharing() { return false; }
761 
766  virtual bool IsCurrent() { return false; }
767 
775  "Deprecated in 9.1 because no one knows what it's for and nothing uses it")
776  virtual bool IsDrawable();
777 
783  virtual void SetForceMakeCurrent() {}
784 
788  virtual const char* ReportCapabilities() { return "Not Implemented"; }
789 
793  virtual int SupportsOpenGL() { return 0; }
794 
798  virtual vtkTypeBool IsDirect() { return 0; }
799 
804  virtual int GetDepthBufferSize() { return 0; }
805 
810  virtual int GetColorBufferSizes(int* /*rgba*/) { return 0; }
811 
813 
817  virtual void SetMultiSamples(int);
818  vtkGetMacro(MultiSamples, int);
820 
822 
825  vtkSetMacro(StencilCapable, vtkTypeBool);
826  vtkGetMacro(StencilCapable, vtkTypeBool);
827  vtkBooleanMacro(StencilCapable, vtkTypeBool);
829 
831 
837  vtkSetMacro(DeviceIndex, int);
838  vtkGetMacro(DeviceIndex, int);
840 
844  virtual int GetNumberOfDevices() { return 0; }
845 
847 
851  vtkGetMacro(UseSRGBColorSpace, bool);
852  vtkSetMacro(UseSRGBColorSpace, bool);
853  vtkBooleanMacro(UseSRGBColorSpace, bool);
855 
856 protected:
858  ~vtkRenderWindow() override;
859 
860  virtual void DoStereoRender();
861 
866  int OldScreen[5];
881  int InRender;
886  int AnaglyphColorMask[2];
891 
894 
899 
901 
902 private:
903  vtkRenderWindow(const vtkRenderWindow&) = delete;
904  void operator=(const vtkRenderWindow&) = delete;
905 
906  vtkNew<vtkStereoCompositor> StereoCompositor;
907 };
908 
909 #endif
create and manipulate ordered lists of objects
Definition: vtkCollection.h:53
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObjectBase.h:70
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:67
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:173
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