VTK  9.5.2
vtkRenderer.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
29#ifndef vtkRenderer_h
30#define vtkRenderer_h
31
32#include "vtkRenderingCoreModule.h" // For export macro
33#include "vtkViewport.h"
34#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
35
36#include "vtkActorCollection.h" // Needed for access in inline members
37#include "vtkVolumeCollection.h" // Needed for access in inline members
38
39#include <array> // To store matrices
40
41VTK_ABI_NAMESPACE_BEGIN
42class vtkFXAAOptions;
43class vtkRenderWindow;
44class vtkVolume;
45class vtkCuller;
46class vtkActor;
47class vtkActor2D;
48class vtkCamera;
50class vtkInformation;
53class vtkLight;
56class vtkRenderPass;
57class vtkTexture;
58
59class vtkRecti;
60class vtkVector3d;
61
62class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkRenderer : public vtkViewport
63{
64public:
65 vtkTypeMacro(vtkRenderer, vtkViewport);
66 void PrintSelf(ostream& os, vtkIndent indent) override;
67
73 static vtkRenderer* New();
74
76
82 void AddActor(vtkProp* p);
84 void AddVolume(vtkProp* p);
86 void RemoveActor(vtkProp* p);
88 void RemoveVolume(vtkProp* p);
90
95 void AddLight(vtkLight*);
96
101 void RemoveLight(vtkLight*);
102
107 void RemoveAllLights();
108
112 vtkLightCollection* GetLights();
113
120 void SetLightCollection(vtkLightCollection* lights);
121
125 void CreateLight();
126
132 virtual vtkLight* MakeLight();
133
135
141 vtkGetMacro(TwoSidedLighting, vtkTypeBool);
142 vtkSetMacro(TwoSidedLighting, vtkTypeBool);
143 vtkBooleanMacro(TwoSidedLighting, vtkTypeBool);
145
147
160 vtkSetMacro(LightFollowCamera, vtkTypeBool);
161 vtkGetMacro(LightFollowCamera, vtkTypeBool);
162 vtkBooleanMacro(LightFollowCamera, vtkTypeBool);
164
166
174 vtkGetMacro(AutomaticLightCreation, vtkTypeBool);
175 vtkSetMacro(AutomaticLightCreation, vtkTypeBool);
176 vtkBooleanMacro(AutomaticLightCreation, vtkTypeBool);
178
184 virtual vtkTypeBool UpdateLightsGeometryToFollowCamera();
185
190 vtkVolumeCollection* GetVolumes();
191
196 vtkActorCollection* GetActors();
197
201 void SetActiveCamera(vtkCamera*);
202
208 vtkCamera* GetActiveCamera();
209
215 virtual vtkCamera* MakeCamera();
216
218
224 vtkSetMacro(Erase, vtkTypeBool);
225 vtkGetMacro(Erase, vtkTypeBool);
226 vtkBooleanMacro(Erase, vtkTypeBool);
228
230
235 vtkSetMacro(Draw, vtkTypeBool);
236 vtkGetMacro(Draw, vtkTypeBool);
237 vtkBooleanMacro(Draw, vtkTypeBool);
239
244 int CaptureGL2PSSpecialProp(vtkProp*);
245
251 void SetGL2PSSpecialPropCollection(vtkPropCollection*);
252
257 void AddCuller(vtkCuller*);
258
263 void RemoveCuller(vtkCuller*);
264
268 vtkCullerCollection* GetCullers();
269
271
274 vtkSetVector3Macro(Ambient, double);
275 vtkGetVectorMacro(Ambient, double, 3);
277
279
283 vtkSetMacro(AllocatedRenderTime, double);
284 virtual double GetAllocatedRenderTime();
286
293 virtual double GetTimeFactor();
294
301 virtual void Render();
302
306 virtual void DeviceRender() {}
307
315
326
331 virtual void ClearLights() {}
332
336 virtual void Clear() {}
337
342
347
352 void ComputeVisiblePropBounds(double bounds[6]);
353
358
363 virtual void ResetCameraClippingRange();
364
366
369 virtual void ResetCameraClippingRange(const double bounds[6]);
370 virtual void ResetCameraClippingRange(
371 double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
373
375
380 vtkSetClampMacro(NearClippingPlaneTolerance, double, 0, 0.99);
381 vtkGetMacro(NearClippingPlaneTolerance, double);
383
385
390 vtkSetClampMacro(ClippingRangeExpansion, double, 0, 0.99);
391 vtkGetMacro(ClippingRangeExpansion, double);
393
400 virtual void ResetCamera();
401
411 virtual void ResetCamera(const double bounds[6]);
412
416 virtual void ResetCamera(
417 double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
418
426 virtual void ResetCameraScreenSpace(double offsetRatio = 0.9);
427
436 virtual void ResetCameraScreenSpace(const double bounds[6], double offsetRatio = 0.9);
437
438 using vtkViewport::DisplayToWorld;
439
443 vtkVector3d DisplayToWorld(const vtkVector3d& display);
444
450 void ZoomToBoxUsingViewAngle(const vtkRecti& box, double offsetRatio = 1.0);
451
458 virtual void ResetCameraScreenSpace(double xmin, double xmax, double ymin, double ymax,
459 double zmin, double zmax, double offsetRatio = 0.9);
460
462
467 void SetRenderWindow(vtkRenderWindow*);
468 vtkRenderWindow* GetRenderWindow() { return this->RenderWindow; }
471
473
479 vtkSetMacro(BackingStore, vtkTypeBool);
480 vtkGetMacro(BackingStore, vtkTypeBool);
481 vtkBooleanMacro(BackingStore, vtkTypeBool);
483
485
490 vtkSetMacro(Interactive, vtkTypeBool);
491 vtkGetMacro(Interactive, vtkTypeBool);
492 vtkBooleanMacro(Interactive, vtkTypeBool);
494
496
507 virtual void SetLayer(int layer);
508 vtkGetMacro(Layer, int);
510
512
522 vtkGetMacro(PreserveColorBuffer, vtkTypeBool);
523 vtkSetMacro(PreserveColorBuffer, vtkTypeBool);
524 vtkBooleanMacro(PreserveColorBuffer, vtkTypeBool);
526
528
532 vtkSetMacro(PreserveDepthBuffer, vtkTypeBool);
533 vtkGetMacro(PreserveDepthBuffer, vtkTypeBool);
534 vtkBooleanMacro(PreserveDepthBuffer, vtkTypeBool);
536
542
546 void WorldToView() override;
547
549
552 void ViewToWorld() override;
553 void ViewToWorld(double& wx, double& wy, double& wz) override;
555
559 void WorldToView(double& wx, double& wy, double& wz) override;
560
562
565 void WorldToPose(double& wx, double& wy, double& wz) override;
566 void PoseToWorld(double& wx, double& wy, double& wz) override;
567 void ViewToPose(double& wx, double& wy, double& wz) override;
568 void PoseToView(double& wx, double& wy, double& wz) override;
570
580 double GetZ(int x, int y);
581
583
590 vtkSetMacro(SafeGetZ, bool);
591 vtkGetMacro(SafeGetZ, bool);
592 vtkBooleanMacro(SafeGetZ, bool);
594
599
601
604 vtkGetMacro(LastRenderTimeInSeconds, double);
606
608
614 vtkGetMacro(NumberOfPropsRendered, int);
616
618
625 vtkAssemblyPath* PickProp(double selectionX, double selectionY) override
626 {
627 return this->PickProp(selectionX, selectionY, selectionX, selectionY);
628 }
630 double selectionX1, double selectionY1, double selectionX2, double selectionY2) override;
632
634
644 vtkAssemblyPath* PickProp(double selectionX, double selectionY, int fieldAssociation,
645 vtkSmartPointer<vtkSelection> selection) override
646 {
647 return this->PickProp(
648 selectionX, selectionY, selectionX, selectionY, fieldAssociation, selection);
649 }
650 vtkAssemblyPath* PickProp(double selectionX1, double selectionY1, double selectionX2,
651 double selectionY2, int fieldAssociation, vtkSmartPointer<vtkSelection> selection) override;
653
659 virtual void StereoMidpoint() {}
660
668
674 vtkTypeBool IsActiveCameraCreated() { return (this->ActiveCamera != nullptr); }
675
677
687 vtkSetMacro(UseDepthPeeling, vtkTypeBool);
688 vtkGetMacro(UseDepthPeeling, vtkTypeBool);
689 vtkBooleanMacro(UseDepthPeeling, vtkTypeBool);
691
697 vtkSetMacro(UseDepthPeelingForVolumes, bool);
698 vtkGetMacro(UseDepthPeelingForVolumes, bool);
699 vtkBooleanMacro(UseDepthPeelingForVolumes, bool);
700
702
711 vtkSetClampMacro(OcclusionRatio, double, 0.0, 0.5);
712 vtkGetMacro(OcclusionRatio, double);
714
716
721 vtkSetMacro(MaximumNumberOfPeels, int);
722 vtkGetMacro(MaximumNumberOfPeels, int);
724
726
731 vtkGetMacro(LastRenderingUsedDepthPeeling, vtkTypeBool);
733
735
739 vtkSetMacro(UseSSAO, bool);
740 vtkGetMacro(UseSSAO, bool);
741 vtkBooleanMacro(UseSSAO, bool);
743
745
749 vtkSetMacro(SSAORadius, double);
750 vtkGetMacro(SSAORadius, double);
752
754
758 vtkSetMacro(SSAOBias, double);
759 vtkGetMacro(SSAOBias, double);
761
763
767 vtkSetMacro(SSAOKernelSize, unsigned int);
768 vtkGetMacro(SSAOKernelSize, unsigned int);
770
772
777 vtkSetMacro(SSAOBlur, bool);
778 vtkGetMacro(SSAOBlur, bool);
779 vtkBooleanMacro(SSAOBlur, bool);
781
783
790 vtkGetObjectMacro(Delegate, vtkRendererDelegate);
792
794
799 vtkGetObjectMacro(Selector, vtkHardwareSelector);
801
803
811 vtkGetObjectMacro(BackgroundTexture, vtkTexture);
813
815
820 vtkGetObjectMacro(RightBackgroundTexture, vtkTexture);
822
824
828 vtkSetMacro(TexturedBackground, bool);
829 vtkGetMacro(TexturedBackground, bool);
830 vtkBooleanMacro(TexturedBackground, bool);
832
833 // method to release graphics resources in any derived renderers.
835
837
840 vtkSetMacro(UseFXAA, bool);
841 vtkGetMacro(UseFXAA, bool);
842 vtkBooleanMacro(UseFXAA, bool);
844
846
849 vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
852
854
858 vtkSetMacro(UseShadows, vtkTypeBool);
859 vtkGetMacro(UseShadows, vtkTypeBool);
860 vtkBooleanMacro(UseShadows, vtkTypeBool);
862
864
868 vtkSetMacro(UseHiddenLineRemoval, vtkTypeBool);
869 vtkGetMacro(UseHiddenLineRemoval, vtkTypeBool);
870 vtkBooleanMacro(UseHiddenLineRemoval, vtkTypeBool);
872
873 // Set/Get a custom render pass.
874 // Initial value is NULL.
876 vtkGetObjectMacro(Pass, vtkRenderPass);
877
879
882 vtkGetObjectMacro(Information, vtkInformation);
885
887
893 vtkSetMacro(UseImageBasedLighting, bool);
894 vtkGetMacro(UseImageBasedLighting, bool);
895 vtkBooleanMacro(UseImageBasedLighting, bool);
897
899
904 VTK_MARSHALGETTER(EnvironmentTextureProperty)
905 vtkGetObjectMacro(EnvironmentTexture, vtkTexture);
906 VTK_MARSHALSETTER(EnvironmentTextureProperty)
907 void SetEnvironmentTextureProperty(vtkTexture* texture) { this->SetEnvironmentTexture(texture); }
908 virtual void SetEnvironmentTexture(vtkTexture* texture, bool isSRGB = false);
910
912
915 vtkGetVector3Macro(EnvironmentUp, double);
916 vtkSetVector3Macro(EnvironmentUp, double);
918
920
923 vtkGetVector3Macro(EnvironmentRight, double);
924 vtkSetVector3Macro(EnvironmentRight, double);
926
928
939 vtkSetMacro(UseOIT, bool);
940 vtkGetMacro(UseOIT, bool);
941 vtkBooleanMacro(UseOIT, bool);
943
944protected:
946 ~vtkRenderer() override;
947
948 // internal method to expand bounding box to consider model transform
949 // matrix or model view transform matrix based on whether or not deering
950 // frustum is used. 'bounds' buffer is mutated to the expanded box.
951 virtual void ExpandBounds(double bounds[6], vtkMatrix4x4* matrix);
952
955
958
961
962 double Ambient[3];
969 unsigned char* BackingImage;
970 int BackingStoreSize[2];
972
974
976
977 // Allocate the time for each prop
979
980 // Internal variables indicating the number of props
981 // that have been or will be rendered in each category.
983
984 // A temporary list of props used for culling, and traversal
985 // of all props when rendering
988
989 // Indicates if the renderer should receive events from an interactor.
990 // Typically only used in conjunction with transparent renderers.
992
993 // Shows what layer this renderer belongs to. Only of interested when
994 // there are layered renderers.
995 int Layer;
998
999 // Holds the result of ComputeVisiblePropBounds so that it is visible from
1000 // wrapped languages
1001 double ComputedVisiblePropBounds[6];
1002
1011
1017
1025
1032
1037
1042 const std::array<double, 16>& GetCompositeProjectionTransformationMatrix();
1043
1048 const std::array<double, 16>& GetProjectionTransformationMatrix();
1049
1054 const std::array<double, 16>& GetViewTransformMatrix();
1055
1061 virtual int UpdateGeometry(vtkFrameBufferObjectBase* fbo = nullptr);
1062
1071
1078
1083 virtual int UpdateCamera();
1084
1091
1096 virtual int UpdateLights() { return 0; }
1097
1104
1110
1115
1121
1127
1135
1141
1152
1159
1160 bool UseSSAO = false;
1161 double SSAORadius = 0.5;
1162 double SSAOBias = 0.01;
1163 unsigned int SSAOKernelSize = 32;
1164 bool SSAOBlur = false;
1165
1177 bool UseOIT = true;
1178
1185
1186 // HARDWARE SELECTION ----------------------------------------
1188
1193 {
1194 this->Selector = selector;
1195 this->Modified();
1196 }
1197
1198 // End Ivars for visible cell selecting.
1200
1201 //---------------------------------------------------------------
1204
1208
1209 friend class vtkRenderPass;
1211
1212 // Arbitrary extra information associated with this renderer
1214
1217
1218 double EnvironmentUp[3];
1219 double EnvironmentRight[3];
1220
1221private:
1225 std::array<double, 16> CompositeProjectionTransformationMatrix;
1226
1230 double LastCompositeProjectionTransformationMatrixTiledAspectRatio;
1231
1235 vtkMTimeType LastCompositeProjectionTransformationMatrixCameraModified;
1236
1240 std::array<double, 16> ProjectionTransformationMatrix;
1241
1245 double LastProjectionTransformationMatrixTiledAspectRatio;
1246
1250 vtkMTimeType LastProjectionTransformationMatrixCameraModified;
1251
1255 std::array<double, 16> ViewTransformMatrix;
1256
1260 vtkMTimeType LastViewTransformCameraModified;
1261
1265 bool SafeGetZ = false;
1266
1267 vtkRenderer(const vtkRenderer&) = delete;
1268 void operator=(const vtkRenderer&) = delete;
1269};
1270
1272{
1273 return this->Lights;
1274}
1275
1280{
1281 return this->Cullers;
1282}
1283
1284VTK_ABI_NAMESPACE_END
1285#endif
a actor that draws 2D data
Definition: vtkActor2D.h:36
an ordered list of actors
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:42
a list of nodes that form an assembly path
a virtual camera for 3D rendering
Definition: vtkCamera.h:42
an ordered list of Cullers
a superclass for prop cullers
Definition: vtkCuller.h:31
Configuration for FXAA implementations.
abstract interface to OpenGL FBOs
a simple class to control print indentation
Definition: vtkIndent.h:29
Store vtkAlgorithm input/output information.
an ordered list of lights
a virtual light for 3D rendering
Definition: vtkLight.h:50
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:32
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:47
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:50
create a window for renderers to draw into
Render the props of a vtkRenderer.
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void SetLayer(int layer)
Set/Get the layer that this renderer belongs to.
vtkCamera * GetActiveCameraAndResetIfCreated()
Get the current camera and reset it only if it gets created automatically (see GetActiveCamera).
void ViewToWorld(double &wx, double &wy, double &wz) override
Convert view point coordinates to world coordinates.
virtual void SetFXAAOptions(vtkFXAAOptions *)
The configuration object for FXAA antialiasing.
virtual int UpdateCamera()
Ask the active camera to do whatever it needs to do prior to rendering.
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:644
virtual vtkTypeBool UpdateLightGeometry()
Update the geometry of the lights in the scene that are not in world space (for instance,...
void SetPass(vtkRenderPass *p)
virtual int UpdateLights()
Ask all lights to load themselves into rendering pipeline.
Definition: vtkRenderer.h:1096
vtkTypeBool PreserveDepthBuffer
Definition: vtkRenderer.h:997
vtkLight * CreatedLight
Definition: vtkRenderer.h:954
vtkRenderPass * Pass
Definition: vtkRenderer.h:1210
vtkTypeBool UseShadows
If this flag is on and the rendering engine supports it render shadows Initial value is off.
Definition: vtkRenderer.h:1120
const std::array< double, 16 > & GetViewTransformMatrix()
Gets the ActiveCamera ViewTransformMatrix, only computing it if necessary.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double LastRenderTimeInSeconds
Definition: vtkRenderer.h:973
double GetTiledAspectRatio()
Compute the aspect ratio of this renderer for the current tile.
vtkAssemblyPath * PickProp(double selectionX1, double selectionY1, double selectionX2, double selectionY2, int fieldAssociation, vtkSmartPointer< vtkSelection > selection) override
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x,...
vtkCullerCollection * GetCullers()
Return the collection of cullers.
Definition: vtkRenderer.h:1279
virtual void SetRightBackgroundTexture(vtkTexture *)
Set/Get the texture to be used for the right eye background.
virtual void SetInformation(vtkInformation *)
Set/Get the information object associated with this algorithm.
~vtkRenderer() override
virtual int UpdateGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Ask all props to update and draw any opaque and translucent geometry.
bool UseImageBasedLighting
Definition: vtkRenderer.h:1215
int VisibleActorCount()
Returns the number of visible actors.
vtkTypeBool BackingStore
Definition: vtkRenderer.h:968
const std::array< double, 16 > & GetCompositeProjectionTransformationMatrix()
Gets the ActiveCamera CompositeProjectionTransformationMatrix, only computing it if necessary.
vtkTexture * EnvironmentTexture
Definition: vtkRenderer.h:1216
bool UseDepthPeelingForVolumes
This flag is on and the GPU supports it, depth-peel volumes along with the translucent geometry.
Definition: vtkRenderer.h:1140
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:1192
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:1158
vtkTypeBool LastRenderingUsedDepthPeeling
Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
Definition: vtkRenderer.h:1184
void AllocateTime()
vtkRenderWindow * RenderWindow
Definition: vtkRenderer.h:963
int VisibleVolumeCount()
Returns the number of visible volumes.
vtkTypeBool AutomaticLightCreation
Definition: vtkRenderer.h:967
int NumberOfPropsRendered
Definition: vtkRenderer.h:982
virtual void StereoMidpoint()
Do anything necessary between rendering the left and right viewpoints in a stereo render.
Definition: vtkRenderer.h:659
virtual int UpdateOpaquePolygonalGeometry()
Ask all props to update and draw any opaque polygonal geometry.
double TimeFactor
Definition: vtkRenderer.h:965
bool TexturedBackground
Definition: vtkRenderer.h:1205
vtkVolumeCollection * Volumes
Definition: vtkRenderer.h:960
vtkWindow * GetVTKWindow() override
Specify the rendering window in which to draw.
virtual void ExpandBounds(double bounds[6], vtkMatrix4x4 *matrix)
double OcclusionRatio
In case of use of depth peeling technique for rendering translucent material, define the threshold un...
Definition: vtkRenderer.h:1151
const std::array< double, 16 > & GetProjectionTransformationMatrix()
Gets the ActiveCamera ProjectionTransformationMatrix, only computing it if necessary.
void PoseToView(double &wx, double &wy, double &wz) override
Convert to from pose coordinates.
vtkTypeBool Erase
When this flag is off, the renderer will not erase the background or the Zbuffer.
Definition: vtkRenderer.h:1024
vtkPropCollection * GL2PSSpecialPropCollection
Temporary collection used by vtkRenderWindow::CaptureGL2PSSpecialProps.
Definition: vtkRenderer.h:1036
bool UseFXAA
If this flag is on and the rendering engine supports it, FXAA will be used to antialias the scene.
Definition: vtkRenderer.h:1109
vtkTexture * GetLeftBackgroundTexture()
Set/Get the texture to be used for the monocular or stereo left eye background.
double ClippingRangeExpansion
Specify enlargement of bounds when resetting the camera clipping range.
Definition: vtkRenderer.h:1016
vtkAssemblyPath * PickProp(double selectionX1, double selectionY1, double selectionX2, double selectionY2) override
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x,...
vtkTypeBool Transparent()
Returns a boolean indicating if this renderer is transparent.
vtkTypeBool IsActiveCameraCreated()
This method returns 1 if the ActiveCamera has already been set or automatically created by the render...
Definition: vtkRenderer.h:674
unsigned char * BackingImage
Definition: vtkRenderer.h:969
static vtkRenderer * New()
Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on,...
vtkRendererDelegate * Delegate
Definition: vtkRenderer.h:1203
virtual void ReleaseGraphicsResources(vtkWindow *)
void PoseToWorld(double &wx, double &wy, double &wz) override
Convert to from pose coordinates.
vtkTexture * BackgroundTexture
Definition: vtkRenderer.h:1206
double GetZ(int x, int y)
Given a pixel location, return the Z value.
vtkProp ** PropArray
Definition: vtkRenderer.h:986
double * ComputeVisiblePropBounds()
Wrapper-friendly version of ComputeVisiblePropBounds.
vtkCullerCollection * Cullers
Definition: vtkRenderer.h:957
int PropArrayCount
Definition: vtkRenderer.h:987
double AllocatedRenderTime
Definition: vtkRenderer.h:964
double NearClippingPlaneTolerance
Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane d...
Definition: vtkRenderer.h:1010
vtkTypeBool Draw
When this flag is off, render commands are ignored.
Definition: vtkRenderer.h:1031
vtkHardwareSelector * Selector
Definition: vtkRenderer.h:1199
vtkTypeBool TwoSidedLighting
Definition: vtkRenderer.h:966
vtkTexture * RightBackgroundTexture
Definition: vtkRenderer.h:1207
vtkTypeBool UseDepthPeeling
If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials...
Definition: vtkRenderer.h:1134
vtkTypeBool UseHiddenLineRemoval
When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using ...
Definition: vtkRenderer.h:1126
void WorldToPose(double &wx, double &wy, double &wz) override
Convert to from pose coordinates.
vtkLightCollection * Lights
Definition: vtkRenderer.h:956
void ViewToWorld() override
Convert view point coordinates to world coordinates.
virtual void SetEnvironmentTexture(vtkTexture *texture, bool isSRGB=false)
Set/Get the environment texture used for image based lighting.
vtkTimeStamp RenderTime
Definition: vtkRenderer.h:971
virtual int UpdateTranslucentPolygonalGeometry()
Ask all props to update and draw any translucent polygonal geometry.
virtual void ClearLights()
Internal method temporarily removes lights before reloading them into graphics pipeline.
Definition: vtkRenderer.h:331
vtkLightCollection * GetLights()
Return the collection of lights.
Definition: vtkRenderer.h:1271
vtkTypeBool LightFollowCamera
Definition: vtkRenderer.h:975
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
Definition: vtkRenderer.h:1114
void ViewToPose(double &wx, double &wy, double &wz) override
Convert to from pose coordinates.
void WorldToView() override
Convert world point coordinates to view coordinates.
virtual void DeviceRenderOpaqueGeometry(vtkFrameBufferObjectBase *fbo=nullptr)
Render opaque polygonal geometry.
virtual void SetBackgroundTexture(vtkTexture *)
Set/Get the texture to be used for the monocular or stereo left eye background.
void WorldToView(double &wx, double &wy, double &wz) override
Convert world point coordinates to view coordinates.
virtual void Clear()
Clear the image to the background color.
Definition: vtkRenderer.h:336
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:996
vtkActorCollection * Actors
Definition: vtkRenderer.h:959
void SetDelegate(vtkRendererDelegate *d)
Set/Get a custom Render call.
vtkTypeBool Interactive
Definition: vtkRenderer.h:991
vtkInformation * Information
Definition: vtkRenderer.h:1213
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:625
vtkCamera * ActiveCamera
Definition: vtkRenderer.h:953
handles properties associated with a texture map
Definition: vtkTexture.h:59
record modification and/or execution time
Definition: vtkTimeStamp.h:25
abstract specification for Viewports
Definition: vtkViewport.h:47
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:41
window superclass for vtkRenderWindow
Definition: vtkWindow.h:29
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_MARSHALSETTER(property)
#define VTK_SIZEHINT(...)
#define VTK_MARSHALGETTER(property)
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALAUTO
#define VTK_MARSHALEXCLUDE(reason)