VTK  9.0.20200804
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 =========================================================================*/
50 #ifndef vtkRenderWindow_h
51 #define vtkRenderWindow_h
52 
53 #include "vtkDeprecation.h" // for VTK_DEPRECATED_IN_9_0_0
54 #include "vtkNew.h" // For vtkNew
55 #include "vtkRenderingCoreModule.h" // For export macro
56 #include "vtkSmartPointer.h" // For vtkSmartPointer
57 #include "vtkWindow.h"
58 
59 class vtkFloatArray;
60 class vtkProp;
61 class vtkCollection;
62 class vtkRenderTimerLog;
64 class vtkRenderer;
68 
69 // lets define the different types of stereo
70 #define VTK_STEREO_CRYSTAL_EYES 1
71 #define VTK_STEREO_RED_BLUE 2
72 #define VTK_STEREO_INTERLACED 3
73 #define VTK_STEREO_LEFT 4
74 #define VTK_STEREO_RIGHT 5
75 #define VTK_STEREO_DRESDEN 6
76 #define VTK_STEREO_ANAGLYPH 7
77 #define VTK_STEREO_CHECKERBOARD 8
78 #define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL 9
79 #define VTK_STEREO_FAKE 10
80 #define VTK_STEREO_EMULATE 11
81 
82 #define VTK_CURSOR_DEFAULT 0
83 #define VTK_CURSOR_ARROW 1
84 #define VTK_CURSOR_SIZENE 2
85 #define VTK_CURSOR_SIZENW 3
86 #define VTK_CURSOR_SIZESW 4
87 #define VTK_CURSOR_SIZESE 5
88 #define VTK_CURSOR_SIZENS 6
89 #define VTK_CURSOR_SIZEWE 7
90 #define VTK_CURSOR_SIZEALL 8
91 #define VTK_CURSOR_HAND 9
92 #define VTK_CURSOR_CROSSHAIR 10
93 
94 class VTKRENDERINGCORE_EXPORT vtkRenderWindow : public vtkWindow
95 {
96 public:
97  vtkTypeMacro(vtkRenderWindow, vtkWindow);
98  void PrintSelf(ostream& os, vtkIndent indent) override;
99 
105  static vtkRenderWindow* New();
106 
110  virtual void AddRenderer(vtkRenderer*);
111 
115  void RemoveRenderer(vtkRenderer*);
116 
120  int HasRenderer(vtkRenderer*);
121 
125  static const char* GetRenderLibrary();
126 
130  virtual const char* GetRenderingBackend();
131 
135  vtkGetNewMacro(RenderTimer, vtkRenderTimerLog);
136 
140  vtkRendererCollection* GetRenderers() { return this->Renderers; }
141 
149  void CaptureGL2PSSpecialProps(vtkCollection* specialProps);
150 
152 
155  vtkGetMacro(CapturingGL2PSSpecialProps, int);
157 
162  void Render() override;
163 
167  virtual void Start() {}
168 
172  virtual void End(){};
173 
177  virtual void Finalize() {}
178 
183  virtual void Frame() {}
184 
189  virtual void WaitForCompletion() {}
190 
195  virtual void CopyResultFrame();
196 
202  virtual vtkRenderWindowInteractor* MakeRenderWindowInteractor();
203 
205 
211  virtual void HideCursor() {}
212  virtual void ShowCursor() {}
213  virtual void SetCursorPosition(int, int) {}
215 
217 
220  vtkSetMacro(CurrentCursor, int);
221  vtkGetMacro(CurrentCursor, int);
223 
225 
228  virtual void SetFullScreen(vtkTypeBool) {}
229  vtkGetMacro(FullScreen, vtkTypeBool);
230  vtkBooleanMacro(FullScreen, vtkTypeBool);
232 
234 
239  vtkSetMacro(Borders, vtkTypeBool);
240  vtkGetMacro(Borders, vtkTypeBool);
241  vtkBooleanMacro(Borders, vtkTypeBool);
243 
245 
249  vtkGetMacro(StereoCapableWindow, vtkTypeBool);
250  vtkBooleanMacro(StereoCapableWindow, vtkTypeBool);
251  virtual void SetStereoCapableWindow(vtkTypeBool capable);
253 
255 
258  vtkGetMacro(StereoRender, vtkTypeBool);
259  void SetStereoRender(vtkTypeBool stereo);
260  vtkBooleanMacro(StereoRender, vtkTypeBool);
262 
264 
267  vtkSetMacro(AlphaBitPlanes, vtkTypeBool);
268  vtkGetMacro(AlphaBitPlanes, vtkTypeBool);
269  vtkBooleanMacro(AlphaBitPlanes, vtkTypeBool);
271 
273 
277  vtkSetMacro(PointSmoothing, vtkTypeBool);
278  vtkGetMacro(PointSmoothing, vtkTypeBool);
279  vtkBooleanMacro(PointSmoothing, vtkTypeBool);
281 
283 
287  vtkSetMacro(LineSmoothing, vtkTypeBool);
288  vtkGetMacro(LineSmoothing, vtkTypeBool);
289  vtkBooleanMacro(LineSmoothing, vtkTypeBool);
291 
293 
297  vtkSetMacro(PolygonSmoothing, vtkTypeBool);
298  vtkGetMacro(PolygonSmoothing, vtkTypeBool);
299  vtkBooleanMacro(PolygonSmoothing, vtkTypeBool);
301 
303 
324  vtkGetMacro(StereoType, int);
325  void SetStereoType(int);
326  void SetStereoTypeToCrystalEyes() { this->SetStereoType(VTK_STEREO_CRYSTAL_EYES); }
327  void SetStereoTypeToRedBlue() { this->SetStereoType(VTK_STEREO_RED_BLUE); }
328  void SetStereoTypeToInterlaced() { this->SetStereoType(VTK_STEREO_INTERLACED); }
329  void SetStereoTypeToLeft() { this->SetStereoType(VTK_STEREO_LEFT); }
330  void SetStereoTypeToRight() { this->SetStereoType(VTK_STEREO_RIGHT); }
331  void SetStereoTypeToDresden() { this->SetStereoType(VTK_STEREO_DRESDEN); }
332  void SetStereoTypeToAnaglyph() { this->SetStereoType(VTK_STEREO_ANAGLYPH); }
333  void SetStereoTypeToCheckerboard() { this->SetStereoType(VTK_STEREO_CHECKERBOARD); }
335  {
336  this->SetStereoType(VTK_STEREO_SPLITVIEWPORT_HORIZONTAL);
337  }
338  void SetStereoTypeToFake() { this->SetStereoType(VTK_STEREO_FAKE); }
339  void SetStereoTypeToEmulate() { this->SetStereoType(VTK_STEREO_EMULATE); }
341 
343 
346  const char* GetStereoTypeAsString();
347  static const char* GetStereoTypeAsString(int type);
349 
354  virtual void StereoUpdate();
355 
360  virtual void StereoMidpoint();
361 
366  virtual void StereoRenderComplete();
367 
369 
376  vtkSetClampMacro(AnaglyphColorSaturation, float, 0.0f, 1.0f);
377  vtkGetMacro(AnaglyphColorSaturation, float);
379 
381 
395  vtkSetVector2Macro(AnaglyphColorMask, int);
396  vtkGetVectorMacro(AnaglyphColorMask, int, 2);
398 
404  virtual void WindowRemap() {}
405 
407 
410  vtkSetMacro(SwapBuffers, vtkTypeBool);
411  vtkGetMacro(SwapBuffers, vtkTypeBool);
412  vtkBooleanMacro(SwapBuffers, vtkTypeBool);
414 
416 
428  virtual int SetPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, unsigned char* /*data*/,
429  int /*front*/, int /*right*/ = 0)
430  {
431  return 0;
432  }
433  virtual int SetPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
434  vtkUnsignedCharArray* /*data*/, int /*front*/, int /*right*/ = 0)
435  {
436  return 0;
437  }
439 
441 
448  virtual float* GetRGBAPixelData(
449  int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/, int /*right*/ = 0)
450  {
451  return nullptr;
452  }
453  virtual int GetRGBAPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/,
454  vtkFloatArray* /*data*/, int /*right*/ = 0)
455  {
456  return 0;
457  }
458  virtual int SetRGBAPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float*, int /*front*/,
459  int /*blend*/ = 0, int /*right*/ = 0)
460  {
461  return 0;
462  }
463  virtual int SetRGBAPixelData(
464  int, int, int, int, vtkFloatArray*, int, int /*blend*/ = 0, int /*right*/ = 0)
465  {
466  return 0;
467  }
468  virtual void ReleaseRGBAPixelData(float* /*data*/) {}
469  virtual unsigned char* GetRGBACharPixelData(
470  int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/, int /*right*/ = 0)
471  {
472  return nullptr;
473  }
474  virtual int GetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/,
475  vtkUnsignedCharArray* /*data*/, int /*right*/ = 0)
476  {
477  return 0;
478  }
479  virtual int SetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
480  unsigned char* /*data*/, int /*front*/, int /*blend*/ = 0, int /*right*/ = 0)
481  {
482  return 0;
483  }
484  virtual int SetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
485  vtkUnsignedCharArray* /*data*/, int /*front*/, int /*blend*/ = 0, int /*right*/ = 0)
486  {
487  return 0;
488  }
490 
492 
497  virtual float* GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/) { return nullptr; }
498  virtual int GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float* /*z*/)
499  {
500  return 0;
501  }
502  virtual int GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, vtkFloatArray* /*z*/)
503  {
504  return 0;
505  }
506  virtual int SetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float* /*z*/)
507  {
508  return 0;
509  }
510  virtual int SetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, vtkFloatArray* /*z*/)
511  {
512  return 0;
513  }
514  float GetZbufferDataAtPoint(int x, int y)
515  {
516  float value;
517  this->GetZbufferData(x, y, x, y, &value);
518  return value;
519  }
521 
523 
526  vtkGetMacro(NeverRendered, int);
528 
530 
534  vtkGetMacro(AbortRender, int);
535  vtkSetMacro(AbortRender, int);
536  vtkGetMacro(InAbortCheck, int);
537  vtkSetMacro(InAbortCheck, int);
538  virtual int CheckAbortStatus();
540 
542 
545  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
546  vtkTypeBool GetIsPicking();
547  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
548  void SetIsPicking(vtkTypeBool);
549  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
550  void IsPickingOn();
551  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
552  void IsPickingOff();
554 
561  virtual vtkTypeBool GetEventPending() { return 0; }
562 
566  virtual int CheckInRenderStatus() { return this->InRender; }
567 
571  virtual void ClearInRenderStatus() { this->InRender = 0; }
572 
574 
582  virtual void SetDesiredUpdateRate(double);
583  vtkGetMacro(DesiredUpdateRate, double);
585 
587 
593  vtkGetMacro(NumberOfLayers, int);
594  vtkSetClampMacro(NumberOfLayers, int, 1, VTK_INT_MAX);
596 
598 
601  vtkGetObjectMacro(Interactor, vtkRenderWindowInteractor);
603 
607  virtual void SetInteractor(vtkRenderWindowInteractor*);
608 
613  void UnRegister(vtkObjectBase* o) override;
614 
616 
619  void SetDisplayId(void*) override {}
620  void SetWindowId(void*) override {}
621  virtual void SetNextWindowId(void*) {}
622  void SetParentId(void*) override {}
623  void* GetGenericDisplayId() override { return nullptr; }
624  void* GetGenericWindowId() override { return nullptr; }
625  void* GetGenericParentId() override { return nullptr; }
626  void* GetGenericContext() override { return nullptr; }
627  void* GetGenericDrawable() override { return nullptr; }
628  void SetWindowInfo(const char*) override {}
629  virtual void SetNextWindowInfo(const char*) {}
630  void SetParentInfo(const char*) override {}
632 
637  virtual bool InitializeFromCurrentContext() { return false; }
638 
640 
647  virtual void SetSharedRenderWindow(vtkRenderWindow*);
648  vtkGetObjectMacro(SharedRenderWindow, vtkRenderWindow);
649  virtual bool GetPlatformSupportsRenderWindowSharing() { return false; }
651 
656  void MakeCurrent() override {}
657 
662  virtual bool IsCurrent() { return false; }
663 
671  "Deprecated in 9.1 because no one knows what it's for and nothing uses it")
672  virtual bool IsDrawable();
673 
679  virtual void SetForceMakeCurrent() {}
680 
684  virtual const char* ReportCapabilities() { return "Not Implemented"; }
685 
689  virtual int SupportsOpenGL() { return 0; }
690 
694  virtual vtkTypeBool IsDirect() { return 0; }
695 
700  virtual int GetDepthBufferSize() { return 0; }
701 
706  virtual int GetColorBufferSizes(int* /*rgba*/) { return 0; }
707 
709 
713  virtual void SetMultiSamples(int);
714  vtkGetMacro(MultiSamples, int);
716 
718 
721  vtkSetMacro(StencilCapable, vtkTypeBool);
722  vtkGetMacro(StencilCapable, vtkTypeBool);
723  vtkBooleanMacro(StencilCapable, vtkTypeBool);
725 
727 
733  vtkSetMacro(DeviceIndex, int);
734  vtkGetMacro(DeviceIndex, int);
736 
740  virtual int GetNumberOfDevices() { return 0; }
741 
743 
747  vtkGetMacro(UseSRGBColorSpace, bool);
748  vtkSetMacro(UseSRGBColorSpace, bool);
749  vtkBooleanMacro(UseSRGBColorSpace, bool);
751 
752 protected:
753  vtkRenderWindow();
754  ~vtkRenderWindow() override;
755 
756  virtual void DoStereoRender();
757 
762  int OldScreen[5];
777  int InRender;
782  int AnaglyphColorMask[2];
787 
789 
794 
796 
797 private:
798  vtkRenderWindow(const vtkRenderWindow&) = delete;
799  void operator=(const vtkRenderWindow&) = delete;
800 
801  vtkNew<vtkStereoCompositor> StereoCompositor;
802 };
803 
804 #endif
vtkRenderWindow::SharedRenderWindow
vtkRenderWindow * SharedRenderWindow
Definition: vtkRenderWindow.h:795
vtkRenderWindow::SetPixelData
virtual int SetPixelData(int, int, int, int, unsigned char *, int, int=0)
Set/Get the pixel data of an image, transmitted as RGBRGBRGB.
Definition: vtkRenderWindow.h:428
VTK_STEREO_RIGHT
#define VTK_STEREO_RIGHT
Definition: vtkRenderWindow.h:74
vtkRenderWindow::StereoRender
vtkTypeBool StereoRender
Definition: vtkRenderWindow.h:766
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:147
vtkRenderWindow::PointSmoothing
vtkTypeBool PointSmoothing
Definition: vtkRenderWindow.h:763
vtkRenderWindow::SwapBuffers
vtkTypeBool SwapBuffers
Definition: vtkRenderWindow.h:773
vtkRenderWindow::NeverRendered
int NeverRendered
Definition: vtkRenderWindow.h:778
vtkRenderWindow::FullScreen
vtkTypeBool FullScreen
Definition: vtkRenderWindow.h:761
vtkRenderWindow::GetZbufferData
virtual int GetZbufferData(int, int, int, int, float *)
Definition: vtkRenderWindow.h:498
VTK_STEREO_RED_BLUE
#define VTK_STEREO_RED_BLUE
Definition: vtkRenderWindow.h:71
vtkRenderWindow::SetRGBAPixelData
virtual int SetRGBAPixelData(int, int, int, int, vtkFloatArray *, int, int=0, int=0)
Definition: vtkRenderWindow.h:463
vtkX3D::value
Definition: vtkX3D.h:226
vtkX3D::type
Definition: vtkX3D.h:522
vtkRenderWindow::SetRGBACharPixelData
virtual int SetRGBACharPixelData(int, int, int, int, vtkUnsignedCharArray *, int, int=0, int=0)
Definition: vtkRenderWindow.h:484
vtkRenderWindow::SetWindowInfo
void SetWindowInfo(const char *) override
Definition: vtkRenderWindow.h:628
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:35
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkRenderWindow::SetStereoTypeToRedBlue
void SetStereoTypeToRedBlue()
Definition: vtkRenderWindow.h:327
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:35
vtkRenderWindow::SetStereoTypeToCheckerboard
void SetStereoTypeToCheckerboard()
Definition: vtkRenderWindow.h:333
vtkRenderWindow::SetWindowId
void SetWindowId(void *) override
Definition: vtkRenderWindow.h:620
vtkSmartPointer< vtkUnsignedCharArray >
vtkRenderWindow::GetZbufferDataAtPoint
float GetZbufferDataAtPoint(int x, int y)
Definition: vtkRenderWindow.h:514
VTK_DEPRECATED_IN_9_1_0
#define VTK_DEPRECATED_IN_9_1_0(reason)
Definition: vtkDeprecation.h:76
vtkRenderWindow::GetGenericParentId
void * GetGenericParentId() override
Definition: vtkRenderWindow.h:625
vtkRenderWindow::InRender
int InRender
Definition: vtkRenderWindow.h:777
vtkRenderWindow::SetRGBACharPixelData
virtual int SetRGBACharPixelData(int, int, int, int, unsigned char *, int, int=0, int=0)
Definition: vtkRenderWindow.h:479
vtkRenderWindow::Renderers
vtkRendererCollection * Renderers
Definition: vtkRenderWindow.h:758
vtkRenderWindow::SetStereoTypeToEmulate
void SetStereoTypeToEmulate()
Definition: vtkRenderWindow.h:339
vtkRendererCollection
an ordered list of renderers
Definition: vtkRendererCollection.h:34
vtkRenderWindow::SetNextWindowInfo
virtual void SetNextWindowInfo(const char *)
Definition: vtkRenderWindow.h:629
vtkRenderWindow::InAbortCheck
int InAbortCheck
Definition: vtkRenderWindow.h:776
VTK_STEREO_CRYSTAL_EYES
#define VTK_STEREO_CRYSTAL_EYES
Definition: vtkRenderWindow.h:70
vtkRenderWindow::WaitForCompletion
virtual void WaitForCompletion()
Block the thread until the actual rendering is finished().
Definition: vtkRenderWindow.h:189
VTK_STEREO_SPLITVIEWPORT_HORIZONTAL
#define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL
Definition: vtkRenderWindow.h:78
vtkRenderWindow::GetGenericDrawable
void * GetGenericDrawable() override
Definition: vtkRenderWindow.h:627
vtkRenderWindow::GetGenericDisplayId
void * GetGenericDisplayId() override
Definition: vtkRenderWindow.h:623
vtkRenderWindow::GetRenderers
vtkRendererCollection * GetRenderers()
Return the collection of renderers in the render window.
Definition: vtkRenderWindow.h:140
vtkRenderWindow::SetZbufferData
virtual int SetZbufferData(int, int, int, int, float *)
Definition: vtkRenderWindow.h:506
vtkRenderWindow::WindowRemap
virtual void WindowRemap()
Remap the rendering window.
Definition: vtkRenderWindow.h:404
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkRenderWindow::GetZbufferData
virtual float * GetZbufferData(int, int, int, int)
Set/Get the zbuffer data from the frame buffer.
Definition: vtkRenderWindow.h:497
vtkRenderWindow::ShowCursor
virtual void ShowCursor()
Definition: vtkRenderWindow.h:212
vtkRenderWindow::StereoType
int StereoType
Definition: vtkRenderWindow.h:767
vtkRenderWindow::AnaglyphColorSaturation
float AnaglyphColorSaturation
Definition: vtkRenderWindow.h:781
vtkRenderWindow::HideCursor
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...
Definition: vtkRenderWindow.h:211
vtkRenderWindow::SetDisplayId
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
Definition: vtkRenderWindow.h:619
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:52
vtkRenderWindow::GetPlatformSupportsRenderWindowSharing
virtual bool GetPlatformSupportsRenderWindowSharing()
Definition: vtkRenderWindow.h:649
vtkRenderWindow::SetZbufferData
virtual int SetZbufferData(int, int, int, int, vtkFloatArray *)
Definition: vtkRenderWindow.h:510
vtkRenderWindow::GetRGBACharPixelData
virtual unsigned char * GetRGBACharPixelData(int, int, int, int, int, int=0)
Definition: vtkRenderWindow.h:469
vtkRenderWindow::Finalize
virtual void Finalize()
Finalize the rendering process.
Definition: vtkRenderWindow.h:177
vtkRenderWindow::SetStereoTypeToAnaglyph
void SetStereoTypeToAnaglyph()
Definition: vtkRenderWindow.h:332
vtkRenderWindow::ReleaseRGBAPixelData
virtual void ReleaseRGBAPixelData(float *)
Definition: vtkRenderWindow.h:468
vtkRenderWindow::DeviceIndex
int DeviceIndex
Definition: vtkRenderWindow.h:786
vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:69
vtkRenderWindow::SetNextWindowId
virtual void SetNextWindowId(void *)
Definition: vtkRenderWindow.h:621
vtkRenderWindow::GetColorBufferSizes
virtual int GetColorBufferSizes(int *)
Get the size of the color buffer.
Definition: vtkRenderWindow.h:706
vtkStereoCompositor
helper class to generate composited stereo images.
Definition: vtkStereoCompositor.h:35
vtkRenderWindow::GetRGBACharPixelData
virtual int GetRGBACharPixelData(int, int, int, int, int, vtkUnsignedCharArray *, int=0)
Definition: vtkRenderWindow.h:474
vtkRenderWindow::CurrentCursor
int CurrentCursor
Definition: vtkRenderWindow.h:780
vtkRenderWindow::Interactor
vtkRenderWindowInteractor * Interactor
Definition: vtkRenderWindow.h:770
vtkRenderWindow::MakeCurrent
void MakeCurrent() override
Attempt to make this window the current graphics context for the calling thread.
Definition: vtkRenderWindow.h:656
VTK_STEREO_INTERLACED
#define VTK_STEREO_INTERLACED
Definition: vtkRenderWindow.h:72
vtkRenderWindow::CapturingGL2PSSpecialProps
int CapturingGL2PSSpecialProps
Definition: vtkRenderWindow.h:785
vtkRenderWindow::IsDirect
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
Definition: vtkRenderWindow.h:694
VTK_STEREO_LEFT
#define VTK_STEREO_LEFT
Definition: vtkRenderWindow.h:73
vtkRenderWindow::SetStereoTypeToLeft
void SetStereoTypeToLeft()
Definition: vtkRenderWindow.h:329
vtkRenderWindow::UseSRGBColorSpace
bool UseSRGBColorSpace
Definition: vtkRenderWindow.h:788
VTK_STEREO_ANAGLYPH
#define VTK_STEREO_ANAGLYPH
Definition: vtkRenderWindow.h:76
vtkRenderWindow::StencilCapable
vtkTypeBool StencilCapable
Definition: vtkRenderWindow.h:784
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
VTK_DEPRECATED_IN_9_0_0
#define VTK_DEPRECATED_IN_9_0_0(reason)
Definition: vtkDeprecation.h:83
vtkSmartPointer.h
vtkRenderWindow::StereoCapableWindow
vtkTypeBool StereoCapableWindow
Definition: vtkRenderWindow.h:768
vtkRenderWindow::Borders
vtkTypeBool Borders
Definition: vtkRenderWindow.h:760
vtkRenderWindow::GetRGBAPixelData
virtual float * GetRGBAPixelData(int, int, int, int, int, int=0)
Same as Get/SetPixelData except that the image also contains an alpha component.
Definition: vtkRenderWindow.h:448
vtkWindow::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderWindow::ResultFrame
vtkSmartPointer< vtkUnsignedCharArray > ResultFrame
Definition: vtkRenderWindow.h:772
vtkNew< vtkRenderTimerLog >
vtkRenderWindow::GetZbufferData
virtual int GetZbufferData(int, int, int, int, vtkFloatArray *)
Definition: vtkRenderWindow.h:502
vtkRenderWindow::DesiredUpdateRate
double DesiredUpdateRate
Definition: vtkRenderWindow.h:774
vtkRenderWindow::SetParentInfo
void SetParentInfo(const char *) override
Definition: vtkRenderWindow.h:630
vtkRenderWindow::ReportCapabilities
virtual const char * ReportCapabilities()
Get report of capabilities for the render window.
Definition: vtkRenderWindow.h:684
vtkRenderWindow::SetStereoTypeToRight
void SetStereoTypeToRight()
Definition: vtkRenderWindow.h:330
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:82
vtkRenderWindow::Frame
virtual void Frame()
A termination method performed at the end of the rendering process to do things like swapping buffers...
Definition: vtkRenderWindow.h:183
vtkRenderWindow::GetDepthBufferSize
virtual int GetDepthBufferSize()
This method should be defined by the subclass.
Definition: vtkRenderWindow.h:700
vtkRenderWindow::End
virtual void End()
Update the system, if needed, at end of render process.
Definition: vtkRenderWindow.h:172
vtkRenderWindow::SetParentId
void SetParentId(void *) override
Definition: vtkRenderWindow.h:622
vtkRenderTimerLog
Asynchronously measures GPU execution times for a series of events.
Definition: vtkRenderTimerLog.h:80
vtkRenderWindow::AbortCheckTime
double AbortCheckTime
The universal time since the last abort check occurred.
Definition: vtkRenderWindow.h:793
vtkRenderWindow::NumberOfLayers
int NumberOfLayers
Definition: vtkRenderWindow.h:779
vtkWindow::Render
virtual void Render()
Ask each viewport owned by this Window to render its image and synchronize this process.
Definition: vtkWindow.h:173
vtkRenderWindow::GetNumberOfDevices
virtual int GetNumberOfDevices()
Returns the number of devices (graphics cards) on a system.
Definition: vtkRenderWindow.h:740
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:56
vtkRenderWindow::Start
virtual void Start()
Start the rendering process for a frame.
Definition: vtkRenderWindow.h:167
vtkRenderWindow::SetStereoTypeToCrystalEyes
void SetStereoTypeToCrystalEyes()
Definition: vtkRenderWindow.h:326
vtkRenderWindow::SetCursorPosition
virtual void SetCursorPosition(int, int)
Definition: vtkRenderWindow.h:213
vtkRenderWindow::GetRGBAPixelData
virtual int GetRGBAPixelData(int, int, int, int, int, vtkFloatArray *, int=0)
Definition: vtkRenderWindow.h:453
vtkRenderWindow::SetPixelData
virtual int SetPixelData(int, int, int, int, vtkUnsignedCharArray *, int, int=0)
Definition: vtkRenderWindow.h:433
vtkNew.h
vtkDeprecation.h
VTK_STEREO_FAKE
#define VTK_STEREO_FAKE
Definition: vtkRenderWindow.h:79
vtkRenderWindow::MultiSamples
int MultiSamples
Definition: vtkRenderWindow.h:783
VTK_STEREO_EMULATE
#define VTK_STEREO_EMULATE
Definition: vtkRenderWindow.h:80
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:67
vtkRenderWindow::SetStereoTypeToFake
void SetStereoTypeToFake()
Definition: vtkRenderWindow.h:338
vtkRenderWindow::SetFullScreen
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
Definition: vtkRenderWindow.h:228
vtkRenderWindow::AbortRender
int AbortRender
Definition: vtkRenderWindow.h:775
VTK_STEREO_DRESDEN
#define VTK_STEREO_DRESDEN
Definition: vtkRenderWindow.h:75
vtkRenderWindow::SetStereoTypeToDresden
void SetStereoTypeToDresden()
Definition: vtkRenderWindow.h:331
vtkRenderWindow::SetStereoTypeToInterlaced
void SetStereoTypeToInterlaced()
Definition: vtkRenderWindow.h:328
vtkRenderWindow::SupportsOpenGL
virtual int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
Definition: vtkRenderWindow.h:689
vtkRenderWindow::AlphaBitPlanes
vtkTypeBool AlphaBitPlanes
Definition: vtkRenderWindow.h:769
vtkRenderWindow::SetRGBAPixelData
virtual int SetRGBAPixelData(int, int, int, int, float *, int, int=0, int=0)
Definition: vtkRenderWindow.h:458
vtkRenderWindow::LineSmoothing
vtkTypeBool LineSmoothing
Definition: vtkRenderWindow.h:764
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:94
vtkRenderWindow::InitializeFromCurrentContext
virtual bool InitializeFromCurrentContext()
Initialize the render window from the information associated with the currently activated OpenGL cont...
Definition: vtkRenderWindow.h:637
vtkRenderWindow::GetGenericContext
void * GetGenericContext() override
Definition: vtkRenderWindow.h:626
vtkRenderWindow::ClearInRenderStatus
virtual void ClearInRenderStatus()
Clear status (after an exception was thrown for example)
Definition: vtkRenderWindow.h:571
vtkRenderWindow::CheckInRenderStatus
virtual int CheckInRenderStatus()
Are we rendering at the moment.
Definition: vtkRenderWindow.h:566
vtkRenderWindow::IsCurrent
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
Definition: vtkRenderWindow.h:662
vtkRenderWindow::GetGenericWindowId
void * GetGenericWindowId() override
Definition: vtkRenderWindow.h:624
vtkRenderWindow::StereoBuffer
vtkSmartPointer< vtkUnsignedCharArray > StereoBuffer
Definition: vtkRenderWindow.h:771
vtkRenderWindow::RenderTimer
vtkNew< vtkRenderTimerLog > RenderTimer
Definition: vtkRenderWindow.h:759
vtkWindow.h
vtkObjectBase::UnRegister
virtual void UnRegister(vtkObjectBase *o)
Decrease the reference count (release by another object).
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkRenderWindow::PolygonSmoothing
vtkTypeBool PolygonSmoothing
Definition: vtkRenderWindow.h:765
vtkRenderWindow::SetStereoTypeToSplitViewportHorizontal
void SetStereoTypeToSplitViewportHorizontal()
Definition: vtkRenderWindow.h:334
VTK_STEREO_CHECKERBOARD
#define VTK_STEREO_CHECKERBOARD
Definition: vtkRenderWindow.h:77