VTK  9.0.20201122
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 #define VTK_CURSOR_CUSTOM 11
94 
95 class VTKRENDERINGCORE_EXPORT vtkRenderWindow : public vtkWindow
96 {
97 public:
98  vtkTypeMacro(vtkRenderWindow, vtkWindow);
99  void PrintSelf(ostream& os, vtkIndent indent) override;
100 
106  static vtkRenderWindow* New();
107 
111  virtual void AddRenderer(vtkRenderer*);
112 
116  void RemoveRenderer(vtkRenderer*);
117 
121  int HasRenderer(vtkRenderer*);
122 
126  static const char* GetRenderLibrary();
127 
131  virtual const char* GetRenderingBackend();
132 
136  vtkGetNewMacro(RenderTimer, vtkRenderTimerLog);
137 
141  vtkRendererCollection* GetRenderers() { return this->Renderers; }
142 
150  void CaptureGL2PSSpecialProps(vtkCollection* specialProps);
151 
153 
156  vtkGetMacro(CapturingGL2PSSpecialProps, int);
158 
163  void Render() override;
164 
168  virtual void Start() {}
169 
173  virtual void End(){};
174 
178  virtual void Finalize() {}
179 
184  virtual void Frame() {}
185 
190  virtual void WaitForCompletion() {}
191 
196  virtual void CopyResultFrame();
197 
203  virtual vtkRenderWindowInteractor* MakeRenderWindowInteractor();
204 
206 
212  virtual void HideCursor() {}
213  virtual void ShowCursor() {}
214  virtual void SetCursorPosition(int, int) {}
216 
218 
221  vtkSetMacro(CurrentCursor, int);
222  vtkGetMacro(CurrentCursor, int);
224 
226 
230  vtkSetStringMacro(CursorFileName);
231  vtkGetStringMacro(CursorFileName);
233 
235 
238  virtual void SetFullScreen(vtkTypeBool) {}
239  vtkGetMacro(FullScreen, vtkTypeBool);
240  vtkBooleanMacro(FullScreen, vtkTypeBool);
242 
244 
249  vtkSetMacro(Borders, vtkTypeBool);
250  vtkGetMacro(Borders, vtkTypeBool);
251  vtkBooleanMacro(Borders, vtkTypeBool);
253 
255 
259  vtkGetMacro(StereoCapableWindow, vtkTypeBool);
260  vtkBooleanMacro(StereoCapableWindow, vtkTypeBool);
261  virtual void SetStereoCapableWindow(vtkTypeBool capable);
263 
265 
268  vtkGetMacro(StereoRender, vtkTypeBool);
269  void SetStereoRender(vtkTypeBool stereo);
270  vtkBooleanMacro(StereoRender, vtkTypeBool);
272 
274 
277  vtkSetMacro(AlphaBitPlanes, vtkTypeBool);
278  vtkGetMacro(AlphaBitPlanes, vtkTypeBool);
279  vtkBooleanMacro(AlphaBitPlanes, vtkTypeBool);
281 
283 
287  vtkSetMacro(PointSmoothing, vtkTypeBool);
288  vtkGetMacro(PointSmoothing, vtkTypeBool);
289  vtkBooleanMacro(PointSmoothing, vtkTypeBool);
291 
293 
297  vtkSetMacro(LineSmoothing, vtkTypeBool);
298  vtkGetMacro(LineSmoothing, vtkTypeBool);
299  vtkBooleanMacro(LineSmoothing, vtkTypeBool);
301 
303 
307  vtkSetMacro(PolygonSmoothing, vtkTypeBool);
308  vtkGetMacro(PolygonSmoothing, vtkTypeBool);
309  vtkBooleanMacro(PolygonSmoothing, vtkTypeBool);
311 
313 
334  vtkGetMacro(StereoType, int);
335  void SetStereoType(int);
336  void SetStereoTypeToCrystalEyes() { this->SetStereoType(VTK_STEREO_CRYSTAL_EYES); }
337  void SetStereoTypeToRedBlue() { this->SetStereoType(VTK_STEREO_RED_BLUE); }
338  void SetStereoTypeToInterlaced() { this->SetStereoType(VTK_STEREO_INTERLACED); }
339  void SetStereoTypeToLeft() { this->SetStereoType(VTK_STEREO_LEFT); }
340  void SetStereoTypeToRight() { this->SetStereoType(VTK_STEREO_RIGHT); }
341  void SetStereoTypeToDresden() { this->SetStereoType(VTK_STEREO_DRESDEN); }
342  void SetStereoTypeToAnaglyph() { this->SetStereoType(VTK_STEREO_ANAGLYPH); }
343  void SetStereoTypeToCheckerboard() { this->SetStereoType(VTK_STEREO_CHECKERBOARD); }
345  {
346  this->SetStereoType(VTK_STEREO_SPLITVIEWPORT_HORIZONTAL);
347  }
348  void SetStereoTypeToFake() { this->SetStereoType(VTK_STEREO_FAKE); }
349  void SetStereoTypeToEmulate() { this->SetStereoType(VTK_STEREO_EMULATE); }
351 
353 
356  const char* GetStereoTypeAsString();
357  static const char* GetStereoTypeAsString(int type);
359 
364  virtual void StereoUpdate();
365 
370  virtual void StereoMidpoint();
371 
376  virtual void StereoRenderComplete();
377 
379 
386  vtkSetClampMacro(AnaglyphColorSaturation, float, 0.0f, 1.0f);
387  vtkGetMacro(AnaglyphColorSaturation, float);
389 
391 
405  vtkSetVector2Macro(AnaglyphColorMask, int);
406  vtkGetVectorMacro(AnaglyphColorMask, int, 2);
408 
414  virtual void WindowRemap() {}
415 
417 
420  vtkSetMacro(SwapBuffers, vtkTypeBool);
421  vtkGetMacro(SwapBuffers, vtkTypeBool);
422  vtkBooleanMacro(SwapBuffers, vtkTypeBool);
424 
426 
438  virtual int SetPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, unsigned char* /*data*/,
439  int /*front*/, int /*right*/ = 0)
440  {
441  return 0;
442  }
443  virtual int SetPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
444  vtkUnsignedCharArray* /*data*/, int /*front*/, int /*right*/ = 0)
445  {
446  return 0;
447  }
449 
451 
458  virtual float* GetRGBAPixelData(
459  int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/, int /*right*/ = 0)
460  {
461  return nullptr;
462  }
463  virtual int GetRGBAPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/,
464  vtkFloatArray* /*data*/, int /*right*/ = 0)
465  {
466  return 0;
467  }
468  virtual int SetRGBAPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float*, int /*front*/,
469  int /*blend*/ = 0, int /*right*/ = 0)
470  {
471  return 0;
472  }
473  virtual int SetRGBAPixelData(
474  int, int, int, int, vtkFloatArray*, int, int /*blend*/ = 0, int /*right*/ = 0)
475  {
476  return 0;
477  }
478  virtual void ReleaseRGBAPixelData(float* /*data*/) {}
479  virtual unsigned char* GetRGBACharPixelData(
480  int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/, int /*right*/ = 0)
481  {
482  return nullptr;
483  }
484  virtual int GetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, int /*front*/,
485  vtkUnsignedCharArray* /*data*/, int /*right*/ = 0)
486  {
487  return 0;
488  }
489  virtual int SetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
490  unsigned char* /*data*/, int /*front*/, int /*blend*/ = 0, int /*right*/ = 0)
491  {
492  return 0;
493  }
494  virtual int SetRGBACharPixelData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/,
495  vtkUnsignedCharArray* /*data*/, int /*front*/, int /*blend*/ = 0, int /*right*/ = 0)
496  {
497  return 0;
498  }
500 
502 
507  virtual float* GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/) { return nullptr; }
508  virtual int GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float* /*z*/)
509  {
510  return 0;
511  }
512  virtual int GetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, vtkFloatArray* /*z*/)
513  {
514  return 0;
515  }
516  virtual int SetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, float* /*z*/)
517  {
518  return 0;
519  }
520  virtual int SetZbufferData(int /*x*/, int /*y*/, int /*x2*/, int /*y2*/, vtkFloatArray* /*z*/)
521  {
522  return 0;
523  }
524  float GetZbufferDataAtPoint(int x, int y)
525  {
526  float value;
527  this->GetZbufferData(x, y, x, y, &value);
528  return value;
529  }
531 
533 
536  vtkGetMacro(NeverRendered, int);
538 
540 
544  vtkGetMacro(AbortRender, int);
545  vtkSetMacro(AbortRender, int);
546  vtkGetMacro(InAbortCheck, int);
547  vtkSetMacro(InAbortCheck, int);
548  virtual int CheckAbortStatus();
550 
552 
555  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
556  vtkTypeBool GetIsPicking();
557  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
558  void SetIsPicking(vtkTypeBool);
559  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
560  void IsPickingOn();
561  VTK_DEPRECATED_IN_9_0_0("Removed in 9.0")
562  void IsPickingOff();
564 
571  virtual vtkTypeBool GetEventPending() { return 0; }
572 
576  virtual int CheckInRenderStatus() { return this->InRender; }
577 
581  virtual void ClearInRenderStatus() { this->InRender = 0; }
582 
584 
592  virtual void SetDesiredUpdateRate(double);
593  vtkGetMacro(DesiredUpdateRate, double);
595 
597 
603  vtkGetMacro(NumberOfLayers, int);
604  vtkSetClampMacro(NumberOfLayers, int, 1, VTK_INT_MAX);
606 
608 
611  vtkGetObjectMacro(Interactor, vtkRenderWindowInteractor);
613 
617  virtual void SetInteractor(vtkRenderWindowInteractor*);
618 
623  void UnRegister(vtkObjectBase* o) override;
624 
626 
629  void SetDisplayId(void*) override {}
630  void SetWindowId(void*) override {}
631  virtual void SetNextWindowId(void*) {}
632  void SetParentId(void*) override {}
633  void* GetGenericDisplayId() override { return nullptr; }
634  void* GetGenericWindowId() override { return nullptr; }
635  void* GetGenericParentId() override { return nullptr; }
636  void* GetGenericContext() override { return nullptr; }
637  void* GetGenericDrawable() override { return nullptr; }
638  void SetWindowInfo(const char*) override {}
639  virtual void SetNextWindowInfo(const char*) {}
640  void SetParentInfo(const char*) override {}
642 
647  virtual bool InitializeFromCurrentContext() { return false; }
648 
650 
657  virtual void SetSharedRenderWindow(vtkRenderWindow*);
658  vtkGetObjectMacro(SharedRenderWindow, vtkRenderWindow);
659  virtual bool GetPlatformSupportsRenderWindowSharing() { return false; }
661 
666  void MakeCurrent() override {}
667 
672  virtual bool IsCurrent() { return false; }
673 
681  "Deprecated in 9.1 because no one knows what it's for and nothing uses it")
682  virtual bool IsDrawable();
683 
689  virtual void SetForceMakeCurrent() {}
690 
694  virtual const char* ReportCapabilities() { return "Not Implemented"; }
695 
699  virtual int SupportsOpenGL() { return 0; }
700 
704  virtual vtkTypeBool IsDirect() { return 0; }
705 
710  virtual int GetDepthBufferSize() { return 0; }
711 
716  virtual int GetColorBufferSizes(int* /*rgba*/) { return 0; }
717 
719 
723  virtual void SetMultiSamples(int);
724  vtkGetMacro(MultiSamples, int);
726 
728 
731  vtkSetMacro(StencilCapable, vtkTypeBool);
732  vtkGetMacro(StencilCapable, vtkTypeBool);
733  vtkBooleanMacro(StencilCapable, vtkTypeBool);
735 
737 
743  vtkSetMacro(DeviceIndex, int);
744  vtkGetMacro(DeviceIndex, int);
746 
750  virtual int GetNumberOfDevices() { return 0; }
751 
753 
757  vtkGetMacro(UseSRGBColorSpace, bool);
758  vtkSetMacro(UseSRGBColorSpace, bool);
759  vtkBooleanMacro(UseSRGBColorSpace, bool);
761 
762 protected:
763  vtkRenderWindow();
764  ~vtkRenderWindow() override;
765 
766  virtual void DoStereoRender();
767 
772  int OldScreen[5];
787  int InRender;
792  int AnaglyphColorMask[2];
797 
800 
805 
807 
808 private:
809  vtkRenderWindow(const vtkRenderWindow&) = delete;
810  void operator=(const vtkRenderWindow&) = delete;
811 
812  vtkNew<vtkStereoCompositor> StereoCompositor;
813 };
814 
815 #endif
vtkRenderWindow::SharedRenderWindow
vtkRenderWindow * SharedRenderWindow
Definition: vtkRenderWindow.h:806
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:438
VTK_STEREO_RIGHT
#define VTK_STEREO_RIGHT
Definition: vtkRenderWindow.h:74
vtkRenderWindow::StereoRender
vtkTypeBool StereoRender
Definition: vtkRenderWindow.h:776
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:147
vtkRenderWindow::PointSmoothing
vtkTypeBool PointSmoothing
Definition: vtkRenderWindow.h:773
vtkRenderWindow::SwapBuffers
vtkTypeBool SwapBuffers
Definition: vtkRenderWindow.h:783
vtkRenderWindow::NeverRendered
int NeverRendered
Definition: vtkRenderWindow.h:788
vtkRenderWindow::FullScreen
vtkTypeBool FullScreen
Definition: vtkRenderWindow.h:771
vtkRenderWindow::GetZbufferData
virtual int GetZbufferData(int, int, int, int, float *)
Definition: vtkRenderWindow.h:508
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:473
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:494
vtkRenderWindow::SetWindowInfo
void SetWindowInfo(const char *) override
Definition: vtkRenderWindow.h:638
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:337
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:35
vtkRenderWindow::SetStereoTypeToCheckerboard
void SetStereoTypeToCheckerboard()
Definition: vtkRenderWindow.h:343
vtkRenderWindow::CursorFileName
char * CursorFileName
Definition: vtkRenderWindow.h:799
vtkRenderWindow::SetWindowId
void SetWindowId(void *) override
Definition: vtkRenderWindow.h:630
vtkSmartPointer< vtkUnsignedCharArray >
vtkRenderWindow::GetZbufferDataAtPoint
float GetZbufferDataAtPoint(int x, int y)
Definition: vtkRenderWindow.h:524
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:635
vtkRenderWindow::InRender
int InRender
Definition: vtkRenderWindow.h:787
vtkRenderWindow::SetRGBACharPixelData
virtual int SetRGBACharPixelData(int, int, int, int, unsigned char *, int, int=0, int=0)
Definition: vtkRenderWindow.h:489
vtkRenderWindow::Renderers
vtkRendererCollection * Renderers
Definition: vtkRenderWindow.h:768
vtkRenderWindow::SetStereoTypeToEmulate
void SetStereoTypeToEmulate()
Definition: vtkRenderWindow.h:349
vtkRendererCollection
an ordered list of renderers
Definition: vtkRendererCollection.h:34
vtkRenderWindow::SetNextWindowInfo
virtual void SetNextWindowInfo(const char *)
Definition: vtkRenderWindow.h:639
vtkRenderWindow::InAbortCheck
int InAbortCheck
Definition: vtkRenderWindow.h:786
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:190
VTK_STEREO_SPLITVIEWPORT_HORIZONTAL
#define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL
Definition: vtkRenderWindow.h:78
vtkRenderWindow::GetGenericDrawable
void * GetGenericDrawable() override
Definition: vtkRenderWindow.h:637
vtkRenderWindow::GetGenericDisplayId
void * GetGenericDisplayId() override
Definition: vtkRenderWindow.h:633
vtkRenderWindow::GetRenderers
vtkRendererCollection * GetRenderers()
Return the collection of renderers in the render window.
Definition: vtkRenderWindow.h:141
vtkRenderWindow::SetZbufferData
virtual int SetZbufferData(int, int, int, int, float *)
Definition: vtkRenderWindow.h:516
vtkRenderWindow::WindowRemap
virtual void WindowRemap()
Remap the rendering window.
Definition: vtkRenderWindow.h:414
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:507
vtkRenderWindow::ShowCursor
virtual void ShowCursor()
Definition: vtkRenderWindow.h:213
vtkRenderWindow::StereoType
int StereoType
Definition: vtkRenderWindow.h:777
vtkRenderWindow::AnaglyphColorSaturation
float AnaglyphColorSaturation
Definition: vtkRenderWindow.h:791
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:212
vtkRenderWindow::SetDisplayId
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
Definition: vtkRenderWindow.h:629
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:52
vtkRenderWindow::GetPlatformSupportsRenderWindowSharing
virtual bool GetPlatformSupportsRenderWindowSharing()
Definition: vtkRenderWindow.h:659
vtkRenderWindow::SetZbufferData
virtual int SetZbufferData(int, int, int, int, vtkFloatArray *)
Definition: vtkRenderWindow.h:520
vtkRenderWindow::GetRGBACharPixelData
virtual unsigned char * GetRGBACharPixelData(int, int, int, int, int, int=0)
Definition: vtkRenderWindow.h:479
vtkRenderWindow::Finalize
virtual void Finalize()
Finalize the rendering process.
Definition: vtkRenderWindow.h:178
vtkRenderWindow::SetStereoTypeToAnaglyph
void SetStereoTypeToAnaglyph()
Definition: vtkRenderWindow.h:342
vtkRenderWindow::ReleaseRGBAPixelData
virtual void ReleaseRGBAPixelData(float *)
Definition: vtkRenderWindow.h:478
vtkRenderWindow::DeviceIndex
int DeviceIndex
Definition: vtkRenderWindow.h:796
vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:69
vtkRenderWindow::SetNextWindowId
virtual void SetNextWindowId(void *)
Definition: vtkRenderWindow.h:631
vtkRenderWindow::GetColorBufferSizes
virtual int GetColorBufferSizes(int *)
Get the size of the color buffer.
Definition: vtkRenderWindow.h:716
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:484
vtkRenderWindow::CurrentCursor
int CurrentCursor
Definition: vtkRenderWindow.h:790
vtkRenderWindow::Interactor
vtkRenderWindowInteractor * Interactor
Definition: vtkRenderWindow.h:780
vtkRenderWindow::MakeCurrent
void MakeCurrent() override
Attempt to make this window the current graphics context for the calling thread.
Definition: vtkRenderWindow.h:666
VTK_STEREO_INTERLACED
#define VTK_STEREO_INTERLACED
Definition: vtkRenderWindow.h:72
vtkRenderWindow::CapturingGL2PSSpecialProps
int CapturingGL2PSSpecialProps
Definition: vtkRenderWindow.h:795
vtkRenderWindow::IsDirect
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
Definition: vtkRenderWindow.h:704
VTK_STEREO_LEFT
#define VTK_STEREO_LEFT
Definition: vtkRenderWindow.h:73
vtkRenderWindow::SetStereoTypeToLeft
void SetStereoTypeToLeft()
Definition: vtkRenderWindow.h:339
vtkRenderWindow::UseSRGBColorSpace
bool UseSRGBColorSpace
Definition: vtkRenderWindow.h:798
VTK_STEREO_ANAGLYPH
#define VTK_STEREO_ANAGLYPH
Definition: vtkRenderWindow.h:76
vtkRenderWindow::StencilCapable
vtkTypeBool StencilCapable
Definition: vtkRenderWindow.h:794
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:778
vtkRenderWindow::Borders
vtkTypeBool Borders
Definition: vtkRenderWindow.h:770
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:458
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:782
vtkNew< vtkRenderTimerLog >
vtkRenderWindow::GetZbufferData
virtual int GetZbufferData(int, int, int, int, vtkFloatArray *)
Definition: vtkRenderWindow.h:512
vtkRenderWindow::DesiredUpdateRate
double DesiredUpdateRate
Definition: vtkRenderWindow.h:784
vtkRenderWindow::SetParentInfo
void SetParentInfo(const char *) override
Definition: vtkRenderWindow.h:640
vtkRenderWindow::ReportCapabilities
virtual const char * ReportCapabilities()
Get report of capabilities for the render window.
Definition: vtkRenderWindow.h:694
vtkRenderWindow::SetStereoTypeToRight
void SetStereoTypeToRight()
Definition: vtkRenderWindow.h:340
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:184
vtkRenderWindow::GetDepthBufferSize
virtual int GetDepthBufferSize()
This method should be defined by the subclass.
Definition: vtkRenderWindow.h:710
vtkRenderWindow::End
virtual void End()
Update the system, if needed, at end of render process.
Definition: vtkRenderWindow.h:173
vtkRenderWindow::SetParentId
void SetParentId(void *) override
Definition: vtkRenderWindow.h:632
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:804
vtkRenderWindow::NumberOfLayers
int NumberOfLayers
Definition: vtkRenderWindow.h:789
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:750
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:168
vtkRenderWindow::SetStereoTypeToCrystalEyes
void SetStereoTypeToCrystalEyes()
Definition: vtkRenderWindow.h:336
vtkRenderWindow::SetCursorPosition
virtual void SetCursorPosition(int, int)
Definition: vtkRenderWindow.h:214
vtkRenderWindow::GetRGBAPixelData
virtual int GetRGBAPixelData(int, int, int, int, int, vtkFloatArray *, int=0)
Definition: vtkRenderWindow.h:463
vtkRenderWindow::SetPixelData
virtual int SetPixelData(int, int, int, int, vtkUnsignedCharArray *, int, int=0)
Definition: vtkRenderWindow.h:443
vtkNew.h
vtkDeprecation.h
VTK_STEREO_FAKE
#define VTK_STEREO_FAKE
Definition: vtkRenderWindow.h:79
vtkRenderWindow::MultiSamples
int MultiSamples
Definition: vtkRenderWindow.h:793
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:348
vtkRenderWindow::SetFullScreen
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
Definition: vtkRenderWindow.h:238
vtkRenderWindow::AbortRender
int AbortRender
Definition: vtkRenderWindow.h:785
VTK_STEREO_DRESDEN
#define VTK_STEREO_DRESDEN
Definition: vtkRenderWindow.h:75
vtkRenderWindow::SetStereoTypeToDresden
void SetStereoTypeToDresden()
Definition: vtkRenderWindow.h:341
vtkRenderWindow::SetStereoTypeToInterlaced
void SetStereoTypeToInterlaced()
Definition: vtkRenderWindow.h:338
vtkRenderWindow::SupportsOpenGL
virtual int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
Definition: vtkRenderWindow.h:699
vtkRenderWindow::AlphaBitPlanes
vtkTypeBool AlphaBitPlanes
Definition: vtkRenderWindow.h:779
vtkRenderWindow::SetRGBAPixelData
virtual int SetRGBAPixelData(int, int, int, int, float *, int, int=0, int=0)
Definition: vtkRenderWindow.h:468
vtkRenderWindow::LineSmoothing
vtkTypeBool LineSmoothing
Definition: vtkRenderWindow.h:774
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:95
vtkRenderWindow::InitializeFromCurrentContext
virtual bool InitializeFromCurrentContext()
Initialize the render window from the information associated with the currently activated OpenGL cont...
Definition: vtkRenderWindow.h:647
vtkRenderWindow::GetGenericContext
void * GetGenericContext() override
Definition: vtkRenderWindow.h:636
vtkRenderWindow::ClearInRenderStatus
virtual void ClearInRenderStatus()
Clear status (after an exception was thrown for example)
Definition: vtkRenderWindow.h:581
vtkRenderWindow::CheckInRenderStatus
virtual int CheckInRenderStatus()
Are we rendering at the moment.
Definition: vtkRenderWindow.h:576
vtkRenderWindow::IsCurrent
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
Definition: vtkRenderWindow.h:672
vtkRenderWindow::GetGenericWindowId
void * GetGenericWindowId() override
Definition: vtkRenderWindow.h:634
vtkRenderWindow::StereoBuffer
vtkSmartPointer< vtkUnsignedCharArray > StereoBuffer
Definition: vtkRenderWindow.h:781
vtkRenderWindow::RenderTimer
vtkNew< vtkRenderTimerLog > RenderTimer
Definition: vtkRenderWindow.h:769
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:775
vtkRenderWindow::SetStereoTypeToSplitViewportHorizontal
void SetStereoTypeToSplitViewportHorizontal()
Definition: vtkRenderWindow.h:344
VTK_STEREO_CHECKERBOARD
#define VTK_STEREO_CHECKERBOARD
Definition: vtkRenderWindow.h:77