VTK  9.2.6
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 =========================================================================*/
50 #ifndef vtkRenderer_h
51 #define vtkRenderer_h
52 
53 #include "vtkRenderingCoreModule.h" // For export macro
54 #include "vtkViewport.h"
55 
56 #include "vtkActorCollection.h" // Needed for access in inline members
57 #include "vtkVolumeCollection.h" // Needed for access in inline members
58 
59 #include <array> // To store matrices
60 
61 class vtkFXAAOptions;
62 class vtkRenderWindow;
63 class vtkVolume;
64 class vtkCuller;
65 class vtkActor;
66 class vtkActor2D;
67 class vtkCamera;
69 class vtkInformation;
70 class vtkLightCollection;
72 class vtkLight;
75 class vtkRenderPass;
76 class vtkTexture;
77 
78 class vtkRecti;
79 class vtkVector3d;
80 
81 class VTKRENDERINGCORE_EXPORT vtkRenderer : public vtkViewport
82 {
83 public:
84  vtkTypeMacro(vtkRenderer, vtkViewport);
85  void PrintSelf(ostream& os, vtkIndent indent) override;
86 
92  static vtkRenderer* New();
93 
95 
100  void AddActor(vtkProp* p);
101  void AddVolume(vtkProp* p);
105 
110 
115 
120 
124  vtkLightCollection* GetLights();
125 
133 
137  void CreateLight(void);
138 
144  virtual vtkLight* MakeLight();
145 
147 
153  vtkGetMacro(TwoSidedLighting, vtkTypeBool);
154  vtkSetMacro(TwoSidedLighting, vtkTypeBool);
155  vtkBooleanMacro(TwoSidedLighting, vtkTypeBool);
157 
159 
172  vtkSetMacro(LightFollowCamera, vtkTypeBool);
173  vtkGetMacro(LightFollowCamera, vtkTypeBool);
174  vtkBooleanMacro(LightFollowCamera, vtkTypeBool);
176 
178 
186  vtkGetMacro(AutomaticLightCreation, vtkTypeBool);
187  vtkSetMacro(AutomaticLightCreation, vtkTypeBool);
188  vtkBooleanMacro(AutomaticLightCreation, vtkTypeBool);
190 
197 
202 
207 
212 
219 
225  virtual vtkCamera* MakeCamera();
226 
228 
234  vtkSetMacro(Erase, vtkTypeBool);
235  vtkGetMacro(Erase, vtkTypeBool);
236  vtkBooleanMacro(Erase, vtkTypeBool);
238 
240 
245  vtkSetMacro(Draw, vtkTypeBool);
246  vtkGetMacro(Draw, vtkTypeBool);
247  vtkBooleanMacro(Draw, vtkTypeBool);
249 
255 
262 
267 
272 
276  vtkCullerCollection* GetCullers();
277 
279 
282  vtkSetVector3Macro(Ambient, double);
283  vtkGetVectorMacro(Ambient, double, 3);
285 
287 
291  vtkSetMacro(AllocatedRenderTime, double);
292  virtual double GetAllocatedRenderTime();
294 
301  virtual double GetTimeFactor();
302 
309  virtual void Render();
310 
314  virtual void DeviceRender(){};
315 
323 
334 
339  virtual void ClearLights(void) {}
340 
344  virtual void Clear() {}
345 
350 
355 
360  void ComputeVisiblePropBounds(double bounds[6]);
361 
366 
371  virtual void ResetCameraClippingRange();
372 
374 
377  virtual void ResetCameraClippingRange(const double bounds[6]);
378  virtual void ResetCameraClippingRange(
379  double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
381 
383 
388  vtkSetClampMacro(NearClippingPlaneTolerance, double, 0, 0.99);
389  vtkGetMacro(NearClippingPlaneTolerance, double);
391 
393 
398  vtkSetClampMacro(ClippingRangeExpansion, double, 0, 0.99);
399  vtkGetMacro(ClippingRangeExpansion, double);
401 
408  virtual void ResetCamera();
409 
419  virtual void ResetCamera(const double bounds[6]);
420 
424  virtual void ResetCamera(
425  double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
426 
431  virtual void ResetCameraScreenSpace();
432 
438  virtual void ResetCameraScreenSpace(const double bounds[6]);
439 
440  using vtkViewport::DisplayToWorld;
441 
445  vtkVector3d DisplayToWorld(const vtkVector3d& display);
446 
452  void ZoomToBoxUsingViewAngle(const vtkRecti& box, const double offsetRatio = 1.0);
453 
457  virtual void ResetCameraScreenSpace(
458  double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
459 
461 
466  void SetRenderWindow(vtkRenderWindow*);
467  vtkRenderWindow* GetRenderWindow() { return this->RenderWindow; }
468  vtkWindow* GetVTKWindow() override;
470 
472 
478  vtkSetMacro(BackingStore, vtkTypeBool);
479  vtkGetMacro(BackingStore, vtkTypeBool);
480  vtkBooleanMacro(BackingStore, vtkTypeBool);
482 
484 
489  vtkSetMacro(Interactive, vtkTypeBool);
490  vtkGetMacro(Interactive, vtkTypeBool);
491  vtkBooleanMacro(Interactive, vtkTypeBool);
493 
495 
506  virtual void SetLayer(int layer);
507  vtkGetMacro(Layer, int);
509 
511 
521  vtkGetMacro(PreserveColorBuffer, vtkTypeBool);
522  vtkSetMacro(PreserveColorBuffer, vtkTypeBool);
523  vtkBooleanMacro(PreserveColorBuffer, vtkTypeBool);
525 
527 
531  vtkSetMacro(PreserveDepthBuffer, vtkTypeBool);
532  vtkGetMacro(PreserveDepthBuffer, vtkTypeBool);
533  vtkBooleanMacro(PreserveDepthBuffer, vtkTypeBool);
535 
540  int Transparent();
541 
545  void WorldToView() override;
546 
548 
551  void ViewToWorld() override;
552  void ViewToWorld(double& wx, double& wy, double& wz) override;
554 
558  void WorldToView(double& wx, double& wy, double& wz) override;
559 
561 
564  void WorldToPose(double& wx, double& wy, double& wz) override;
565  void PoseToWorld(double& wx, double& wy, double& wz) override;
566  void ViewToPose(double& wx, double& wy, double& wz) override;
567  void PoseToView(double& wx, double& wy, double& wz) override;
569 
574  double GetZ(int x, int y);
575 
579  vtkMTimeType GetMTime() override;
580 
582 
585  vtkGetMacro(LastRenderTimeInSeconds, double);
587 
589 
595  vtkGetMacro(NumberOfPropsRendered, int);
597 
599 
606  vtkAssemblyPath* PickProp(double selectionX, double selectionY) override
607  {
608  return this->PickProp(selectionX, selectionY, selectionX, selectionY);
609  }
611  double selectionX1, double selectionY1, double selectionX2, double selectionY2) override;
613 
615 
624  vtkAssemblyPath* PickProp(double selectionX, double selectionY, int fieldAssociation,
625  vtkSmartPointer<vtkSelection> selection) override
626  {
627  return this->PickProp(
628  selectionX, selectionY, selectionX, selectionY, fieldAssociation, selection);
629  }
630  vtkAssemblyPath* PickProp(double selectionX1, double selectionY1, double selectionX2,
631  double selectionY2, int fieldAssociation, vtkSmartPointer<vtkSelection> selection) override;
633 
639  virtual void StereoMidpoint() { return; }
640 
648 
654  vtkTypeBool IsActiveCameraCreated() { return (this->ActiveCamera != nullptr); }
655 
657 
667  vtkSetMacro(UseDepthPeeling, vtkTypeBool);
668  vtkGetMacro(UseDepthPeeling, vtkTypeBool);
669  vtkBooleanMacro(UseDepthPeeling, vtkTypeBool);
671 
677  vtkSetMacro(UseDepthPeelingForVolumes, bool);
678  vtkGetMacro(UseDepthPeelingForVolumes, bool);
679  vtkBooleanMacro(UseDepthPeelingForVolumes, bool);
680 
682 
691  vtkSetClampMacro(OcclusionRatio, double, 0.0, 0.5);
692  vtkGetMacro(OcclusionRatio, double);
694 
696 
701  vtkSetMacro(MaximumNumberOfPeels, int);
702  vtkGetMacro(MaximumNumberOfPeels, int);
704 
706 
711  vtkGetMacro(LastRenderingUsedDepthPeeling, vtkTypeBool);
713 
715 
719  vtkSetMacro(UseSSAO, bool);
720  vtkGetMacro(UseSSAO, bool);
721  vtkBooleanMacro(UseSSAO, bool);
723 
725 
729  vtkSetMacro(SSAORadius, double);
730  vtkGetMacro(SSAORadius, double);
732 
734 
738  vtkSetMacro(SSAOBias, double);
739  vtkGetMacro(SSAOBias, double);
741 
743 
747  vtkSetMacro(SSAOKernelSize, unsigned int);
748  vtkGetMacro(SSAOKernelSize, unsigned int);
750 
752 
757  vtkSetMacro(SSAOBlur, bool);
758  vtkGetMacro(SSAOBlur, bool);
759  vtkBooleanMacro(SSAOBlur, bool);
761 
763 
770  vtkGetObjectMacro(Delegate, vtkRendererDelegate);
772 
774 
779  vtkGetObjectMacro(Selector, vtkHardwareSelector);
781 
783 
791  vtkGetObjectMacro(BackgroundTexture, vtkTexture);
793 
795 
800  vtkGetObjectMacro(RightBackgroundTexture, vtkTexture);
802 
804 
808  vtkSetMacro(TexturedBackground, bool);
809  vtkGetMacro(TexturedBackground, bool);
810  vtkBooleanMacro(TexturedBackground, bool);
812 
813  // method to release graphics resources in any derived renderers.
815 
817 
820  vtkSetMacro(UseFXAA, bool);
821  vtkGetMacro(UseFXAA, bool);
822  vtkBooleanMacro(UseFXAA, bool);
824 
826 
829  vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
832 
834 
838  vtkSetMacro(UseShadows, vtkTypeBool);
839  vtkGetMacro(UseShadows, vtkTypeBool);
840  vtkBooleanMacro(UseShadows, vtkTypeBool);
842 
844 
848  vtkSetMacro(UseHiddenLineRemoval, vtkTypeBool);
849  vtkGetMacro(UseHiddenLineRemoval, vtkTypeBool);
850  vtkBooleanMacro(UseHiddenLineRemoval, vtkTypeBool);
852 
853  // Set/Get a custom render pass.
854  // Initial value is NULL.
856  vtkGetObjectMacro(Pass, vtkRenderPass);
857 
859 
862  vtkGetObjectMacro(Information, vtkInformation);
865 
867 
873  vtkSetMacro(UseImageBasedLighting, bool);
874  vtkGetMacro(UseImageBasedLighting, bool);
875  vtkBooleanMacro(UseImageBasedLighting, bool);
877 
879 
890  vtkGetObjectMacro(EnvironmentTexture, vtkTexture);
891  virtual void SetEnvironmentTexture(vtkTexture* texture, bool isSRGB = false);
893 
895 
898  vtkGetVector3Macro(EnvironmentUp, double);
899  vtkSetVector3Macro(EnvironmentUp, double);
901 
903 
906  vtkGetVector3Macro(EnvironmentRight, double);
907  vtkSetVector3Macro(EnvironmentRight, double);
909 
910 protected:
912  ~vtkRenderer() override;
913 
914  // internal method to expand bounding box to consider model transform
915  // matrix or model view transform matrix based on whether or not deering
916  // frustum is used. 'bounds' buffer is mutated to the expanded box.
917  virtual void ExpandBounds(double bounds[6], vtkMatrix4x4* matrix);
918 
921 
924 
927 
928  double Ambient[3];
931  double TimeFactor;
935  unsigned char* BackingImage;
936  int BackingStoreSize[2];
938 
940 
942 
943  // Allocate the time for each prop
944  void AllocateTime();
945 
946  // Internal variables indicating the number of props
947  // that have been or will be rendered in each category.
949 
950  // A temporary list of props used for culling, and traversal
951  // of all props when rendering
954 
955  // Indicates if the renderer should receive events from an interactor.
956  // Typically only used in conjunction with transparent renderers.
958 
959  // Shows what layer this renderer belongs to. Only of interested when
960  // there are layered renderers.
961  int Layer;
964 
965  // Holds the result of ComputeVisiblePropBounds so that it is visible from
966  // wrapped languages
967  double ComputedVisiblePropBounds[6];
968 
977 
983 
991 
998 
1003 
1008  const std::array<double, 16>& GetCompositeProjectionTransformationMatrix();
1009 
1014  const std::array<double, 16>& GetProjectionTransformationMatrix();
1015 
1020  const std::array<double, 16>& GetViewTransformMatrix();
1021 
1027  virtual int UpdateGeometry(vtkFrameBufferObjectBase* fbo = nullptr);
1028 
1037 
1044 
1049  virtual int UpdateCamera(void);
1050 
1057 
1062  virtual int UpdateLights(void) { return 0; }
1063 
1070 
1075  bool UseFXAA;
1076 
1081 
1087 
1093 
1101 
1107 
1118 
1125 
1126  bool UseSSAO = false;
1127  double SSAORadius = 0.5;
1128  double SSAOBias = 0.01;
1129  unsigned int SSAOKernelSize = 32;
1130  bool SSAOBlur = false;
1131 
1138 
1139  // HARDWARE SELECTION ----------------------------------------
1140  friend class vtkHardwareSelector;
1141 
1146  {
1147  this->Selector = selector;
1148  this->Modified();
1149  }
1150 
1151  // End Ivars for visible cell selecting.
1153 
1154  //---------------------------------------------------------------
1155  friend class vtkRendererDelegate;
1157 
1161 
1162  friend class vtkRenderPass;
1164 
1165  // Arbitrary extra information associated with this renderer
1167 
1170 
1171  double EnvironmentUp[3];
1172  double EnvironmentRight[3];
1173 
1174 private:
1178  std::array<double, 16> CompositeProjectionTransformationMatrix;
1179 
1183  double LastCompositeProjectionTransformationMatrixTiledAspectRatio;
1184 
1188  vtkMTimeType LastCompositeProjectionTransformationMatrixCameraModified;
1189 
1193  std::array<double, 16> ProjectionTransformationMatrix;
1194 
1198  double LastProjectionTransformationMatrixTiledAspectRatio;
1199 
1203  vtkMTimeType LastProjectionTransformationMatrixCameraModified;
1204 
1208  std::array<double, 16> ViewTransformMatrix;
1209 
1213  vtkMTimeType LastViewTransformCameraModified;
1214 
1215  vtkRenderer(const vtkRenderer&) = delete;
1216  void operator=(const vtkRenderer&) = delete;
1217 };
1218 
1220 {
1221  return this->Lights;
1222 }
1223 
1228 {
1229  return this->Cullers;
1230 }
1231 
1232 #endif
a actor that draws 2D data
Definition: vtkActor2D.h:55
an ordered list of actors
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:61
a list of nodes that form an assembly path
a virtual camera for 3D rendering
Definition: vtkCamera.h:61
an ordered list of Cullers
a superclass for prop cullers
Definition: vtkCuller.h:41
Configuration for FXAA implementations.
abstract interface to OpenGL FBOs
a simple class to control print indentation
Definition: vtkIndent.h:49
Store vtkAlgorithm input/output information.
an ordered list of lights
a virtual light for 3D rendering
Definition: vtkLight.h:69
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:51
virtual void Modified()
Update the modification time for this object.
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:66
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:60
create a window for renderers to draw into
Render the props of a vtkRenderer.
abstract specification for renderers
Definition: vtkRenderer.h:82
void RemoveVolume(vtkProp *p)
virtual void SetLayer(int layer)
Set/Get the layer that this renderer belongs to.
void ViewToWorld(double &wx, double &wy, double &wz) override
These methods map from one coordinate system to another.
virtual void SetFXAAOptions(vtkFXAAOptions *)
const std::array< double, 16 > & GetViewTransformMatrix()
Gets the ActiveCamera ViewTransformMatrix, only computing it if necessary.
virtual void ClearLights(void)
Internal method temporarily removes lights before reloading them into graphics pipeline.
Definition: vtkRenderer.h:339
void AddCuller(vtkCuller *)
Add an culler to the list of cullers.
void SetPass(vtkRenderPass *p)
vtkTypeBool PreserveDepthBuffer
Definition: vtkRenderer.h:963
vtkLight * CreatedLight
Definition: vtkRenderer.h:920
vtkRenderPass * Pass
Definition: vtkRenderer.h:1163
vtkTypeBool UseShadows
If this flag is on and the rendering engine supports it render shadows Initial value is off.
Definition: vtkRenderer.h:1086
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkRenderer * New()
Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on,...
double LastRenderTimeInSeconds
Definition: vtkRenderer.h:939
double GetTiledAspectRatio()
Compute the aspect ratio of this renderer for the current tile.
vtkCamera * GetActiveCameraAndResetIfCreated()
Get the current camera and reset it only if it gets created automatically (see GetActiveCamera).
void AddLight(vtkLight *)
Add a light to the list of lights.
vtkCullerCollection * GetCullers()
Return the collection of cullers.
Definition: vtkRenderer.h:1227
virtual vtkLight * MakeLight()
Create a new Light sutible for use with this type of Renderer.
virtual void SetRightBackgroundTexture(vtkTexture *)
Set/Get the texture to be used for the right eye background.
virtual void SetInformation(vtkInformation *)
vtkAssemblyPath * PickProp(double selectionX, double selectionY, int fieldAssociation, vtkSmartPointer< vtkSelection > selection) override
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x,...
Definition: vtkRenderer.h:624
virtual int UpdateLights(void)
Ask all lights to load themselves into rendering pipeline.
Definition: vtkRenderer.h:1062
virtual vtkTypeBool UpdateLightsGeometryToFollowCamera(void)
Ask the lights in the scene that are not in world space (for instance, Headlights or CameraLights tha...
~vtkRenderer() override
virtual int UpdateGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Ask all props to update and draw any opaque and translucent geometry.
vtkWindow * GetVTKWindow() override
Return the vtkWindow that owns this vtkViewport.
vtkActorCollection * GetActors()
Return any actors in this renderer.
int Transparent()
Returns a boolean indicating if this renderer is transparent.
virtual int UpdateCamera(void)
Ask the active camera to do whatever it needs to do prior to rendering.
bool UseImageBasedLighting
Definition: vtkRenderer.h:1168
int VisibleActorCount()
Returns the number of visible actors.
vtkTypeBool BackingStore
Definition: vtkRenderer.h:934
vtkTexture * EnvironmentTexture
Definition: vtkRenderer.h:1169
void RemoveLight(vtkLight *)
Remove a light from the list of lights.
bool UseDepthPeelingForVolumes
This flag is on and the GPU supports it, depth-peel volumes along with the translucent geometry.
Definition: vtkRenderer.h:1106
void RemoveActor(vtkProp *p)
virtual void SetLeftBackgroundTexture(vtkTexture *)
Set/Get the texture to be used for the monocular or stereo left eye background.
void SetSelector(vtkHardwareSelector *selector)
Called by vtkHardwareSelector when it begins rendering for selection.
Definition: vtkRenderer.h:1145
vtkMTimeType GetMTime() override
Return the MTime of the renderer also considering its ivars.
int MaximumNumberOfPeels
In case of depth peeling, define the maximum number of peeling layers.
Definition: vtkRenderer.h:1124
vtkTypeBool LastRenderingUsedDepthPeeling
Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
Definition: vtkRenderer.h:1137
void AllocateTime()
vtkRenderWindow * RenderWindow
Definition: vtkRenderer.h:929
int VisibleVolumeCount()
Returns the number of visible volumes.
double * ComputeVisiblePropBounds()
Wrapper-friendly version of ComputeVisiblePropBounds.
vtkTypeBool AutomaticLightCreation
Definition: vtkRenderer.h:933
int NumberOfPropsRendered
Definition: vtkRenderer.h:948
virtual void StereoMidpoint()
Do anything necessary between rendering the left and right viewpoints in a stereo render.
Definition: vtkRenderer.h:639
virtual vtkTypeBool UpdateLightGeometry(void)
Update the geometry of the lights in the scene that are not in world space (for instance,...
virtual int UpdateOpaquePolygonalGeometry()
Ask all props to update and draw any opaque polygonal geometry.
double TimeFactor
Definition: vtkRenderer.h:931
bool TexturedBackground
Definition: vtkRenderer.h:1158
vtkAssemblyPath * PickProp(double selectionX1, double selectionY1, double selectionX2, double selectionY2, int fieldAssociation, vtkSmartPointer< vtkSelection > selection) override
Return the Prop that has the highest z value at the given x1, y1 and x2,y2 positions in the viewport.
vtkVolumeCollection * Volumes
Definition: vtkRenderer.h:926
virtual void ExpandBounds(double bounds[6], vtkMatrix4x4 *matrix)
void RemoveCuller(vtkCuller *)
Remove an actor from the list of cullers.
double OcclusionRatio
In case of use of depth peeling technique for rendering translucent material, define the threshold un...
Definition: vtkRenderer.h:1117
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:606
void PoseToView(double &wx, double &wy, double &wz) override
These methods map from one coordinate system to another.
vtkTypeBool Erase
When this flag is off, the renderer will not erase the background or the Zbuffer.
Definition: vtkRenderer.h:990
vtkPropCollection * GL2PSSpecialPropCollection
Temporary collection used by vtkRenderWindow::CaptureGL2PSSpecialProps.
Definition: vtkRenderer.h:1002
bool UseFXAA
If this flag is on and the rendering engine supports it, FXAA will be used to antialias the scene.
Definition: vtkRenderer.h:1075
double ClippingRangeExpansion
Specify enlargement of bounds when resetting the camera clipping range.
Definition: vtkRenderer.h:982
int CaptureGL2PSSpecialProp(vtkProp *)
This function is called to capture an instance of vtkProp that requires special handling during vtkRe...
vtkTypeBool IsActiveCameraCreated()
This method returns 1 if the ActiveCamera has already been set or automatically created by the render...
Definition: vtkRenderer.h:654
unsigned char * BackingImage
Definition: vtkRenderer.h:935
vtkRendererDelegate * Delegate
Definition: vtkRenderer.h:1156
void SetLightCollection(vtkLightCollection *lights)
Set the collection of lights.
virtual void ReleaseGraphicsResources(vtkWindow *)
void PoseToWorld(double &wx, double &wy, double &wz) override
These methods map from one coordinate system to another.
void RemoveAllLights()
Remove all lights from the list of lights.
vtkTexture * BackgroundTexture
Definition: vtkRenderer.h:1159
virtual vtkCamera * MakeCamera()
Create a new Camera sutible for use with this type of Renderer.
double GetZ(int x, int y)
Given a pixel location, return the Z value.
vtkProp ** PropArray
Definition: vtkRenderer.h:952
vtkCullerCollection * Cullers
Definition: vtkRenderer.h:923
vtkCamera * GetActiveCamera()
Get the current camera.
void AddActor(vtkProp *p)
Add/Remove different types of props to the renderer.
int PropArrayCount
Definition: vtkRenderer.h:953
virtual double GetTimeFactor()
Get the ratio between allocated time and actual render time.
double AllocatedRenderTime
Definition: vtkRenderer.h:930
const std::array< double, 16 > & GetProjectionTransformationMatrix()
Gets the ActiveCamera ProjectionTransformationMatrix, only computing it if necessary.
double NearClippingPlaneTolerance
Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane d...
Definition: vtkRenderer.h:976
vtkTypeBool Draw
When this flag is off, render commands are ignored.
Definition: vtkRenderer.h:997
vtkHardwareSelector * Selector
Definition: vtkRenderer.h:1152
virtual void DeviceRender()
Create an image.
Definition: vtkRenderer.h:314
vtkTypeBool TwoSidedLighting
Definition: vtkRenderer.h:932
vtkTexture * RightBackgroundTexture
Definition: vtkRenderer.h:1160
vtkTypeBool UseDepthPeeling
If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials...
Definition: vtkRenderer.h:1100
vtkTypeBool UseHiddenLineRemoval
When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using ...
Definition: vtkRenderer.h:1092
void WorldToPose(double &wx, double &wy, double &wz) override
Convert to from pose coordinates.
vtkLightCollection * Lights
Definition: vtkRenderer.h:922
void CreateLight(void)
Create and add a light to renderer.
vtkTexture * GetLeftBackgroundTexture()
void ViewToWorld() override
Convert view point coordinates to world coordinates.
vtkVolumeCollection * GetVolumes()
Return the collection of volumes.
void SetActiveCamera(vtkCamera *)
Specify the camera to use for this renderer.
virtual void SetEnvironmentTexture(vtkTexture *texture, bool isSRGB=false)
vtkTimeStamp RenderTime
Definition: vtkRenderer.h:937
virtual void Render()
CALLED BY vtkRenderWindow ONLY.
virtual int UpdateTranslucentPolygonalGeometry()
Ask all props to update and draw any translucent polygonal geometry.
vtkLightCollection * GetLights()
Return the collection of lights.
Definition: vtkRenderer.h:1219
vtkTypeBool LightFollowCamera
Definition: vtkRenderer.h:941
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
Definition: vtkRenderer.h:1080
void ViewToPose(double &wx, double &wy, double &wz) override
These methods map from one coordinate system to another.
void WorldToView() override
Convert world point coordinates to view coordinates.
virtual void DeviceRenderOpaqueGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Render opaque polygonal geometry.
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.
virtual void SetBackgroundTexture(vtkTexture *)
void AddVolume(vtkProp *p)
void WorldToView(double &wx, double &wy, double &wz) override
Convert world point coordinates to view coordinates.
virtual double GetAllocatedRenderTime()
virtual void Clear()
Clear the image to the background color.
Definition: vtkRenderer.h:344
void ComputeVisiblePropBounds(double bounds[6])
Compute the bounding box of all the visible props Used in ResetCamera() and ResetCameraClippingRange(...
virtual void DeviceRenderTranslucentPolygonalGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Render translucent polygonal geometry.
vtkTypeBool PreserveColorBuffer
Definition: vtkRenderer.h:962
void SetGL2PSSpecialPropCollection(vtkPropCollection *)
Set the prop collection object used during vtkRenderWindow::CaptureGL2PSSpecialProps().
vtkActorCollection * Actors
Definition: vtkRenderer.h:925
void SetDelegate(vtkRendererDelegate *d)
Set/Get a custom Render call.
vtkTypeBool Interactive
Definition: vtkRenderer.h:957
vtkInformation * Information
Definition: vtkRenderer.h:1166
vtkCamera * ActiveCamera
Definition: vtkRenderer.h:919
const std::array< double, 16 > & GetCompositeProjectionTransformationMatrix()
Gets the ActiveCamera CompositeProjectionTransformationMatrix, only computing it if necessary.
handles properties associated with a texture map
Definition: vtkTexture.h:78
record modification and/or execution time
Definition: vtkTimeStamp.h:45
abstract specification for Viewports
Definition: vtkViewport.h:65
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.
an ordered list of volumes
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:60
window superclass for vtkRenderWindow
Definition: vtkWindow.h:48
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_SIZEHINT(...)