VTK
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 =========================================================================*/
47 #ifndef vtkRenderWindow_h
48 #define vtkRenderWindow_h
49 
50 #include "vtkRenderingCoreModule.h" // For export macro
51 #include "vtkWindow.h"
52 #include "vtkNew.h" // For vtkNew
53 
54 class vtkFloatArray;
55 class vtkProp;
56 class vtkCollection;
57 class vtkRenderTimerLog;
59 class vtkRenderer;
62 
63 // lets define the different types of stereo
64 #define VTK_STEREO_CRYSTAL_EYES 1
65 #define VTK_STEREO_RED_BLUE 2
66 #define VTK_STEREO_INTERLACED 3
67 #define VTK_STEREO_LEFT 4
68 #define VTK_STEREO_RIGHT 5
69 #define VTK_STEREO_DRESDEN 6
70 #define VTK_STEREO_ANAGLYPH 7
71 #define VTK_STEREO_CHECKERBOARD 8
72 #define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL 9
73 #define VTK_STEREO_FAKE 10
74 
75 #define VTK_CURSOR_DEFAULT 0
76 #define VTK_CURSOR_ARROW 1
77 #define VTK_CURSOR_SIZENE 2
78 #define VTK_CURSOR_SIZENW 3
79 #define VTK_CURSOR_SIZESW 4
80 #define VTK_CURSOR_SIZESE 5
81 #define VTK_CURSOR_SIZENS 6
82 #define VTK_CURSOR_SIZEWE 7
83 #define VTK_CURSOR_SIZEALL 8
84 #define VTK_CURSOR_HAND 9
85 #define VTK_CURSOR_CROSSHAIR 10
86 
87 class VTKRENDERINGCORE_EXPORT vtkRenderWindow : public vtkWindow
88 {
89 public:
90  vtkTypeMacro(vtkRenderWindow,vtkWindow);
91  void PrintSelf(ostream& os, vtkIndent indent) override;
92 
98  static vtkRenderWindow *New();
99 
103  virtual void AddRenderer(vtkRenderer *);
104 
109 
114 
118  static const char *GetRenderLibrary();
119 
123  virtual const char *GetRenderingBackend();
124 
129 
130 
133  vtkRendererCollection *GetRenderers() {return this->Renderers;};
134 
143 
145 
148  vtkGetMacro(CapturingGL2PSSpecialProps, int);
150 
155  void Render() override;
156 
160  virtual void Start() = 0;
161 
165  virtual void Finalize() = 0;
166 
171  virtual void Frame() = 0;
172 
177  virtual void WaitForCompletion()=0;
178 
183  virtual void CopyResultFrame();
184 
191 
193 
199  virtual void HideCursor() = 0;
200  virtual void ShowCursor() = 0;
201  virtual void SetCursorPosition(int , int ) {}
203 
205 
208  vtkSetMacro(CurrentCursor,int);
209  vtkGetMacro(CurrentCursor,int);
211 
213 
216  virtual void SetFullScreen(vtkTypeBool) = 0;
217  vtkGetMacro(FullScreen,vtkTypeBool);
218  vtkBooleanMacro(FullScreen,vtkTypeBool);
220 
222 
227  vtkSetMacro(Borders,vtkTypeBool);
228  vtkGetMacro(Borders,vtkTypeBool);
229  vtkBooleanMacro(Borders,vtkTypeBool);
231 
233 
237  vtkGetMacro(StereoCapableWindow,vtkTypeBool);
238  vtkBooleanMacro(StereoCapableWindow,vtkTypeBool);
239  virtual void SetStereoCapableWindow(vtkTypeBool capable);
241 
243 
246  vtkGetMacro(StereoRender,vtkTypeBool);
248  vtkBooleanMacro(StereoRender,vtkTypeBool);
250 
252 
255  vtkSetMacro(AlphaBitPlanes, vtkTypeBool);
256  vtkGetMacro(AlphaBitPlanes, vtkTypeBool);
257  vtkBooleanMacro(AlphaBitPlanes, vtkTypeBool);
259 
261 
265  vtkSetMacro(PointSmoothing,vtkTypeBool);
266  vtkGetMacro(PointSmoothing,vtkTypeBool);
267  vtkBooleanMacro(PointSmoothing,vtkTypeBool);
269 
271 
275  vtkSetMacro(LineSmoothing,vtkTypeBool);
276  vtkGetMacro(LineSmoothing,vtkTypeBool);
277  vtkBooleanMacro(LineSmoothing,vtkTypeBool);
279 
281 
285  vtkSetMacro(PolygonSmoothing,vtkTypeBool);
286  vtkGetMacro(PolygonSmoothing,vtkTypeBool);
287  vtkBooleanMacro(PolygonSmoothing,vtkTypeBool);
289 
291 
309  vtkGetMacro(StereoType,int);
310  void SetStereoType(int);
312  {this->SetStereoType(VTK_STEREO_CRYSTAL_EYES);}
314  {this->SetStereoType(VTK_STEREO_RED_BLUE);}
316  {this->SetStereoType(VTK_STEREO_INTERLACED);}
318  {this->SetStereoType(VTK_STEREO_LEFT);}
320  {this->SetStereoType(VTK_STEREO_RIGHT);}
322  {this->SetStereoType(VTK_STEREO_DRESDEN);}
324  {this->SetStereoType(VTK_STEREO_ANAGLYPH);}
326  {this->SetStereoType(VTK_STEREO_CHECKERBOARD);}
328  {this->SetStereoType(VTK_STEREO_SPLITVIEWPORT_HORIZONTAL);}
330  {this->SetStereoType(VTK_STEREO_FAKE);}
332 
333  const char *GetStereoTypeAsString();
334 
339  virtual void StereoUpdate();
340 
345  virtual void StereoMidpoint();
346 
351  virtual void StereoRenderComplete();
352 
354 
361  vtkSetClampMacro(AnaglyphColorSaturation,float, 0.0f, 1.0f);
362  vtkGetMacro(AnaglyphColorSaturation,float);
364 
366 
380  vtkSetVector2Macro(AnaglyphColorMask,int);
381  vtkGetVectorMacro(AnaglyphColorMask,int,2);
383 
389  virtual void WindowRemap() = 0;
390 
392 
395  vtkSetMacro(SwapBuffers,vtkTypeBool);
396  vtkGetMacro(SwapBuffers,vtkTypeBool);
397  vtkBooleanMacro(SwapBuffers,vtkTypeBool);
399 
401 
413  virtual int SetPixelData(int x, int y, int x2, int y2, unsigned char *data,
414  int front, int right=0) = 0;
415  virtual int SetPixelData(int x, int y, int x2, int y2,
416  vtkUnsignedCharArray *data, int front, int right=0) = 0;
418 
420 
427  virtual float *GetRGBAPixelData(int x, int y, int x2, int y2, int front, int right=0) = 0;
428  virtual int GetRGBAPixelData(int x, int y, int x2, int y2, int front,
429  vtkFloatArray *data, int right=0) = 0;
430  virtual int SetRGBAPixelData(int x, int y, int x2, int y2, float *,
431  int front, int blend=0, int right=0) = 0;
432  virtual int SetRGBAPixelData(int, int, int, int, vtkFloatArray*,
433  int, int blend=0, int right=0) = 0;
434  virtual void ReleaseRGBAPixelData(float *data) = 0;
435  virtual unsigned char *GetRGBACharPixelData(int x, int y, int x2, int y2,
436  int front, int right=0) = 0;
437  virtual int GetRGBACharPixelData(int x, int y, int x2, int y2, int front,
438  vtkUnsignedCharArray *data, int right=0) = 0;
439  virtual int SetRGBACharPixelData(int x,int y, int x2, int y2,
440  unsigned char *data, int front,
441  int blend=0, int right=0) = 0;
442  virtual int SetRGBACharPixelData(int x, int y, int x2, int y2,
443  vtkUnsignedCharArray *data, int front,
444  int blend=0, int right=0) = 0;
446 
448 
453  virtual float *GetZbufferData(int x, int y, int x2, int y2) = 0;
454  virtual int GetZbufferData(int x, int y, int x2, int y2, float *z) = 0;
455  virtual int GetZbufferData(int x, int y, int x2, int y2,
456  vtkFloatArray *z) = 0;
457  virtual int SetZbufferData(int x, int y, int x2, int y2, float *z) = 0;
458  virtual int SetZbufferData(int x, int y, int x2, int y2,
459  vtkFloatArray *z) = 0;
460  float GetZbufferDataAtPoint(int x, int y)
461  {
462  float value;
463  this->GetZbufferData(x, y, x, y, &value);
464  return value;
465  }
467 
469 
472  vtkGetMacro(NeverRendered,int);
474 
476 
480  vtkGetMacro(AbortRender,int);
481  vtkSetMacro(AbortRender,int);
482  vtkGetMacro(InAbortCheck,int);
483  vtkSetMacro(InAbortCheck,int);
484  virtual int CheckAbortStatus();
486 
487  vtkGetMacro(IsPicking,vtkTypeBool);
488  vtkSetMacro(IsPicking,vtkTypeBool);
489  vtkBooleanMacro(IsPicking,vtkTypeBool);
490 
497  virtual int GetEventPending() = 0;
498 
502  virtual int CheckInRenderStatus() { return this->InRender; }
503 
507  virtual void ClearInRenderStatus() { this->InRender = 0; }
508 
510 
518  virtual void SetDesiredUpdateRate(double);
519  vtkGetMacro(DesiredUpdateRate,double);
521 
523 
529  vtkGetMacro(NumberOfLayers, int);
530  vtkSetClampMacro(NumberOfLayers, int, 1, VTK_INT_MAX);
532 
534 
537  vtkGetObjectMacro(Interactor,vtkRenderWindowInteractor);
539 
544 
549  void UnRegister(vtkObjectBase *o) override;
550 
552 
555  void SetDisplayId(void *) override = 0;
556  void SetWindowId(void *) override = 0;
557  virtual void SetNextWindowId(void *) = 0;
558  void SetParentId(void *) override = 0;
559  void *GetGenericDisplayId() override = 0;
560  void *GetGenericWindowId() override = 0;
561  void *GetGenericParentId() override = 0;
562  void *GetGenericContext() override = 0;
563  void *GetGenericDrawable() override = 0;
564  void SetWindowInfo(const char *) override = 0;
565  virtual void SetNextWindowInfo(const char *) = 0;
566  void SetParentInfo(const char *) override = 0;
568 
573  virtual bool InitializeFromCurrentContext() { return false; };
574 
576 
584  vtkGetObjectMacro(SharedRenderWindow, vtkRenderWindow);
585  virtual bool GetPlatformSupportsRenderWindowSharing() { return false; };
587 
592  void MakeCurrent() override = 0;
593 
598  virtual bool IsCurrent()=0;
599 
606  virtual bool IsDrawable(){ return true; }
607 
613  virtual void SetForceMakeCurrent() {}
614 
618  virtual const char *ReportCapabilities() { return "Not Implemented";};
619 
623  virtual int SupportsOpenGL() { return 0;};
624 
628  virtual int IsDirect() { return 0;};
629 
634  virtual int GetDepthBufferSize() = 0;
635 
640  virtual int GetColorBufferSizes(int *rgba) = 0;
641 
643 
646  vtkSetMacro(MultiSamples,int);
647  vtkGetMacro(MultiSamples,int);
649 
651 
654  vtkSetMacro(StencilCapable, vtkTypeBool);
655  vtkGetMacro(StencilCapable, vtkTypeBool);
656  vtkBooleanMacro(StencilCapable, vtkTypeBool);
658 
660 
666  vtkSetMacro(DeviceIndex,int);
667  vtkGetMacro(DeviceIndex,int);
669 
673  virtual int GetNumberOfDevices()
674  {
675  return 0;
676  }
677 
686  virtual int SetUseOffScreenBuffers(bool) { return 0; }
687  virtual bool GetUseOffScreenBuffers() { return false; }
688 
690 
694  vtkGetMacro(UseSRGBColorSpace, bool);
695  vtkSetMacro(UseSRGBColorSpace, bool);
696  vtkBooleanMacro(UseSRGBColorSpace, bool);
698 
699 protected:
701  ~vtkRenderWindow() override;
702 
703  virtual void DoStereoRender();
704 
709  int OldScreen[5];
718  unsigned char* StereoBuffer; // used for red blue stereo
719  float *AccumulationBuffer; // used for many techniques
721  unsigned char *ResultFrame;
726  int InRender;
732  int AnaglyphColorMask[2];
737 
739 
744 
746 
747 private:
748  vtkRenderWindow(const vtkRenderWindow&) = delete;
749  void operator=(const vtkRenderWindow&) = delete;
750 };
751 
752 #endif
vtkRenderWindow::ResultFrame
unsigned char * ResultFrame
Definition: vtkRenderWindow.h:721
vtkRenderWindow::SharedRenderWindow
vtkRenderWindow * SharedRenderWindow
Definition: vtkRenderWindow.h:745
VTK_STEREO_RIGHT
#define VTK_STEREO_RIGHT
Definition: vtkRenderWindow.h:68
vtkRenderWindow::RemoveRenderer
void RemoveRenderer(vtkRenderer *)
Remove a renderer from the list of renderers.
vtkRenderWindow::StereoRender
vtkTypeBool StereoRender
Definition: vtkRenderWindow.h:713
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:159
vtkRenderWindow::PointSmoothing
vtkTypeBool PointSmoothing
Definition: vtkRenderWindow.h:710
vtkRenderWindow::StereoBuffer
unsigned char * StereoBuffer
Definition: vtkRenderWindow.h:718
vtkRenderWindow::SwapBuffers
vtkTypeBool SwapBuffers
Definition: vtkRenderWindow.h:722
vtkRenderWindow::UnRegister
void UnRegister(vtkObjectBase *o) override
This Method detects loops of RenderWindow<->Interactor, so objects are freed properly.
vtkRenderWindow::NeverRendered
int NeverRendered
Definition: vtkRenderWindow.h:727
vtkRenderWindow::AccumulationBufferSize
unsigned int AccumulationBufferSize
Definition: vtkRenderWindow.h:720
vtkRenderWindow::Start
virtual void Start()=0
Initialize the rendering process.
vtkRenderWindow::FullScreen
vtkTypeBool FullScreen
Definition: vtkRenderWindow.h:708
VTK_STEREO_RED_BLUE
#define VTK_STEREO_RED_BLUE
Definition: vtkRenderWindow.h:65
vtkRenderWindow::SetDesiredUpdateRate
virtual void SetDesiredUpdateRate(double)
Set/Get the desired update rate.
vtkRenderWindow::StereoRenderComplete
virtual void StereoRenderComplete()
Handles work required once both views have been rendered when using stereo rendering.
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkRenderWindow::GetUseOffScreenBuffers
virtual bool GetUseOffScreenBuffers()
Definition: vtkRenderWindow.h:687
vtkRenderWindow::GetColorBufferSizes
virtual int GetColorBufferSizes(int *rgba)=0
Get the size of the color buffer.
vtkRenderWindow::GetDepthBufferSize
virtual int GetDepthBufferSize()=0
This method should be defined by the subclass.
vtkRenderWindow::ShowCursor
virtual void ShowCursor()=0
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkRenderWindow::IsPicking
vtkTypeBool IsPicking
Definition: vtkRenderWindow.h:730
vtkRenderWindow::DoStereoRender
virtual void DoStereoRender()
vtkRenderWindow::GetRGBAPixelData
virtual float * GetRGBAPixelData(int x, int y, int x2, int y2, int front, int right=0)=0
Same as Get/SetPixelData except that the image also contains an alpha component.
vtkRenderWindow::SetStereoTypeToRedBlue
void SetStereoTypeToRedBlue()
Definition: vtkRenderWindow.h:313
vtkRenderWindow::SetRGBACharPixelData
virtual int SetRGBACharPixelData(int x, int y, int x2, int y2, vtkUnsignedCharArray *data, int front, int blend=0, int right=0)=0
vtkRenderWindow::SetUseOffScreenBuffers
virtual int SetUseOffScreenBuffers(bool)
Create and bind offscreen rendering buffers without destroying the current OpenGL context.
Definition: vtkRenderWindow.h:686
vtkRenderWindow::GetZbufferData
virtual int GetZbufferData(int x, int y, int x2, int y2, float *z)=0
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:42
vtkRenderWindow::SetStereoTypeToCheckerboard
void SetStereoTypeToCheckerboard()
Definition: vtkRenderWindow.h:325
vtkRenderWindow::SetZbufferData
virtual int SetZbufferData(int x, int y, int x2, int y2, vtkFloatArray *z)=0
vtkRenderWindow::GetZbufferDataAtPoint
float GetZbufferDataAtPoint(int x, int y)
Definition: vtkRenderWindow.h:460
vtkRenderWindow::HideCursor
virtual void HideCursor()=0
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
vtkRenderWindow::Finalize
virtual void Finalize()=0
Finalize the rendering process.
vtkRenderWindow::SetFullScreen
virtual void SetFullScreen(vtkTypeBool)=0
Turn on/off rendering full screen window size.
vtkRenderWindow::InRender
int InRender
Definition: vtkRenderWindow.h:726
vtkRenderWindow::SetDisplayId
void SetDisplayId(void *) override=0
Dummy stubs for vtkWindow API.
vtkRenderWindow::Renderers
vtkRendererCollection * Renderers
Definition: vtkRenderWindow.h:705
vtkRendererCollection
an ordered list of renderers
Definition: vtkRendererCollection.h:35
vtkRenderWindow::IsCurrent
virtual bool IsCurrent()=0
Tells if this window is the current graphics context for the calling thread.
vtkRenderWindow::InAbortCheck
int InAbortCheck
Definition: vtkRenderWindow.h:725
VTK_STEREO_CRYSTAL_EYES
#define VTK_STEREO_CRYSTAL_EYES
Definition: vtkRenderWindow.h:64
VTK_STEREO_SPLITVIEWPORT_HORIZONTAL
#define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL
Definition: vtkRenderWindow.h:72
vtkRenderWindow::SetWindowId
void SetWindowId(void *) override=0
vtkRenderWindow::SetForceMakeCurrent
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
Definition: vtkRenderWindow.h:613
vtkRenderWindow::WindowRemap
virtual void WindowRemap()=0
Remap the rendering window.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkRenderWindow::SetParentId
void SetParentId(void *) override=0
vtkRenderWindow::StereoType
int StereoType
Definition: vtkRenderWindow.h:714
vtkRenderWindow::AnaglyphColorSaturation
float AnaglyphColorSaturation
Definition: vtkRenderWindow.h:731
vtkRenderWindow::CopyResultFrame
virtual void CopyResultFrame()
Performed at the end of the rendering process to generate image.
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:52
vtkRenderWindow::GetPlatformSupportsRenderWindowSharing
virtual bool GetPlatformSupportsRenderWindowSharing()
Definition: vtkRenderWindow.h:585
vtkRenderWindow::SetPixelData
virtual int SetPixelData(int x, int y, int x2, int y2, vtkUnsignedCharArray *data, int front, int right=0)=0
vtkRenderWindow::StereoMidpoint
virtual void StereoMidpoint()
Intermediate method performs operations required between the rendering of the left and right eye.
vtkRenderWindow::SetNextWindowInfo
virtual void SetNextWindowInfo(const char *)=0
vtkRenderWindow::SetInteractor
void SetInteractor(vtkRenderWindowInteractor *)
Set the interactor to the render window.
vtkRenderWindow::SetStereoTypeToAnaglyph
void SetStereoTypeToAnaglyph()
Definition: vtkRenderWindow.h:323
vtkRenderWindow::GetGenericParentId
void * GetGenericParentId() override=0
vtkRenderWindow::DeviceIndex
int DeviceIndex
Definition: vtkRenderWindow.h:736
vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:66
vtkRenderWindow::CurrentCursor
int CurrentCursor
Definition: vtkRenderWindow.h:729
vtkRenderWindow::Interactor
vtkRenderWindowInteractor * Interactor
Definition: vtkRenderWindow.h:717
vtkRenderWindow::SetRGBAPixelData
virtual int SetRGBAPixelData(int, int, int, int, vtkFloatArray *, int, int blend=0, int right=0)=0
vtkRenderWindow::GetGenericDrawable
void * GetGenericDrawable() override=0
vtkRenderWindow::SetStereoType
void SetStereoType(int)
VTK_STEREO_INTERLACED
#define VTK_STEREO_INTERLACED
Definition: vtkRenderWindow.h:66
vtkRenderWindow::HasRenderer
int HasRenderer(vtkRenderer *)
Query if a renderer is in the list of renderers.
vtkRenderWindow::MakeRenderWindowInteractor
virtual vtkRenderWindowInteractor * MakeRenderWindowInteractor()
Create an interactor to control renderers in this window.
vtkRenderWindow::CapturingGL2PSSpecialProps
int CapturingGL2PSSpecialProps
Definition: vtkRenderWindow.h:735
vtkRenderWindow::GetZbufferData
virtual float * GetZbufferData(int x, int y, int x2, int y2)=0
Set/Get the zbuffer data from the frame buffer.
VTK_STEREO_LEFT
#define VTK_STEREO_LEFT
Definition: vtkRenderWindow.h:67
vtkRenderWindow::SetStereoTypeToLeft
void SetStereoTypeToLeft()
Definition: vtkRenderWindow.h:317
vtkRenderWindow::UseSRGBColorSpace
bool UseSRGBColorSpace
Definition: vtkRenderWindow.h:738
VTK_STEREO_ANAGLYPH
#define VTK_STEREO_ANAGLYPH
Definition: vtkRenderWindow.h:70
vtkRenderWindow::AddRenderer
virtual void AddRenderer(vtkRenderer *)
Add a renderer to the list of renderers.
vtkRenderWindow::StencilCapable
vtkTypeBool StencilCapable
Definition: vtkRenderWindow.h:734
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkRenderWindow::Render
void Render() override
Ask each renderer owned by this RenderWindow to render its image and synchronize this process.
vtkRenderWindow::SetPixelData
virtual int SetPixelData(int x, int y, int x2, int y2, unsigned char *data, int front, int right=0)=0
Set/Get the pixel data of an image, transmitted as RGBRGBRGB.
vtkRenderWindow::GetGenericContext
void * GetGenericContext() override=0
vtkRenderWindow::SetWindowInfo
void SetWindowInfo(const char *) override=0
vtkRenderWindow::GetGenericDisplayId
void * GetGenericDisplayId() override=0
vtkRenderWindow::StereoCapableWindow
vtkTypeBool StereoCapableWindow
Definition: vtkRenderWindow.h:715
vtkRenderWindow::Borders
vtkTypeBool Borders
Definition: vtkRenderWindow.h:707
vtkRenderWindow::WaitForCompletion
virtual void WaitForCompletion()=0
Block the thread until the actual rendering is finished().
vtkNew< vtkRenderTimerLog >
vtkRenderWindow::GetGenericWindowId
void * GetGenericWindowId() override=0
vtkRenderWindow::GetRGBAPixelData
virtual int GetRGBAPixelData(int x, int y, int x2, int y2, int front, vtkFloatArray *data, int right=0)=0
vtkRenderWindow::MakeCurrent
void MakeCurrent() override=0
Attempt to make this window the current graphics context for the calling thread.
vtkRenderWindow::DesiredUpdateRate
double DesiredUpdateRate
Definition: vtkRenderWindow.h:723
vtkRenderWindow::ReportCapabilities
virtual const char * ReportCapabilities()
Get report of capabilities for the render window.
Definition: vtkRenderWindow.h:618
vtkRenderWindow::SetStereoTypeToRight
void SetStereoTypeToRight()
Definition: vtkRenderWindow.h:319
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:79
vtkRenderWindow::SetStereoCapableWindow
virtual void SetStereoCapableWindow(vtkTypeBool capable)
vtkRenderTimerLog
Asynchronously measures GPU execution times for a series of events.
Definition: vtkRenderTimerLog.h:82
vtkRenderWindow::AbortCheckTime
double AbortCheckTime
The universal time since the last abort check occurred.
Definition: vtkRenderWindow.h:743
vtkRenderWindow::NumberOfLayers
int NumberOfLayers
Definition: vtkRenderWindow.h:728
vtkRenderWindow::GetStereoTypeAsString
const char * GetStereoTypeAsString()
vtkRenderWindow::GetNumberOfDevices
virtual int GetNumberOfDevices()
Returns the number of devices (graphics cards) on a system.
Definition: vtkRenderWindow.h:673
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:53
vtkRenderWindow::vtkGetNewMacro
vtkGetNewMacro(RenderTimer, vtkRenderTimerLog) vtkRendererCollection *GetRenderers()
Get the render timer log for this window.
Definition: vtkRenderWindow.h:128
vtkRenderWindow::SetStereoTypeToCrystalEyes
void SetStereoTypeToCrystalEyes()
Definition: vtkRenderWindow.h:311
vtkRenderWindow::SetZbufferData
virtual int SetZbufferData(int x, int y, int x2, int y2, float *z)=0
vtkRenderWindow::SetCursorPosition
virtual void SetCursorPosition(int, int)
Definition: vtkRenderWindow.h:201
vtkRenderWindow::SetRGBAPixelData
virtual int SetRGBAPixelData(int x, int y, int x2, int y2, float *, int front, int blend=0, int right=0)=0
vtkNew.h
VTK_STEREO_FAKE
#define VTK_STEREO_FAKE
Definition: vtkRenderWindow.h:73
vtkRenderWindow::MultiSamples
int MultiSamples
Definition: vtkRenderWindow.h:733
vtkRenderWindow::IsDrawable
virtual bool IsDrawable()
Test if the window has a valid drawable.
Definition: vtkRenderWindow.h:606
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkRenderWindow::SetStereoTypeToFake
void SetStereoTypeToFake()
Definition: vtkRenderWindow.h:329
vtkRenderWindow::SetStereoRender
void SetStereoRender(vtkTypeBool stereo)
vtkRenderWindow::AccumulationBuffer
float * AccumulationBuffer
Definition: vtkRenderWindow.h:719
vtkRenderWindow::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderWindow::GetRGBACharPixelData
virtual unsigned char * GetRGBACharPixelData(int x, int y, int x2, int y2, int front, int right=0)=0
vtkRenderWindow::vtkRenderWindow
vtkRenderWindow()
vtkRenderWindow::AbortRender
int AbortRender
Definition: vtkRenderWindow.h:724
vtkRenderWindow::StereoUpdate
virtual void StereoUpdate()
Update the system, if needed, due to stereo rendering.
vtkRenderWindow::ReleaseRGBAPixelData
virtual void ReleaseRGBAPixelData(float *data)=0
vtkRenderWindow::IsDirect
virtual int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
Definition: vtkRenderWindow.h:628
VTK_STEREO_DRESDEN
#define VTK_STEREO_DRESDEN
Definition: vtkRenderWindow.h:69
vtkRenderWindow::SetStereoTypeToDresden
void SetStereoTypeToDresden()
Definition: vtkRenderWindow.h:321
vtkRenderWindow::SetStereoTypeToInterlaced
void SetStereoTypeToInterlaced()
Definition: vtkRenderWindow.h:315
vtkRenderWindow::SupportsOpenGL
virtual int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
Definition: vtkRenderWindow.h:623
vtkRenderWindow::AlphaBitPlanes
vtkTypeBool AlphaBitPlanes
Definition: vtkRenderWindow.h:716
vtkRenderWindow::CaptureGL2PSSpecialProps
void CaptureGL2PSSpecialProps(vtkCollection *specialProps)
The GL2PS exporter must handle certain props in a special way (e.g.
vtkRenderWindow::SetRGBACharPixelData
virtual int SetRGBACharPixelData(int x, int y, int x2, int y2, unsigned char *data, int front, int blend=0, int right=0)=0
vtkRenderWindow::LineSmoothing
vtkTypeBool LineSmoothing
Definition: vtkRenderWindow.h:711
vtkRenderWindow::GetZbufferData
virtual int GetZbufferData(int x, int y, int x2, int y2, vtkFloatArray *z)=0
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:88
vtkRenderWindow::InitializeFromCurrentContext
virtual bool InitializeFromCurrentContext()
Initialize the render window from the information associated with the currently activated OpenGL cont...
Definition: vtkRenderWindow.h:573
vtkRenderWindow::GetRenderingBackend
virtual const char * GetRenderingBackend()
What rendering backend has the user requested.
vtkRenderWindow::ClearInRenderStatus
virtual void ClearInRenderStatus()
Clear status (after an exception was thrown for example)
Definition: vtkRenderWindow.h:507
vtkRenderWindow::CheckInRenderStatus
virtual int CheckInRenderStatus()
Are we rendering at the moment.
Definition: vtkRenderWindow.h:502
vtkRenderWindow::Frame
virtual void Frame()=0
A termination method performed at the end of the rendering process to do things like swapping buffers...
vtkRenderWindow::SetSharedRenderWindow
virtual void SetSharedRenderWindow(vtkRenderWindow *)
Set/Get an already existing window that this window should share data with if possible.
vtkRenderWindow::SetNextWindowId
virtual void SetNextWindowId(void *)=0
vtkRenderWindow::New
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on,...
vtkRenderWindow::RenderTimer
vtkNew< vtkRenderTimerLog > RenderTimer
Definition: vtkRenderWindow.h:706
vtkWindow.h
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkRenderWindow::GetEventPending
virtual int GetEventPending()=0
Check to see if a mouse button has been pressed.
vtkRenderWindow::PolygonSmoothing
vtkTypeBool PolygonSmoothing
Definition: vtkRenderWindow.h:712
vtkRenderWindow::GetRenderLibrary
static const char * GetRenderLibrary()
What rendering library has the user requested.
vtkRenderWindow::~vtkRenderWindow
~vtkRenderWindow() override
vtkRenderWindow::GetRGBACharPixelData
virtual int GetRGBACharPixelData(int x, int y, int x2, int y2, int front, vtkUnsignedCharArray *data, int right=0)=0
vtkRenderWindow::SetStereoTypeToSplitViewportHorizontal
void SetStereoTypeToSplitViewportHorizontal()
Definition: vtkRenderWindow.h:327
vtkRenderWindow::CheckAbortStatus
virtual int CheckAbortStatus()
vtkRenderWindow::SetParentInfo
void SetParentInfo(const char *) override=0
VTK_STEREO_CHECKERBOARD
#define VTK_STEREO_CHECKERBOARD
Definition: vtkRenderWindow.h:71