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 
53 class vtkFloatArray;
55 class vtkProp;
56 class vtkCollection;
58 class vtkRenderer;
61 
62 // lets define the different types of stereo
63 #define VTK_STEREO_CRYSTAL_EYES 1
64 #define VTK_STEREO_RED_BLUE 2
65 #define VTK_STEREO_INTERLACED 3
66 #define VTK_STEREO_LEFT 4
67 #define VTK_STEREO_RIGHT 5
68 #define VTK_STEREO_DRESDEN 6
69 #define VTK_STEREO_ANAGLYPH 7
70 #define VTK_STEREO_CHECKERBOARD 8
71 #define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL 9
72 #define VTK_STEREO_FAKE 10
73 
74 #define VTK_CURSOR_DEFAULT 0
75 #define VTK_CURSOR_ARROW 1
76 #define VTK_CURSOR_SIZENE 2
77 #define VTK_CURSOR_SIZENW 3
78 #define VTK_CURSOR_SIZESW 4
79 #define VTK_CURSOR_SIZESE 5
80 #define VTK_CURSOR_SIZENS 6
81 #define VTK_CURSOR_SIZEWE 7
82 #define VTK_CURSOR_SIZEALL 8
83 #define VTK_CURSOR_HAND 9
84 #define VTK_CURSOR_CROSSHAIR 10
85 
86 class VTKRENDERINGCORE_EXPORT vtkRenderWindow : public vtkWindow
87 {
88 public:
89  vtkTypeMacro(vtkRenderWindow,vtkWindow);
90  void PrintSelf(ostream& os, vtkIndent indent);
91 
97  static vtkRenderWindow *New();
98 
102  virtual void AddRenderer(vtkRenderer *);
103 
108 
113 
117  static const char *GetRenderLibrary();
118 
122  virtual const char *GetRenderingBackend();
123 
127  vtkRendererCollection *GetRenderers() {return this->Renderers;};
128 
137 
139 
142  vtkGetMacro(CapturingGL2PSSpecialProps, int);
144 
149  virtual void Render();
150 
154  virtual void Start() = 0;
155 
159  virtual void Finalize() = 0;
160 
165  virtual void Frame() = 0;
166 
171  virtual void WaitForCompletion()=0;
172 
177  virtual void CopyResultFrame();
178 
185 
187 
193  virtual void HideCursor() = 0;
194  virtual void ShowCursor() = 0;
195  virtual void SetCursorPosition(int , int ) {}
197 
199 
202  vtkSetMacro(CurrentCursor,int);
203  vtkGetMacro(CurrentCursor,int);
205 
207 
210  virtual void SetFullScreen(int) = 0;
211  vtkGetMacro(FullScreen,int);
212  vtkBooleanMacro(FullScreen,int);
214 
216 
221  vtkSetMacro(Borders,int);
222  vtkGetMacro(Borders,int);
223  vtkBooleanMacro(Borders,int);
225 
227 
231  vtkGetMacro(StereoCapableWindow,int);
232  vtkBooleanMacro(StereoCapableWindow,int);
233  virtual void SetStereoCapableWindow(int capable);
235 
237 
240  vtkGetMacro(StereoRender,int);
241  void SetStereoRender(int stereo);
242  vtkBooleanMacro(StereoRender,int);
244 
246 
249  vtkSetMacro(AlphaBitPlanes, int);
250  vtkGetMacro(AlphaBitPlanes, int);
251  vtkBooleanMacro(AlphaBitPlanes, int);
253 
255 
259  vtkSetMacro(PointSmoothing,int);
260  vtkGetMacro(PointSmoothing,int);
261  vtkBooleanMacro(PointSmoothing,int);
263 
265 
269  vtkSetMacro(LineSmoothing,int);
270  vtkGetMacro(LineSmoothing,int);
271  vtkBooleanMacro(LineSmoothing,int);
273 
275 
279  vtkSetMacro(PolygonSmoothing,int);
280  vtkGetMacro(PolygonSmoothing,int);
281  vtkBooleanMacro(PolygonSmoothing,int);
283 
285 
303  vtkGetMacro(StereoType,int);
304  vtkSetMacro(StereoType,int);
306  {this->SetStereoType(VTK_STEREO_CRYSTAL_EYES);}
308  {this->SetStereoType(VTK_STEREO_RED_BLUE);}
310  {this->SetStereoType(VTK_STEREO_INTERLACED);}
312  {this->SetStereoType(VTK_STEREO_LEFT);}
314  {this->SetStereoType(VTK_STEREO_RIGHT);}
316  {this->SetStereoType(VTK_STEREO_DRESDEN);}
318  {this->SetStereoType(VTK_STEREO_ANAGLYPH);}
320  {this->SetStereoType(VTK_STEREO_CHECKERBOARD);}
322  {this->SetStereoType(VTK_STEREO_SPLITVIEWPORT_HORIZONTAL);}
324  {this->SetStereoType(VTK_STEREO_FAKE);}
326 
327  const char *GetStereoTypeAsString();
328 
333  virtual void StereoUpdate();
334 
339  virtual void StereoMidpoint();
340 
345  virtual void StereoRenderComplete();
346 
348 
355  vtkSetClampMacro(AnaglyphColorSaturation,float, 0.0f, 1.0f);
356  vtkGetMacro(AnaglyphColorSaturation,float);
358 
360 
374  vtkSetVector2Macro(AnaglyphColorMask,int);
375  vtkGetVectorMacro(AnaglyphColorMask,int,2);
377 
383  virtual void WindowRemap() = 0;
384 
386 
389  vtkSetMacro(SwapBuffers,int);
390  vtkGetMacro(SwapBuffers,int);
391  vtkBooleanMacro(SwapBuffers,int);
393 
395 
407  virtual int SetPixelData(int x, int y, int x2, int y2, unsigned char *data,
408  int front) = 0;
409  virtual int SetPixelData(int x, int y, int x2, int y2,
410  vtkUnsignedCharArray *data, int front) = 0;
412 
414 
421  virtual float *GetRGBAPixelData(int x, int y, int x2, int y2, int front) = 0;
422  virtual int GetRGBAPixelData(int x, int y, int x2, int y2, int front,
423  vtkFloatArray *data) = 0;
424  virtual int SetRGBAPixelData(int x, int y, int x2, int y2, float *,
425  int front, int blend=0) = 0;
426  virtual int SetRGBAPixelData(int, int, int, int, vtkFloatArray*,
427  int, int blend=0) = 0;
428  virtual void ReleaseRGBAPixelData(float *data)=0;
429  virtual unsigned char *GetRGBACharPixelData(int x, int y, int x2, int y2,
430  int front) = 0;
431  virtual int GetRGBACharPixelData(int x, int y, int x2, int y2, int front,
433  virtual int SetRGBACharPixelData(int x,int y, int x2, int y2,
434  unsigned char *data, int front,
435  int blend=0) = 0;
436  virtual int SetRGBACharPixelData(int x, int y, int x2, int y2,
437  vtkUnsignedCharArray *data, int front,
438  int blend=0) = 0;
440 
442 
447  virtual float *GetZbufferData(int x, int y, int x2, int y2) = 0;
448  virtual int GetZbufferData(int x, int y, int x2, int y2, float *z) = 0;
449  virtual int GetZbufferData(int x, int y, int x2, int y2,
450  vtkFloatArray *z) = 0;
451  virtual int SetZbufferData(int x, int y, int x2, int y2, float *z) = 0;
452  virtual int SetZbufferData(int x, int y, int x2, int y2,
453  vtkFloatArray *z) = 0;
454  float GetZbufferDataAtPoint(int x, int y)
455  {
456  float value;
457  this->GetZbufferData(x, y, x, y, &value);
458  return value;
459  }
461 
463 
468  vtkGetMacro(AAFrames,int);
469  vtkSetMacro(AAFrames,int);
471 
473 
480  vtkGetMacro(FDFrames,int);
481  virtual void SetFDFrames (int fdFrames);
483 
485 
492  vtkGetMacro(UseConstantFDOffsets,int);
493  vtkSetMacro(UseConstantFDOffsets,int);
495 
497 
505  vtkGetMacro(SubFrames,int);
506  virtual void SetSubFrames(int subFrames);
508 
510 
513  vtkGetMacro(NeverRendered,int);
515 
517 
521  vtkGetMacro(AbortRender,int);
522  vtkSetMacro(AbortRender,int);
523  vtkGetMacro(InAbortCheck,int);
524  vtkSetMacro(InAbortCheck,int);
525  virtual int CheckAbortStatus();
527 
528  vtkGetMacro(IsPicking,int);
529  vtkSetMacro(IsPicking,int);
530  vtkBooleanMacro(IsPicking,int);
531 
538  virtual int GetEventPending() = 0;
539 
543  virtual int CheckInRenderStatus() { return this->InRender; }
544 
548  virtual void ClearInRenderStatus() { this->InRender = 0; }
549 
551 
559  virtual void SetDesiredUpdateRate(double);
560  vtkGetMacro(DesiredUpdateRate,double);
562 
564 
570  vtkGetMacro(NumberOfLayers, int);
571  vtkSetClampMacro(NumberOfLayers, int, 1, VTK_INT_MAX);
573 
575 
578  vtkGetObjectMacro(Interactor,vtkRenderWindowInteractor);
580 
585 
590  virtual void UnRegister(vtkObjectBase *o);
591 
593 
596  virtual void SetDisplayId(void *) = 0;
597  virtual void SetWindowId(void *) = 0;
598  virtual void SetNextWindowId(void *) = 0;
599  virtual void SetParentId(void *) = 0;
600  virtual void *GetGenericDisplayId() = 0;
601  virtual void *GetGenericWindowId() = 0;
602  virtual void *GetGenericParentId() = 0;
603  virtual void *GetGenericContext() = 0;
604  virtual void *GetGenericDrawable() = 0;
605  virtual void SetWindowInfo(char *) = 0;
606  virtual void SetNextWindowInfo(char *) = 0;
607  virtual void SetParentInfo(char *) = 0;
609 
614  virtual bool InitializeFromCurrentContext() { return false; };
615 
620  virtual void MakeCurrent() = 0;
621 
626  virtual bool IsCurrent()=0;
627 
634  virtual bool IsDrawable(){ return true; }
635 
641  virtual void SetForceMakeCurrent() {}
642 
646  virtual const char *ReportCapabilities() { return "Not Implemented";};
647 
651  virtual int SupportsOpenGL() { return 0;};
652 
656  virtual int IsDirect() { return 0;};
657 
662  virtual int GetDepthBufferSize() = 0;
663 
668  virtual int GetColorBufferSizes(int *rgba) = 0;
669 
671 
676  vtkGetObjectMacro(PainterDeviceAdapter, vtkPainterDeviceAdapter);
678 
680 
683  vtkSetMacro(MultiSamples,int);
684  vtkGetMacro(MultiSamples,int);
686 
688 
691  vtkSetMacro(StencilCapable, int);
692  vtkGetMacro(StencilCapable, int);
693  vtkBooleanMacro(StencilCapable, int);
695 
697 
703  vtkSetMacro(DeviceIndex,int);
704  vtkGetMacro(DeviceIndex,int);
706 
710  virtual int GetNumberOfDevices()
711  {
712  return 0;
713  }
714 
723  virtual int SetUseOffScreenBuffers(bool) { return 0; }
724  virtual bool GetUseOffScreenBuffers() { return false; }
725 
726 protected:
729 
730  virtual void DoStereoRender();
731  virtual void DoFDRender();
732  virtual void DoAARender();
733 
736  int Borders;
738  int OldScreen[5];
744  int StereoStatus; // used for keeping track of what's going on
748  unsigned char* StereoBuffer; // used for red blue stereo
749  float *AccumulationBuffer; // used for many techniques
751  int AAFrames;
752  int FDFrames;
753  int UseConstantFDOffsets; // to use the same offsets at each rendering
754  double *ConstantFDOffsets[2];
755  int SubFrames; // number of sub frames
756  int CurrentSubFrame; // what one are we on
757  unsigned char *ResultFrame; // used for any non immediate rendering
762  int InRender;
768  int AnaglyphColorMask[2];
773 
778 
779 private:
780  vtkRenderWindow(const vtkRenderWindow&) VTK_DELETE_FUNCTION;
781  void operator=(const vtkRenderWindow&) VTK_DELETE_FUNCTION;
782 };
783 
784 #endif
vtkRenderWindow::ResultFrame
unsigned char * ResultFrame
Definition: vtkRenderWindow.h:757
vtkRenderWindow::SetRGBAPixelData
virtual int SetRGBAPixelData(int, int, int, int, vtkFloatArray *, int, int blend=0)=0
VTK_STEREO_RIGHT
#define VTK_STEREO_RIGHT
Definition: vtkRenderWindow.h:67
vtkRenderWindow::RemoveRenderer
void RemoveRenderer(vtkRenderer *)
Remove a renderer from the list of renderers.
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:153
vtkRenderWindow::FDFrames
int FDFrames
Definition: vtkRenderWindow.h:752
vtkRenderWindow::SetPixelData
virtual int SetPixelData(int x, int y, int x2, int y2, vtkUnsignedCharArray *data, int front)=0
vtkRenderWindow::StereoBuffer
unsigned char * StereoBuffer
Definition: vtkRenderWindow.h:748
vtkRenderWindow::SetNextWindowInfo
virtual void SetNextWindowInfo(char *)=0
vtkRenderWindow::NeverRendered
int NeverRendered
Definition: vtkRenderWindow.h:763
vtkRenderWindow::AccumulationBufferSize
unsigned int AccumulationBufferSize
Definition: vtkRenderWindow.h:750
vtkRenderWindow::SetRGBACharPixelData
virtual int SetRGBACharPixelData(int x, int y, int x2, int y2, unsigned char *data, int front, int blend=0)=0
vtkRenderWindow::Start
virtual void Start()=0
Initialize the rendering process.
vtkRenderWindow::SetStereoCapableWindow
virtual void SetStereoCapableWindow(int capable)
VTK_STEREO_RED_BLUE
#define VTK_STEREO_RED_BLUE
Definition: vtkRenderWindow.h:64
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:724
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
vtkPainterDeviceAdapter
An adapter between a vtkPainter and a rendering device.
Definition: vtkPainterDeviceAdapter.h:56
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkRenderWindow::SetFullScreen
virtual void SetFullScreen(int)=0
Turn on/off rendering full screen window size.
vtkRenderWindow::SetRGBAPixelData
virtual int SetRGBAPixelData(int x, int y, int x2, int y2, float *, int front, int blend=0)=0
vtkRenderWindow::DoStereoRender
virtual void DoStereoRender()
vtkRenderWindow::UseConstantFDOffsets
int UseConstantFDOffsets
Definition: vtkRenderWindow.h:753
vtkRenderWindow::SetStereoTypeToRedBlue
void SetStereoTypeToRedBlue()
Definition: vtkRenderWindow.h:307
vtkRenderWindow::SetUseOffScreenBuffers
virtual int SetUseOffScreenBuffers(bool)
Create and bind offscreen rendering buffers without destroying the current OpenGL context.
Definition: vtkRenderWindow.h:723
vtkRenderWindow::GetZbufferData
virtual int GetZbufferData(int x, int y, int x2, int y2, float *z)=0
vtkRenderWindow::SetDisplayId
virtual void SetDisplayId(void *)=0
Dummy stubs for vtkWindow API.
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:42
vtkRenderWindow::SetStereoTypeToCheckerboard
void SetStereoTypeToCheckerboard()
Definition: vtkRenderWindow.h:319
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:454
vtkRenderWindow::UnRegister
virtual void UnRegister(vtkObjectBase *o)
This Method detects loops of RenderWindow<->Interactor, so objects are freed properly.
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::InRender
int InRender
Definition: vtkRenderWindow.h:762
vtkRenderWindow::SetWindowInfo
virtual void SetWindowInfo(char *)=0
vtkRenderWindow::Renderers
vtkRendererCollection * Renderers
Definition: vtkRenderWindow.h:735
vtkRenderWindow::~vtkRenderWindow
~vtkRenderWindow()
vtkRendererCollection
a 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:761
VTK_STEREO_CRYSTAL_EYES
#define VTK_STEREO_CRYSTAL_EYES
Definition: vtkRenderWindow.h:63
VTK_STEREO_SPLITVIEWPORT_HORIZONTAL
#define VTK_STEREO_SPLITVIEWPORT_HORIZONTAL
Definition: vtkRenderWindow.h:71
vtkRenderWindow::StereoCapableWindow
int StereoCapableWindow
Definition: vtkRenderWindow.h:745
vtkRenderWindow::GetRGBAPixelData
virtual int GetRGBAPixelData(int x, int y, int x2, int y2, int front, vtkFloatArray *data)=0
vtkRenderWindow::SetForceMakeCurrent
virtual void SetForceMakeCurrent()
If called, allow MakeCurrent() to skip cache-check when called.
Definition: vtkRenderWindow.h:641
vtkRenderWindow::GetRenderers
vtkRendererCollection * GetRenderers()
Return the collection of renderers in the render window.
Definition: vtkRenderWindow.h:127
vtkRenderWindow::WindowRemap
virtual void WindowRemap()=0
Remap the rendering window.
vtkRenderWindow::GetGenericParentId
virtual void * GetGenericParentId()=0
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkRenderWindow::StereoType
int StereoType
Definition: vtkRenderWindow.h:743
vtkRenderWindow::AnaglyphColorSaturation
float AnaglyphColorSaturation
Definition: vtkRenderWindow.h:767
vtkRenderWindow::CopyResultFrame
virtual void CopyResultFrame()
Performed at the end of the rendering process to generate image.
vtkRenderWindow::SubFrames
int SubFrames
Definition: vtkRenderWindow.h:755
vtkRenderWindow::StereoStatus
int StereoStatus
Definition: vtkRenderWindow.h:744
vtkCollection
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
vtkRenderWindow::FullScreen
int FullScreen
Definition: vtkRenderWindow.h:737
vtkRenderWindow::SetStereoRender
void SetStereoRender(int stereo)
vtkRenderWindow::StereoMidpoint
virtual void StereoMidpoint()
Intermediate method performs operations required between the rendering of the left and right eye.
vtkRenderWindow::GetGenericDisplayId
virtual void * GetGenericDisplayId()=0
vtkRenderWindow::PainterDeviceAdapter
vtkPainterDeviceAdapter * PainterDeviceAdapter
Definition: vtkRenderWindow.h:734
vtkRenderWindow::SetInteractor
void SetInteractor(vtkRenderWindowInteractor *)
Set the interactor to the render window.
vtkRenderWindow::SetStereoTypeToAnaglyph
void SetStereoTypeToAnaglyph()
Definition: vtkRenderWindow.h:317
vtkRenderWindow::AAFrames
int AAFrames
Definition: vtkRenderWindow.h:751
vtkRenderWindow::DeviceIndex
int DeviceIndex
Definition: vtkRenderWindow.h:772
vtkRenderWindow::GetGenericDrawable
virtual void * GetGenericDrawable()=0
vtkObjectBase
abstract base class for most VTK objects
Definition: vtkObjectBase.h:66
vtkRenderWindow::Render
virtual void Render()
Ask each renderer owned by this RenderWindow to render its image and synchronize this process.
vtkRenderWindow::CurrentCursor
int CurrentCursor
Definition: vtkRenderWindow.h:765
vtkRenderWindow::Interactor
vtkRenderWindowInteractor * Interactor
Definition: vtkRenderWindow.h:747
VTK_STEREO_INTERLACED
#define VTK_STEREO_INTERLACED
Definition: vtkRenderWindow.h:65
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::DoAARender
virtual void DoAARender()
vtkRenderWindow::CapturingGL2PSSpecialProps
int CapturingGL2PSSpecialProps
Definition: vtkRenderWindow.h:771
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:66
vtkRenderWindow::SetStereoTypeToLeft
void SetStereoTypeToLeft()
Definition: vtkRenderWindow.h:311
VTK_STEREO_ANAGLYPH
#define VTK_STEREO_ANAGLYPH
Definition: vtkRenderWindow.h:69
vtkRenderWindow::GetRGBACharPixelData
virtual unsigned char * GetRGBACharPixelData(int x, int y, int x2, int y2, int front)=0
vtkRenderWindow::AddRenderer
virtual void AddRenderer(vtkRenderer *)
Add a renderer to the list of renderers.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkRenderWindow::CurrentSubFrame
int CurrentSubFrame
Definition: vtkRenderWindow.h:756
vtkRenderWindow::WaitForCompletion
virtual void WaitForCompletion()=0
Block the thread until the actual rendering is finished().
vtkRenderWindow::DesiredUpdateRate
double DesiredUpdateRate
Definition: vtkRenderWindow.h:759
vtkRenderWindow::ReportCapabilities
virtual const char * ReportCapabilities()
Get report of capabilities for the render window.
Definition: vtkRenderWindow.h:646
vtkRenderWindow::SetStereoTypeToRight
void SetStereoTypeToRight()
Definition: vtkRenderWindow.h:313
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:79
vtkRenderWindow::SetPixelData
virtual int SetPixelData(int x, int y, int x2, int y2, unsigned char *data, int front)=0
Set/Get the pixel data of an image, transmitted as RGBRGBRGB.
vtkRenderWindow::Borders
int Borders
Definition: vtkRenderWindow.h:736
vtkRenderWindow::GetRGBACharPixelData
virtual int GetRGBACharPixelData(int x, int y, int x2, int y2, int front, vtkUnsignedCharArray *data)=0
vtkRenderWindow::SetWindowId
virtual void SetWindowId(void *)=0
vtkRenderWindow::AbortCheckTime
double AbortCheckTime
The universal time since the last abort check occurred.
Definition: vtkRenderWindow.h:777
vtkRenderWindow::NumberOfLayers
int NumberOfLayers
Definition: vtkRenderWindow.h:764
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkRenderWindow::GetStereoTypeAsString
const char * GetStereoTypeAsString()
vtkRenderWindow::GetNumberOfDevices
virtual int GetNumberOfDevices()
Returns the number of devices (graphics cards) on a system.
Definition: vtkRenderWindow.h:710
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
vtkRenderWindow::SetRGBACharPixelData
virtual int SetRGBACharPixelData(int x, int y, int x2, int y2, vtkUnsignedCharArray *data, int front, int blend=0)=0
vtkRenderWindow::SetStereoTypeToCrystalEyes
void SetStereoTypeToCrystalEyes()
Definition: vtkRenderWindow.h:305
vtkRenderWindow::GetGenericWindowId
virtual void * GetGenericWindowId()=0
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:195
vtkRenderWindow::LineSmoothing
int LineSmoothing
Definition: vtkRenderWindow.h:740
vtkRenderWindow::PointSmoothing
int PointSmoothing
Definition: vtkRenderWindow.h:739
vtkRenderWindow::SetParentInfo
virtual void SetParentInfo(char *)=0
VTK_STEREO_FAKE
#define VTK_STEREO_FAKE
Definition: vtkRenderWindow.h:72
vtkRenderWindow::AlphaBitPlanes
int AlphaBitPlanes
Definition: vtkRenderWindow.h:746
vtkRenderWindow::MultiSamples
int MultiSamples
Definition: vtkRenderWindow.h:769
vtkRenderWindow::IsDrawable
virtual bool IsDrawable()
Test if the window has a valid drawable.
Definition: vtkRenderWindow.h:634
vtkRenderWindow::SetParentId
virtual void SetParentId(void *)=0
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkRenderWindow::SetStereoTypeToFake
void SetStereoTypeToFake()
Definition: vtkRenderWindow.h:323
vtkRenderWindow::MakeCurrent
virtual void MakeCurrent()=0
Attempt to make this window the current graphics context for the calling thread.
vtkRenderWindow::AccumulationBuffer
float * AccumulationBuffer
Definition: vtkRenderWindow.h:749
vtkRenderWindow::GetGenericContext
virtual void * GetGenericContext()=0
vtkRenderWindow::vtkRenderWindow
vtkRenderWindow()
vtkRenderWindow::DoFDRender
virtual void DoFDRender()
vtkRenderWindow::AbortRender
int AbortRender
Definition: vtkRenderWindow.h:760
vtkRenderWindow::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkRenderWindow::StereoUpdate
virtual void StereoUpdate()
Update the system, if needed, due to stereo rendering.
vtkRenderWindow::IsPicking
int IsPicking
Definition: vtkRenderWindow.h:766
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:656
VTK_STEREO_DRESDEN
#define VTK_STEREO_DRESDEN
Definition: vtkRenderWindow.h:68
vtkRenderWindow::SetStereoTypeToDresden
void SetStereoTypeToDresden()
Definition: vtkRenderWindow.h:315
vtkRenderWindow::SetSubFrames
virtual void SetSubFrames(int subFrames)
vtkRenderWindow::SetStereoTypeToInterlaced
void SetStereoTypeToInterlaced()
Definition: vtkRenderWindow.h:309
vtkRenderWindow::SupportsOpenGL
virtual int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
Definition: vtkRenderWindow.h:651
vtkRenderWindow::CaptureGL2PSSpecialProps
void CaptureGL2PSSpecialProps(vtkCollection *specialProps)
The GL2PS exporter must handle certain props in a special way (e.g.
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:87
vtkRenderWindow::InitializeFromCurrentContext
virtual bool InitializeFromCurrentContext()
Initialize the render window from the information associated with the currently activated OpenGL cont...
Definition: vtkRenderWindow.h:614
vtkRenderWindow::SwapBuffers
int SwapBuffers
Definition: vtkRenderWindow.h:758
vtkRenderWindow::GetRenderingBackend
virtual const char * GetRenderingBackend()
What rendering backend has the user requested.
vtkRenderWindow::StereoRender
int StereoRender
Definition: vtkRenderWindow.h:742
vtkRenderWindow::ClearInRenderStatus
virtual void ClearInRenderStatus()
Clear status (after an exception was thrown for example)
Definition: vtkRenderWindow.h:548
vtkRenderWindow::CheckInRenderStatus
virtual int CheckInRenderStatus()
Are we rendering at the moment.
Definition: vtkRenderWindow.h:543
vtkRenderWindow::Frame
virtual void Frame()=0
A termination method performed at the end of the rendering process to do things like swapping buffers...
vtkRenderWindow::StencilCapable
int StencilCapable
Definition: vtkRenderWindow.h:770
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::PolygonSmoothing
int PolygonSmoothing
Definition: vtkRenderWindow.h:741
vtkWindow.h
vtkRenderWindow::GetEventPending
virtual int GetEventPending()=0
Check to see if a mouse button has been pressed.
vtkRenderWindow::SetFDFrames
virtual void SetFDFrames(int fdFrames)
vtkRenderWindow::GetRenderLibrary
static const char * GetRenderLibrary()
What rendering library has the user requested.
vtkRenderWindow::SetStereoTypeToSplitViewportHorizontal
void SetStereoTypeToSplitViewportHorizontal()
Definition: vtkRenderWindow.h:321
vtkRenderWindow::CheckAbortStatus
virtual int CheckAbortStatus()
VTK_STEREO_CHECKERBOARD
#define VTK_STEREO_CHECKERBOARD
Definition: vtkRenderWindow.h:70
vtkRenderWindow::GetRGBAPixelData
virtual float * GetRGBAPixelData(int x, int y, int x2, int y2, int front)=0
Same as Get/SetPixelData except that the image also contains an alpha component.