VTK  9.2.6
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 =========================================================================*/
159 #ifndef vtkRenderWindow_h
160 #define vtkRenderWindow_h
161 
162 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_1_0
163 #include "vtkEventData.h" // for enums
164 #include "vtkNew.h" // For vtkNew
165 #include "vtkRenderingCoreModule.h" // For export macro
166 #include "vtkSmartPointer.h" // For vtkSmartPointer
167 #include "vtkWindow.h"
168 
169 class vtkFloatArray;
170 class vtkProp;
171 class vtkCollection;
172 class vtkMatrix4x4;
173 class vtkRenderTimerLog;
175 class vtkRenderer;
177 class vtkStereoCompositor;
179 
180 // lets define the different types of stereo
181 #define VTK_STEREO_CRYSTAL_EYES 1
182 #define VTK_STEREO_RED_BLUE 2
183 #define VTK_STEREO_INTERLACED 3
184 #define VTK_STEREO_LEFT 4
185 #define VTK_STEREO_RIGHT 5
186 #define VTK_STEREO_DRESDEN 6
187 #define VTK_STEREO_ANAGLYPH 7
188 #define VTK_STEREO_CHECKERBOARD 8
189 #define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL 9
190 #define VTK_STEREO_FAKE 10
191 #define VTK_STEREO_EMULATE 11
192 
193 #define VTK_CURSOR_DEFAULT 0
194 #define VTK_CURSOR_ARROW 1
195 #define VTK_CURSOR_SIZENE 2
196 #define VTK_CURSOR_SIZENW 3
197 #define VTK_CURSOR_SIZESW 4
198 #define VTK_CURSOR_SIZESE 5
199 #define VTK_CURSOR_SIZENS 6
200 #define VTK_CURSOR_SIZEWE 7
201 #define VTK_CURSOR_SIZEALL 8
202 #define VTK_CURSOR_HAND 9
203 #define VTK_CURSOR_CROSSHAIR 10
204 #define VTK_CURSOR_CUSTOM 11
205 
206 class VTKRENDERINGCORE_EXPORT vtkRenderWindow : public vtkWindow
207 {
208 public:
209  vtkTypeMacro(vtkRenderWindow, vtkWindow);
210  void PrintSelf(ostream& os, vtkIndent indent) override;
211 
217  static vtkRenderWindow* New();
218 
222  virtual void AddRenderer(vtkRenderer*);
223 
228 
233 
237  static const char* GetRenderLibrary();
238 
242  virtual const char* GetRenderingBackend();
243 
248 
252  vtkRendererCollection* GetRenderers() { return this->Renderers; }
253 
262 
264 
267  vtkGetMacro(CapturingGL2PSSpecialProps, int);
269 
274  void Render() override;
275 
279  virtual void Start() {}
280 
284  virtual void End(){};
285 
289  virtual void Finalize() {}
290 
295  virtual void Frame() {}
296 
301  virtual void WaitForCompletion() {}
302 
307  virtual void CopyResultFrame();
308 
315 
317 
323  virtual void HideCursor() {}
324  virtual void ShowCursor() {}
325  virtual void SetCursorPosition(int, int) {}
327 
329 
332  vtkSetMacro(CurrentCursor, int);
333  vtkGetMacro(CurrentCursor, int);
335 
337 
341  vtkSetFilePathMacro(CursorFileName);
342  vtkGetFilePathMacro(CursorFileName);
344 
346 
349  virtual void SetFullScreen(vtkTypeBool) {}
350  vtkGetMacro(FullScreen, vtkTypeBool);
351  vtkBooleanMacro(FullScreen, vtkTypeBool);
353 
355 
360  vtkSetMacro(Borders, vtkTypeBool);
361  vtkGetMacro(Borders, vtkTypeBool);
362  vtkBooleanMacro(Borders, vtkTypeBool);
364 
366 
370  vtkGetMacro(StereoCapableWindow, vtkTypeBool);
371  vtkBooleanMacro(StereoCapableWindow, vtkTypeBool);
372  virtual void SetStereoCapableWindow(vtkTypeBool capable);
374 
376 
379  vtkGetMacro(StereoRender, vtkTypeBool);
381  vtkBooleanMacro(StereoRender, vtkTypeBool);
383 
385 
388  vtkSetMacro(AlphaBitPlanes, vtkTypeBool);
389  vtkGetMacro(AlphaBitPlanes, vtkTypeBool);
390  vtkBooleanMacro(AlphaBitPlanes, vtkTypeBool);
392 
394 
398  vtkSetMacro(PointSmoothing, vtkTypeBool);
399  vtkGetMacro(PointSmoothing, vtkTypeBool);
400  vtkBooleanMacro(PointSmoothing, vtkTypeBool);
402 
404 
408  vtkSetMacro(LineSmoothing, vtkTypeBool);
409  vtkGetMacro(LineSmoothing, vtkTypeBool);
410  vtkBooleanMacro(LineSmoothing, vtkTypeBool);
412 
414 
418  vtkSetMacro(PolygonSmoothing, vtkTypeBool);
419  vtkGetMacro(PolygonSmoothing, vtkTypeBool);
420  vtkBooleanMacro(PolygonSmoothing, vtkTypeBool);
422 
424 
445  vtkGetMacro(StereoType, int);
446  void SetStereoType(int);
447  void SetStereoTypeToCrystalEyes() { this->SetStereoType(VTK_STEREO_CRYSTAL_EYES); }
448  void SetStereoTypeToRedBlue() { this->SetStereoType(VTK_STEREO_RED_BLUE); }
449  void SetStereoTypeToInterlaced() { this->SetStereoType(VTK_STEREO_INTERLACED); }
450  void SetStereoTypeToLeft() { this->SetStereoType(VTK_STEREO_LEFT); }
451  void SetStereoTypeToRight() { this->SetStereoType(VTK_STEREO_RIGHT); }
452  void SetStereoTypeToDresden() { this->SetStereoType(VTK_STEREO_DRESDEN); }
453  void SetStereoTypeToAnaglyph() { this->SetStereoType(VTK_STEREO_ANAGLYPH); }
454  void SetStereoTypeToCheckerboard() { this->SetStereoType(VTK_STEREO_CHECKERBOARD); }
456  {
457  this->SetStereoType(VTK_STEREO_SPLITVIEWPORT_HORIZONTAL);
458  }
459  void SetStereoTypeToFake() { this->SetStereoType(VTK_STEREO_FAKE); }
460  void SetStereoTypeToEmulate() { this->SetStereoType(VTK_STEREO_EMULATE); }
462 
464 
467  const char* GetStereoTypeAsString();
468  static const char* GetStereoTypeAsString(int type);
470 
475  virtual void StereoUpdate();
476 
481  virtual void StereoMidpoint();
482 
487  virtual void StereoRenderComplete();
488 
490 
497  vtkSetClampMacro(AnaglyphColorSaturation, float, 0.0f, 1.0f);
498  vtkGetMacro(AnaglyphColorSaturation, float);
500 
502 
516  vtkSetVector2Macro(AnaglyphColorMask, int);
517  vtkGetVectorMacro(AnaglyphColorMask, int, 2);
519 
525  virtual void WindowRemap() {}
526 
528 
531  vtkSetMacro(SwapBuffers, vtkTypeBool);
532  vtkGetMacro(SwapBuffers, vtkTypeBool);
533  vtkBooleanMacro(SwapBuffers, vtkTypeBool);
535 
537 
549  virtual int SetPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, unsigned char* /*data*/,
550  int /*front*/, int /*right*/ = 0)
551  {
552  return 0;
553  }
554  virtual int SetPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
555  vtkUnsignedCharArray* /*data*/, int /*front*/, int /*right*/ = 0)
556  {
557  return 0;
558  }
560 
562 
569  virtual float* GetRGBAPixelData(
570  int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/, int /*right*/ = 0)
571  {
572  return nullptr;
573  }
574  virtual int GetRGBAPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/,
575  vtkFloatArray* /*data*/, int /*right*/ = 0)
576  {
577  return 0;
578  }
579  virtual int SetRGBAPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float*, int /*front*/,
580  int /*blend*/ = 0, int /*right*/ = 0)
581  {
582  return 0;
583  }
584  virtual int SetRGBAPixelData(
585  int, int, int, int, vtkFloatArray*, int, int /*blend*/ = 0, int /*right*/ = 0)
586  {
587  return 0;
588  }
589  virtual void ReleaseRGBAPixelData(float* /*data*/) {}
590  virtual unsigned char* GetRGBACharPixelData(
591  int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/, int /*right*/ = 0)
592  {
593  return nullptr;
594  }
595  virtual int GetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/,
596  vtkUnsignedCharArray* /*data*/, int /*right*/ = 0)
597  {
598  return 0;
599  }
600  virtual int SetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
601  unsigned char* /*data*/, int /*front*/, int /*blend*/ = 0, int /*right*/ = 0)
602  {
603  return 0;
604  }
605  virtual int SetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
606  vtkUnsignedCharArray* /*data*/, int /*front*/, int /*blend*/ = 0, int /*right*/ = 0)
607  {
608  return 0;
609  }
611 
613 
618  virtual float* GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/) { return nullptr; }
619  virtual int GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float* /*z*/)
620  {
621  return 0;
622  }
623  virtual int GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, vtkFloatArray* /*z*/)
624  {
625  return 0;
626  }
627  virtual int SetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float* /*z*/)
628  {
629  return 0;
630  }
631  virtual int SetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, vtkFloatArray* /*z*/)
632  {
633  return 0;
634  }
635  float GetZbufferDataAtPoint(int x, int y)
636  {
637  float value;
638  this->GetZbufferData(x, y, x, y, &value);
639  return value;
640  }
642 
644 
647  vtkGetMacro(NeverRendered, int);
649 
651 
655  vtkGetMacro(AbortRender, int);
656  vtkSetMacro(AbortRender, int);
657  vtkGetMacro(InAbortCheck, int);
658  vtkSetMacro(InAbortCheck, int);
659  virtual int CheckAbortStatus();
661 
668  virtual vtkTypeBool GetEventPending() { return 0; }
669 
673  virtual int CheckInRenderStatus() { return this->InRender; }
674 
678  virtual void ClearInRenderStatus() { this->InRender = 0; }
679 
681 
689  virtual void SetDesiredUpdateRate(double);
690  vtkGetMacro(DesiredUpdateRate, double);
692 
694 
700  vtkGetMacro(NumberOfLayers, int);
701  vtkSetClampMacro(NumberOfLayers, int, 1, VTK_INT_MAX);
703 
705 
708  vtkGetObjectMacro(Interactor, vtkRenderWindowInteractor);
710 
715 
720  void UnRegister(vtkObjectBase* o) override;
721 
723 
726  void SetDisplayId(void*) override {}
727  void SetWindowId(void*) override {}
728  virtual void SetNextWindowId(void*) {}
729  void SetParentId(void*) override {}
730  void* GetGenericDisplayId() override { return nullptr; }
731  void* GetGenericWindowId() override { return nullptr; }
732  void* GetGenericParentId() override { return nullptr; }
733  void* GetGenericContext() override { return nullptr; }
734  void* GetGenericDrawable() override { return nullptr; }
735  void SetWindowInfo(const char*) override {}
736  virtual void SetNextWindowInfo(const char*) {}
737  void SetParentInfo(const char*) override {}
739 
744  virtual bool InitializeFromCurrentContext() { return false; }
745 
747 
755  vtkGetObjectMacro(SharedRenderWindow, vtkRenderWindow);
756  virtual bool GetPlatformSupportsRenderWindowSharing() { return false; }
758 
763  virtual bool IsCurrent() { return false; }
764 
772  "Deprecated in 9.1 because no one knows what it's for and nothing uses it")
773  virtual bool IsDrawable();
774 
780  virtual void SetForceMakeCurrent() {}
781 
785  virtual const char* ReportCapabilities() { return "Not Implemented"; }
786 
790  virtual int SupportsOpenGL() { return 0; }
791 
795  virtual vtkTypeBool IsDirect() { return 0; }
796 
801  virtual int GetDepthBufferSize() { return 0; }
802 
807  virtual int GetColorBufferSizes(int* /*rgba*/) { return 0; }
808 
810 
814  virtual void SetMultiSamples(int);
815  vtkGetMacro(MultiSamples, int);
817 
819 
822  vtkSetMacro(StencilCapable, vtkTypeBool);
823  vtkGetMacro(StencilCapable, vtkTypeBool);
824  vtkBooleanMacro(StencilCapable, vtkTypeBool);
826 
828 
834  vtkSetMacro(DeviceIndex, int);
835  vtkGetMacro(DeviceIndex, int);
837 
841  virtual int GetNumberOfDevices() { return 0; }
842 
844 
848  vtkGetMacro(UseSRGBColorSpace, bool);
849  vtkSetMacro(UseSRGBColorSpace, bool);
850  vtkBooleanMacro(UseSRGBColorSpace, bool);
852 
858  virtual void GetPhysicalToWorldMatrix(vtkMatrix4x4* matrix);
859 
867  vtkEventDataDevice device, vtkMatrix4x4* deviceToWorldMatrix);
868 
869 protected:
871  ~vtkRenderWindow() override;
872 
873  virtual void DoStereoRender();
874 
879  int OldScreen[5];
894  int InRender;
899  int AnaglyphColorMask[2];
904 
907 
912 
914 
915 private:
916  vtkRenderWindow(const vtkRenderWindow&) = delete;
917  void operator=(const vtkRenderWindow&) = delete;
918 
919  vtkNew<vtkStereoCompositor> StereoCompositor;
920 };
921 
922 #endif
create and manipulate ordered lists of objects
Definition: vtkCollection.h:56
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition: vtkIndent.h:119
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:151
abstract base class for most VTK objects
Definition: vtkObjectBase.h:74
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:76
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.
virtual void GetPhysicalToWorldMatrix(vtkMatrix4x4 *matrix)
Get physical to world transform matrix.
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 bool GetDeviceToWorldMatrixForDevice(vtkEventDataDevice device, vtkMatrix4x4 *deviceToWorldMatrix)
Store in deviceToWorldMatrix the matrix that goes from device coordinates to world coordinates.
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...
virtual vtkTypeBool GetEventPending()
Check to see if a mouse button has been pressed.
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:182
helper class to generate composited stereo images.
dynamic, self-adjusting array of unsigned char
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
@ value
Definition: vtkX3D.h:226
@ type
Definition: vtkX3D.h:522
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_DEPRECATED_IN_9_1_0(reason)
vtkEventDataDevice
platform-independent event data structures
Definition: vtkEventData.h:26
#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