VTK  9.0.1
vtkRenderer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderer.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 =========================================================================*/
32 #ifndef vtkRenderer_h
33 #define vtkRenderer_h
34 
35 #include "vtkRenderingCoreModule.h" // For export macro
36 #include "vtkViewport.h"
37 
38 #include "vtkActorCollection.h" // Needed for access in inline members
39 #include "vtkVolumeCollection.h" // Needed for access in inline members
40 
41 class vtkFXAAOptions;
42 class vtkRenderWindow;
43 class vtkVolume;
44 class vtkCuller;
45 class vtkActor;
46 class vtkActor2D;
47 class vtkCamera;
49 class vtkInformation;
50 class vtkLightCollection;
52 class vtkLight;
55 class vtkRenderPass;
56 class vtkTexture;
57 
58 class VTKRENDERINGCORE_EXPORT vtkRenderer : public vtkViewport
59 {
60 public:
61  vtkTypeMacro(vtkRenderer, vtkViewport);
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
69  static vtkRenderer* New();
70 
72 
77  void AddActor(vtkProp* p);
78  void AddVolume(vtkProp* p);
79  void RemoveActor(vtkProp* p);
82 
87 
92 
97 
101  vtkLightCollection* GetLights();
102 
110 
114  void CreateLight(void);
115 
121  virtual vtkLight* MakeLight();
122 
124 
130  vtkGetMacro(TwoSidedLighting, vtkTypeBool);
131  vtkSetMacro(TwoSidedLighting, vtkTypeBool);
132  vtkBooleanMacro(TwoSidedLighting, vtkTypeBool);
134 
136 
149  vtkSetMacro(LightFollowCamera, vtkTypeBool);
150  vtkGetMacro(LightFollowCamera, vtkTypeBool);
151  vtkBooleanMacro(LightFollowCamera, vtkTypeBool);
153 
155 
163  vtkGetMacro(AutomaticLightCreation, vtkTypeBool);
164  vtkSetMacro(AutomaticLightCreation, vtkTypeBool);
165  vtkBooleanMacro(AutomaticLightCreation, vtkTypeBool);
167 
174 
179 
184 
189 
196 
202  virtual vtkCamera* MakeCamera();
203 
205 
211  vtkSetMacro(Erase, vtkTypeBool);
212  vtkGetMacro(Erase, vtkTypeBool);
213  vtkBooleanMacro(Erase, vtkTypeBool);
215 
217 
222  vtkSetMacro(Draw, vtkTypeBool);
223  vtkGetMacro(Draw, vtkTypeBool);
224  vtkBooleanMacro(Draw, vtkTypeBool);
226 
232 
239 
244 
249 
253  vtkCullerCollection* GetCullers();
254 
256 
259  vtkSetVector3Macro(Ambient, double);
260  vtkGetVectorMacro(Ambient, double, 3);
262 
264 
268  vtkSetMacro(AllocatedRenderTime, double);
269  virtual double GetAllocatedRenderTime();
271 
278  virtual double GetTimeFactor();
279 
286  virtual void Render();
287 
291  virtual void DeviceRender(){};
292 
300 
311 
316  virtual void ClearLights(void) {}
317 
321  virtual void Clear() {}
322 
327 
332 
337  void ComputeVisiblePropBounds(double bounds[6]);
338 
343 
348  virtual void ResetCameraClippingRange();
349 
351 
357  virtual void ResetCameraClippingRange(double bounds[6]);
358  virtual void ResetCameraClippingRange(
359  double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
361 
363 
368  vtkSetClampMacro(NearClippingPlaneTolerance, double, 0, 0.99);
369  vtkGetMacro(NearClippingPlaneTolerance, double);
371 
373 
378  vtkSetClampMacro(ClippingRangeExpansion, double, 0, 0.99);
379  vtkGetMacro(ClippingRangeExpansion, double);
381 
388  virtual void ResetCamera();
389 
399  virtual void ResetCamera(double bounds[6]);
400 
404  virtual void ResetCamera(
405  double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
406 
408 
413  void SetRenderWindow(vtkRenderWindow*);
414  vtkRenderWindow* GetRenderWindow() { return this->RenderWindow; }
415  vtkWindow* GetVTKWindow() override;
417 
419 
425  vtkSetMacro(BackingStore, vtkTypeBool);
426  vtkGetMacro(BackingStore, vtkTypeBool);
427  vtkBooleanMacro(BackingStore, vtkTypeBool);
429 
431 
436  vtkSetMacro(Interactive, vtkTypeBool);
437  vtkGetMacro(Interactive, vtkTypeBool);
438  vtkBooleanMacro(Interactive, vtkTypeBool);
440 
442 
453  virtual void SetLayer(int layer);
454  vtkGetMacro(Layer, int);
456 
458 
468  vtkGetMacro(PreserveColorBuffer, vtkTypeBool);
469  vtkSetMacro(PreserveColorBuffer, vtkTypeBool);
470  vtkBooleanMacro(PreserveColorBuffer, vtkTypeBool);
472 
474 
478  vtkSetMacro(PreserveDepthBuffer, vtkTypeBool);
479  vtkGetMacro(PreserveDepthBuffer, vtkTypeBool);
480  vtkBooleanMacro(PreserveDepthBuffer, vtkTypeBool);
482 
487  int Transparent();
488 
492  void WorldToView() override;
493 
495 
498  void ViewToWorld() override;
499  void ViewToWorld(double& wx, double& wy, double& wz) override;
501 
505  void WorldToView(double& wx, double& wy, double& wz) override;
506 
508 
511  void WorldToPose(double& wx, double& wy, double& wz) override;
512  void PoseToWorld(double& wx, double& wy, double& wz) override;
513  void ViewToPose(double& wx, double& wy, double& wz) override;
514  void PoseToView(double& wx, double& wy, double& wz) override;
516 
521  double GetZ(int x, int y);
522 
526  vtkMTimeType GetMTime() override;
527 
529 
532  vtkGetMacro(LastRenderTimeInSeconds, double);
534 
536 
542  vtkGetMacro(NumberOfPropsRendered, int);
544 
546 
553  vtkAssemblyPath* PickProp(double selectionX, double selectionY) override
554  {
555  return this->PickProp(selectionX, selectionY, selectionX, selectionY);
556  }
558  double selectionX1, double selectionY1, double selectionX2, double selectionY2) override;
560 
566  virtual void StereoMidpoint() { return; }
567 
575 
581  vtkTypeBool IsActiveCameraCreated() { return (this->ActiveCamera != nullptr); }
582 
584 
594  vtkSetMacro(UseDepthPeeling, vtkTypeBool);
595  vtkGetMacro(UseDepthPeeling, vtkTypeBool);
596  vtkBooleanMacro(UseDepthPeeling, vtkTypeBool);
598 
604  vtkSetMacro(UseDepthPeelingForVolumes, bool);
605  vtkGetMacro(UseDepthPeelingForVolumes, bool);
606  vtkBooleanMacro(UseDepthPeelingForVolumes, bool);
607 
609 
618  vtkSetClampMacro(OcclusionRatio, double, 0.0, 0.5);
619  vtkGetMacro(OcclusionRatio, double);
621 
623 
628  vtkSetMacro(MaximumNumberOfPeels, int);
629  vtkGetMacro(MaximumNumberOfPeels, int);
631 
633 
638  vtkGetMacro(LastRenderingUsedDepthPeeling, vtkTypeBool);
640 
642 
649  vtkGetObjectMacro(Delegate, vtkRendererDelegate);
651 
653 
658  vtkGetObjectMacro(Selector, vtkHardwareSelector);
660 
662 
670  vtkGetObjectMacro(BackgroundTexture, vtkTexture);
672 
674 
679  vtkGetObjectMacro(RightBackgroundTexture, vtkTexture);
681 
683 
687  vtkSetMacro(TexturedBackground, bool);
688  vtkGetMacro(TexturedBackground, bool);
689  vtkBooleanMacro(TexturedBackground, bool);
691 
692  // method to release graphics resources in any derived renderers.
694 
696 
699  vtkSetMacro(UseFXAA, bool);
700  vtkGetMacro(UseFXAA, bool);
701  vtkBooleanMacro(UseFXAA, bool);
703 
705 
708  vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
711 
713 
717  vtkSetMacro(UseShadows, vtkTypeBool);
718  vtkGetMacro(UseShadows, vtkTypeBool);
719  vtkBooleanMacro(UseShadows, vtkTypeBool);
721 
723 
727  vtkSetMacro(UseHiddenLineRemoval, vtkTypeBool);
728  vtkGetMacro(UseHiddenLineRemoval, vtkTypeBool);
729  vtkBooleanMacro(UseHiddenLineRemoval, vtkTypeBool);
731 
732  // Set/Get a custom render pass.
733  // Initial value is NULL.
735  vtkGetObjectMacro(Pass, vtkRenderPass);
736 
738 
741  vtkGetObjectMacro(Information, vtkInformation);
744 
746 
752  vtkSetMacro(UseImageBasedLighting, bool);
753  vtkGetMacro(UseImageBasedLighting, bool);
754  vtkBooleanMacro(UseImageBasedLighting, bool);
756 
758 
769  vtkGetObjectMacro(EnvironmentTexture, vtkTexture);
770  virtual void SetEnvironmentTexture(vtkTexture* texture, bool isSRGB = false);
772 
774 
777  vtkGetVector3Macro(EnvironmentUp, double);
778  vtkSetVector3Macro(EnvironmentUp, double);
780 
782 
785  vtkGetVector3Macro(EnvironmentRight, double);
786  vtkSetVector3Macro(EnvironmentRight, double);
788 
789 protected:
791  ~vtkRenderer() override;
792 
793  // internal method to expand bounding box to consider model transform
794  // matrix or model view transform matrix based on whether or not deering
795  // frustum is used.
796  virtual void ExpandBounds(double bounds[6], vtkMatrix4x4* matrix);
797 
800 
803 
806 
807  double Ambient[3];
810  double TimeFactor;
814  unsigned char* BackingImage;
815  int BackingStoreSize[2];
817 
819 
821 
822  // Allocate the time for each prop
823  void AllocateTime();
824 
825  // Internal variables indicating the number of props
826  // that have been or will be rendered in each category.
828 
829  // A temporary list of props used for culling, and traversal
830  // of all props when rendering
833 
834  // Indicates if the renderer should receive events from an interactor.
835  // Typically only used in conjunction with transparent renderers.
837 
838  // Shows what layer this renderer belongs to. Only of interested when
839  // there are layered renderers.
840  int Layer;
843 
844  // Holds the result of ComputeVisiblePropBounds so that it is visible from
845  // wrapped languages
846  double ComputedVisiblePropBounds[6];
847 
856 
862 
870 
877 
882 
888  virtual int UpdateGeometry(vtkFrameBufferObjectBase* fbo = nullptr);
889 
898 
905 
910  virtual int UpdateCamera(void);
911 
918 
923  virtual int UpdateLights(void) { return 0; }
924 
931 
936  bool UseFXAA;
937 
942 
948 
954 
962 
968 
979 
986 
993 
994  // HARDWARE SELECTION ----------------------------------------
995  friend class vtkHardwareSelector;
996 
1001  {
1002  this->Selector = selector;
1003  this->Modified();
1004  }
1005 
1006  // End Ivars for visible cell selecting.
1008 
1009  //---------------------------------------------------------------
1010  friend class vtkRendererDelegate;
1012 
1016 
1017  friend class vtkRenderPass;
1019 
1020  // Arbitrary extra information associated with this renderer
1022 
1025 
1026  double EnvironmentUp[3];
1027  double EnvironmentRight[3];
1028 
1029 private:
1030  vtkRenderer(const vtkRenderer&) = delete;
1031  void operator=(const vtkRenderer&) = delete;
1032 };
1033 
1035 {
1036  return this->Lights;
1037 }
1038 
1043 {
1044  return this->Cullers;
1045 }
1046 
1047 #endif
vtkRenderer::UpdateOpaquePolygonalGeometry
virtual int UpdateOpaquePolygonalGeometry()
Ask all props to update and draw any opaque polygonal geometry.
vtkRenderer::UpdateCamera
virtual int UpdateCamera(void)
Ask the active camera to do whatever it needs to do prior to rendering.
vtkVolumeCollection
an ordered list of volumes
Definition: vtkVolumeCollection.h:36
vtkRenderer::SetBackgroundTexture
virtual void SetBackgroundTexture(vtkTexture *)
vtkRenderer::PickProp
vtkAssemblyPath * PickProp(double selectionX, double selectionY) override
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x,...
Definition: vtkRenderer.h:553
vtkRenderer::Render
virtual void Render()
CALLED BY vtkRenderWindow ONLY.
vtkRenderer::CaptureGL2PSSpecialProp
int CaptureGL2PSSpecialProp(vtkProp *)
This function is called to capture an instance of vtkProp that requires special handling during vtkRe...
vtkRenderer::SetLightCollection
void SetLightCollection(vtkLightCollection *lights)
Set the collection of lights.
vtkRenderer::DeviceRenderOpaqueGeometry
virtual void DeviceRenderOpaqueGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Render opaque polygonal geometry.
vtkLight
a virtual light for 3D rendering
Definition: vtkLight.h:57
vtkRenderer::AddActor
void AddActor(vtkProp *p)
Add/Remove different types of props to the renderer.
vtkRenderer::ClippingRangeExpansion
double ClippingRangeExpansion
Specify enlargement of bounds when resetting the camera clipping range.
Definition: vtkRenderer.h:861
vtkRenderer::UseShadows
vtkTypeBool UseShadows
If this flag is on and the rendering engine supports it render shadows Initial value is off.
Definition: vtkRenderer.h:947
vtkRenderer::PreserveDepthBuffer
vtkTypeBool PreserveDepthBuffer
Definition: vtkRenderer.h:842
vtkRenderer::UpdateLightGeometry
virtual vtkTypeBool UpdateLightGeometry(void)
Update the geometry of the lights in the scene that are not in world space (for instance,...
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:45
vtkRenderer::SetInformation
virtual void SetInformation(vtkInformation *)
vtkRenderer::Pass
vtkRenderPass * Pass
Definition: vtkRenderer.h:1018
vtkRenderer::IsActiveCameraCreated
vtkTypeBool IsActiveCameraCreated()
This method returns 1 if the ActiveCamera has already been set or automatically created by the render...
Definition: vtkRenderer.h:581
vtkRenderer::Clear
virtual void Clear()
Clear the image to the background color.
Definition: vtkRenderer.h:321
vtkRenderer::SetDelegate
void SetDelegate(vtkRendererDelegate *d)
Set/Get a custom Render call.
vtkRenderer::WorldToView
void WorldToView(double &wx, double &wy, double &wz) override
Convert world point coordinates to view coordinates.
vtkRenderer::SetLeftBackgroundTexture
virtual void SetLeftBackgroundTexture(vtkTexture *)
Set/Get the texture to be used for the monocular or stereo left eye background.
vtkRenderer::RemoveVolume
void RemoveVolume(vtkProp *p)
vtkRenderer::AddVolume
void AddVolume(vtkProp *p)
vtkRenderer::UpdateLights
virtual int UpdateLights(void)
Ask all lights to load themselves into rendering pipeline.
Definition: vtkRenderer.h:923
vtkRenderer::ComputeVisiblePropBounds
void ComputeVisiblePropBounds(double bounds[6])
Compute the bounding box of all the visible props Used in ResetCamera() and ResetCameraClippingRange(...
vtkRenderer::MakeCamera
virtual vtkCamera * MakeCamera()
Create a new Camera sutible for use with this type of Renderer.
vtkRenderer::GetAllocatedRenderTime
virtual double GetAllocatedRenderTime()
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:33
vtkRenderer::BackingStore
vtkTypeBool BackingStore
Definition: vtkRenderer.h:813
vtkRenderer::GetMTime
vtkMTimeType GetMTime() override
Return the MTime of the renderer also considering its ivars.
vtkLightCollection
an ordered list of lights
Definition: vtkLightCollection.h:36
vtkRenderer::AllocatedRenderTime
double AllocatedRenderTime
Definition: vtkRenderer.h:809
vtkRenderer::ClearLights
virtual void ClearLights(void)
Internal method temporarily removes lights before reloading them into graphics pipeline.
Definition: vtkRenderer.h:316
vtkObject::Modified
virtual void Modified()
Update the modification time for this object.
vtkRenderer::LightFollowCamera
vtkTypeBool LightFollowCamera
Definition: vtkRenderer.h:820
vtkRenderer::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
vtkRenderer::RenderTime
vtkTimeStamp RenderTime
Definition: vtkRenderer.h:816
vtkFXAAOptions
Configuration for FXAA implementations.
Definition: vtkFXAAOptions.h:31
vtkRenderer::OcclusionRatio
double OcclusionRatio
In case of use of depth peeling technique for rendering translucent material, define the threshold un...
Definition: vtkRenderer.h:978
vtkRenderer::ViewToWorld
void ViewToWorld(double &wx, double &wy, double &wz) override
vtkRenderer::EnvironmentTexture
vtkTexture * EnvironmentTexture
Definition: vtkRenderer.h:1024
vtkRenderer::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderer::VisibleVolumeCount
int VisibleVolumeCount()
Returns the number of visible volumes.
vtkRenderer::UseDepthPeelingForVolumes
bool UseDepthPeelingForVolumes
This flag is on and the GPU supports it, depth-peel volumes along with the translucent geometry.
Definition: vtkRenderer.h:967
vtkRenderer::GetActors
vtkActorCollection * GetActors()
Return any actors in this renderer.
vtkRenderer::Draw
vtkTypeBool Draw
When this flag is off, render commands are ignored.
Definition: vtkRenderer.h:876
vtkViewport::PickProp
virtual vtkAssemblyPath * PickProp(double selectionX, double selectionY)=0
Return the Prop that has the highest z value at the given x, y position in the viewport.
vtkViewport.h
vtkAssemblyPath
a list of nodes that form an assembly path
Definition: vtkAssemblyPath.h:42
vtkRenderer::Transparent
int Transparent()
Returns a boolean indicating if this renderer is transparent.
vtkRenderer::BackingImage
unsigned char * BackingImage
Definition: vtkRenderer.h:814
vtkFrameBufferObjectBase
abstract interface to OpenGL FBOs
Definition: vtkFrameBufferObjectBase.h:33
vtkRenderer::StereoMidpoint
virtual void StereoMidpoint()
Do anything necessary between rendering the left and right viewpoints in a stereo render.
Definition: vtkRenderer.h:566
vtkRenderer::RenderWindow
vtkRenderWindow * RenderWindow
Definition: vtkRenderer.h:808
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkRenderer::AllocateTime
void AllocateTime()
vtkRenderer::Layer
int Layer
Definition: vtkRenderer.h:840
vtkRenderer::AutomaticLightCreation
vtkTypeBool AutomaticLightCreation
Definition: vtkRenderer.h:812
vtkRenderer::UseFXAA
bool UseFXAA
If this flag is on and the rendering engine supports it, FXAA will be used to antialias the scene.
Definition: vtkRenderer.h:936
vtkRenderer::UseDepthPeeling
vtkTypeBool UseDepthPeeling
If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials...
Definition: vtkRenderer.h:961
vtkRenderer::vtkRenderer
vtkRenderer()
vtkRenderer::SetSelector
void SetSelector(vtkHardwareSelector *selector)
Called by vtkHardwareSelector when it begins rendering for selection.
Definition: vtkRenderer.h:1000
vtkRenderer::GetActiveCamera
vtkCamera * GetActiveCamera()
Get the current camera.
vtkRenderer::SetGL2PSSpecialPropCollection
void SetGL2PSSpecialPropCollection(vtkPropCollection *)
Set the prop collection object used during vtkRenderWindow::CaptureGL2PSSpecialProps().
vtkRendererDelegate
Render the props of a vtkRenderer.
Definition: vtkRendererDelegate.h:38
vtkTexture
handles properties associated with a texture map
Definition: vtkTexture.h:66
vtkRenderer::GetVolumes
vtkVolumeCollection * GetVolumes()
Return the collection of volumes.
vtkRenderer::PreserveColorBuffer
vtkTypeBool PreserveColorBuffer
Definition: vtkRenderer.h:841
vtkRenderer::SetEnvironmentTexture
virtual void SetEnvironmentTexture(vtkTexture *texture, bool isSRGB=false)
vtkRenderer::~vtkRenderer
~vtkRenderer() override
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:45
vtkRenderer::Interactive
vtkTypeBool Interactive
Definition: vtkRenderer.h:836
vtkActorCollection.h
vtkRenderer::LastRenderTimeInSeconds
double LastRenderTimeInSeconds
Definition: vtkRenderer.h:818
vtkRenderer::ActiveCamera
vtkCamera * ActiveCamera
Definition: vtkRenderer.h:798
vtkVolumeCollection.h
vtkRenderer::PoseToWorld
void PoseToWorld(double &wx, double &wy, double &wz) override
vtkRenderer::Volumes
vtkVolumeCollection * Volumes
Definition: vtkRenderer.h:805
vtkRenderer::Cullers
vtkCullerCollection * Cullers
Definition: vtkRenderer.h:802
vtkRenderer::SetFXAAOptions
virtual void SetFXAAOptions(vtkFXAAOptions *)
vtkHardwareSelector
Definition: vtkHardwareSelector.h:124
vtkRenderer::GetLights
vtkLightCollection * GetLights()
Return the collection of lights.
Definition: vtkRenderer.h:1034
vtkRenderer::Delegate
vtkRendererDelegate * Delegate
Definition: vtkRenderer.h:1011
vtkRenderer::PropArrayCount
int PropArrayCount
Definition: vtkRenderer.h:832
vtkRenderer::TimeFactor
double TimeFactor
Definition: vtkRenderer.h:810
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:46
vtkRenderer::UpdateLightsGeometryToFollowCamera
virtual vtkTypeBool UpdateLightsGeometryToFollowCamera(void)
Ask the lights in the scene that are not in world space (for instance, Headlights or CameraLights tha...
vtkCuller
a superclass for prop cullers
Definition: vtkCuller.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:36
vtkRenderer::CreateLight
void CreateLight(void)
Create and add a light to renderer.
vtkRenderer::TwoSidedLighting
vtkTypeBool TwoSidedLighting
Definition: vtkRenderer.h:811
vtkRenderer::GetActiveCameraAndResetIfCreated
vtkCamera * GetActiveCameraAndResetIfCreated()
Get the current camera and reset it only if it gets created automatically (see GetActiveCamera).
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:46
vtkRenderer::PickProp
vtkAssemblyPath * PickProp(double selectionX1, double selectionY1, double selectionX2, double selectionY2) override
Return the Prop that has the highest z value at the given x1, y1 and x2,y2 positions in the viewport.
vtkRenderer::UpdateGeometry
virtual int UpdateGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Ask all props to update and draw any opaque and translucent geometry.
vtkRenderer::UseHiddenLineRemoval
vtkTypeBool UseHiddenLineRemoval
When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using ...
Definition: vtkRenderer.h:953
vtkRenderer::PropArray
vtkProp ** PropArray
Definition: vtkRenderer.h:831
vtkCullerCollection
an ordered list of Cullers
Definition: vtkCullerCollection.h:35
vtkRenderer::UpdateTranslucentPolygonalGeometry
virtual int UpdateTranslucentPolygonalGeometry()
Ask all props to update and draw any translucent polygonal geometry.
vtkRenderer::GetZ
double GetZ(int x, int y)
Given a pixel location, return the Z value.
vtkRenderer::FXAAOptions
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
Definition: vtkRenderer.h:941
vtkRenderer::SetRightBackgroundTexture
virtual void SetRightBackgroundTexture(vtkTexture *)
Set/Get the texture to be used for the right eye background.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:45
vtkRenderer::SetPass
void SetPass(vtkRenderPass *p)
vtkRenderer::WorldToView
void WorldToView() override
Convert world point coordinates to view coordinates.
vtkRenderer::Actors
vtkActorCollection * Actors
Definition: vtkRenderer.h:804
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkRenderer::ComputeVisiblePropBounds
double * ComputeVisiblePropBounds()
Wrapper-friendly version of ComputeVisiblePropBounds.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
vtkRenderer::GetVTKWindow
vtkWindow * GetVTKWindow() override
Return the vtkWindow that owns this vtkViewport.
vtkRenderer::RemoveLight
void RemoveLight(vtkLight *)
Remove a light from the list of lights.
vtkRenderer::GL2PSSpecialPropCollection
vtkPropCollection * GL2PSSpecialPropCollection
Temporary collection used by vtkRenderWindow::CaptureGL2PSSpecialProps.
Definition: vtkRenderer.h:881
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:40
vtkRenderer::UseImageBasedLighting
bool UseImageBasedLighting
Definition: vtkRenderer.h:1023
vtkRenderer::Selector
vtkHardwareSelector * Selector
Definition: vtkRenderer.h:1007
vtkRenderer::Lights
vtkLightCollection * Lights
Definition: vtkRenderer.h:801
vtkRenderer::PoseToView
void PoseToView(double &wx, double &wy, double &wz) override
vtkRenderer::NearClippingPlaneTolerance
double NearClippingPlaneTolerance
Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane d...
Definition: vtkRenderer.h:855
vtkRenderer::RemoveCuller
void RemoveCuller(vtkCuller *)
Remove an actor from the list of cullers.
vtkRenderer::BackgroundTexture
vtkTexture * BackgroundTexture
Definition: vtkRenderer.h:1014
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:59
vtkRenderer::RemoveAllLights
void RemoveAllLights()
Remove all lights from the list of lights.
vtkRenderer::TexturedBackground
bool TexturedBackground
Definition: vtkRenderer.h:1013
vtkRenderer::AddLight
void AddLight(vtkLight *)
Add a light to the list of lights.
vtkRenderer::ViewToWorld
void ViewToWorld() override
Convert view point coordinates to world coordinates.
vtkRenderer::GetLeftBackgroundTexture
vtkTexture * GetLeftBackgroundTexture()
vtkActorCollection
an ordered list of actors
Definition: vtkActorCollection.h:37
vtkRenderer::RightBackgroundTexture
vtkTexture * RightBackgroundTexture
Definition: vtkRenderer.h:1015
vtkRenderer::SetActiveCamera
void SetActiveCamera(vtkCamera *)
Specify the camera to use for this renderer.
vtkRenderer::MaximumNumberOfPeels
int MaximumNumberOfPeels
In case of depth peeling, define the maximum number of peeling layers.
Definition: vtkRenderer.h:985
vtkRenderer::VisibleActorCount
int VisibleActorCount()
Returns the number of visible actors.
vtkRenderer::DeviceRenderTranslucentPolygonalGeometry
virtual void DeviceRenderTranslucentPolygonalGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Render translucent polygonal geometry.
vtkRenderer::GetTimeFactor
virtual double GetTimeFactor()
Get the ratio between allocated time and actual render time.
vtkRenderer::ExpandBounds
virtual void ExpandBounds(double bounds[6], vtkMatrix4x4 *matrix)
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:85
vtkRenderer::MakeLight
virtual vtkLight * MakeLight()
Create a new Light sutible for use with this type of Renderer.
vtkRenderer::RemoveActor
void RemoveActor(vtkProp *p)
vtkRenderer::WorldToPose
void WorldToPose(double &wx, double &wy, double &wz) override
Convert to from pose coordinates.
vtkRenderer::New
static vtkRenderer * New()
Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on,...
vtkRenderer::CreatedLight
vtkLight * CreatedLight
Definition: vtkRenderer.h:799
vtkRenderer::AddCuller
void AddCuller(vtkCuller *)
Add an culler to the list of cullers.
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:36
vtkRenderer::GetTiledAspectRatio
double GetTiledAspectRatio()
Compute the aspect ratio of this renderer for the current tile.
vtkRenderer::LastRenderingUsedDepthPeeling
vtkTypeBool LastRenderingUsedDepthPeeling
Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
Definition: vtkRenderer.h:992
vtkRenderer::DeviceRender
virtual void DeviceRender()
Create an image.
Definition: vtkRenderer.h:291
vtkRenderer::GetCullers
vtkCullerCollection * GetCullers()
Return the collection of cullers.
Definition: vtkRenderer.h:1042
vtkRenderer::ViewToPose
void ViewToPose(double &wx, double &wy, double &wz) override
vtkRenderer::Erase
vtkTypeBool Erase
When this flag is off, the renderer will not erase the background or the Zbuffer.
Definition: vtkRenderer.h:869
vtkRenderer::NumberOfPropsRendered
int NumberOfPropsRendered
Definition: vtkRenderer.h:827
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkRenderer::Information
vtkInformation * Information
Definition: vtkRenderer.h:1021
vtkRenderer::SetLayer
virtual void SetLayer(int layer)
Set/Get the layer that this renderer belongs to.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
vtkRenderPass
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:57