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=========================================================================*/
41#ifndef vtkRenderer_h
42#define vtkRenderer_h
43
44#include "vtkRenderingCoreModule.h" // For export macro
45#include "vtkViewport.h"
46
47#include "vtkActorCollection.h" // Needed for access in inline members
48#include "vtkVolumeCollection.h" // Needed for access in inline members
49
50#include <array> // To store matrices
51
52class vtkFXAAOptions;
53class vtkRenderWindow;
54class vtkVolume;
55class vtkCuller;
56class vtkActor;
57class vtkActor2D;
58class vtkCamera;
60class vtkInformation;
63class vtkLight;
66class vtkRenderPass;
67class vtkTexture;
68
69class vtkRecti;
70class vtkVector3d;
71
72class VTKRENDERINGCORE_EXPORT vtkRenderer : public vtkViewport
73{
74public:
75 vtkTypeMacro(vtkRenderer, vtkViewport);
76 void PrintSelf(ostream& os, vtkIndent indent) override;
77
83 static vtkRenderer* New();
84
86
91 void AddActor(vtkProp* p);
96
101
106
111
115 vtkLightCollection* GetLights();
116
124
128 void CreateLight(void);
129
135 virtual vtkLight* MakeLight();
136
138
144 vtkGetMacro(TwoSidedLighting, vtkTypeBool);
145 vtkSetMacro(TwoSidedLighting, vtkTypeBool);
146 vtkBooleanMacro(TwoSidedLighting, vtkTypeBool);
148
150
163 vtkSetMacro(LightFollowCamera, vtkTypeBool);
164 vtkGetMacro(LightFollowCamera, vtkTypeBool);
165 vtkBooleanMacro(LightFollowCamera, vtkTypeBool);
167
169
177 vtkGetMacro(AutomaticLightCreation, vtkTypeBool);
178 vtkSetMacro(AutomaticLightCreation, vtkTypeBool);
179 vtkBooleanMacro(AutomaticLightCreation, vtkTypeBool);
181
188
193
198
203
210
217
219
225 vtkSetMacro(Erase, vtkTypeBool);
226 vtkGetMacro(Erase, vtkTypeBool);
227 vtkBooleanMacro(Erase, vtkTypeBool);
229
231
236 vtkSetMacro(Draw, vtkTypeBool);
237 vtkGetMacro(Draw, vtkTypeBool);
238 vtkBooleanMacro(Draw, vtkTypeBool);
240
246
253
258
263
267 vtkCullerCollection* GetCullers();
268
270
273 vtkSetVector3Macro(Ambient, double);
274 vtkGetVectorMacro(Ambient, double, 3);
276
278
282 vtkSetMacro(AllocatedRenderTime, double);
283 virtual double GetAllocatedRenderTime();
285
292 virtual double GetTimeFactor();
293
300 virtual void Render();
301
305 virtual void DeviceRender(){};
306
314
325
330 virtual void ClearLights(void) {}
331
335 virtual void Clear() {}
336
341
346
351 void ComputeVisiblePropBounds(double bounds[6]);
352
357
362 virtual void ResetCameraClippingRange();
363
365
368 virtual void ResetCameraClippingRange(const double bounds[6]);
369 virtual void ResetCameraClippingRange(
370 double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
372
374
379 vtkSetClampMacro(NearClippingPlaneTolerance, double, 0, 0.99);
380 vtkGetMacro(NearClippingPlaneTolerance, double);
382
384
389 vtkSetClampMacro(ClippingRangeExpansion, double, 0, 0.99);
390 vtkGetMacro(ClippingRangeExpansion, double);
392
399 virtual void ResetCamera();
400
410 virtual void ResetCamera(const double bounds[6]);
411
415 virtual void ResetCamera(
416 double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
417
422 virtual void ResetCameraScreenSpace();
423
429 virtual void ResetCameraScreenSpace(const double bounds[6]);
430
431 using vtkViewport::DisplayToWorld;
432
436 vtkVector3d DisplayToWorld(const vtkVector3d& display);
437
443 void ZoomToBoxUsingViewAngle(const vtkRecti& box, const double offsetRatio = 1.0);
444
448 virtual void ResetCameraScreenSpace(
449 double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
450
452
457 void SetRenderWindow(vtkRenderWindow*);
458 vtkRenderWindow* GetRenderWindow() { return this->RenderWindow; }
461
463
469 vtkSetMacro(BackingStore, vtkTypeBool);
470 vtkGetMacro(BackingStore, vtkTypeBool);
471 vtkBooleanMacro(BackingStore, vtkTypeBool);
473
475
480 vtkSetMacro(Interactive, vtkTypeBool);
481 vtkGetMacro(Interactive, vtkTypeBool);
482 vtkBooleanMacro(Interactive, vtkTypeBool);
484
486
497 virtual void SetLayer(int layer);
498 vtkGetMacro(Layer, int);
500
502
512 vtkGetMacro(PreserveColorBuffer, vtkTypeBool);
513 vtkSetMacro(PreserveColorBuffer, vtkTypeBool);
514 vtkBooleanMacro(PreserveColorBuffer, vtkTypeBool);
516
518
522 vtkSetMacro(PreserveDepthBuffer, vtkTypeBool);
523 vtkGetMacro(PreserveDepthBuffer, vtkTypeBool);
524 vtkBooleanMacro(PreserveDepthBuffer, vtkTypeBool);
526
532
536 void WorldToView() override;
537
539
542 void ViewToWorld() override;
543 void ViewToWorld(double& wx, double& wy, double& wz) override;
545
549 void WorldToView(double& wx, double& wy, double& wz) override;
550
552
555 void WorldToPose(double& wx, double& wy, double& wz) override;
556 void PoseToWorld(double& wx, double& wy, double& wz) override;
557 void ViewToPose(double& wx, double& wy, double& wz) override;
558 void PoseToView(double& wx, double& wy, double& wz) override;
560
565 double GetZ(int x, int y);
566
571
573
576 vtkGetMacro(LastRenderTimeInSeconds, double);
578
580
586 vtkGetMacro(NumberOfPropsRendered, int);
588
590
597 vtkAssemblyPath* PickProp(double selectionX, double selectionY) override
598 {
599 return this->PickProp(selectionX, selectionY, selectionX, selectionY);
600 }
602 double selectionX1, double selectionY1, double selectionX2, double selectionY2) override;
604
606
615 vtkAssemblyPath* PickProp(double selectionX, double selectionY, int fieldAssociation,
616 vtkSmartPointer<vtkSelection> selection) override
617 {
618 return this->PickProp(
619 selectionX, selectionY, selectionX, selectionY, fieldAssociation, selection);
620 }
621 vtkAssemblyPath* PickProp(double selectionX1, double selectionY1, double selectionX2,
622 double selectionY2, int fieldAssociation, vtkSmartPointer<vtkSelection> selection) override;
624
630 virtual void StereoMidpoint() { return; }
631
639
645 vtkTypeBool IsActiveCameraCreated() { return (this->ActiveCamera != nullptr); }
646
648
658 vtkSetMacro(UseDepthPeeling, vtkTypeBool);
659 vtkGetMacro(UseDepthPeeling, vtkTypeBool);
660 vtkBooleanMacro(UseDepthPeeling, vtkTypeBool);
662
668 vtkSetMacro(UseDepthPeelingForVolumes, bool);
669 vtkGetMacro(UseDepthPeelingForVolumes, bool);
670 vtkBooleanMacro(UseDepthPeelingForVolumes, bool);
671
673
682 vtkSetClampMacro(OcclusionRatio, double, 0.0, 0.5);
683 vtkGetMacro(OcclusionRatio, double);
685
687
692 vtkSetMacro(MaximumNumberOfPeels, int);
693 vtkGetMacro(MaximumNumberOfPeels, int);
695
697
702 vtkGetMacro(LastRenderingUsedDepthPeeling, vtkTypeBool);
704
706
710 vtkSetMacro(UseSSAO, bool);
711 vtkGetMacro(UseSSAO, bool);
712 vtkBooleanMacro(UseSSAO, bool);
714
716
720 vtkSetMacro(SSAORadius, double);
721 vtkGetMacro(SSAORadius, double);
723
725
729 vtkSetMacro(SSAOBias, double);
730 vtkGetMacro(SSAOBias, double);
732
734
738 vtkSetMacro(SSAOKernelSize, unsigned int);
739 vtkGetMacro(SSAOKernelSize, unsigned int);
741
743
748 vtkSetMacro(SSAOBlur, bool);
749 vtkGetMacro(SSAOBlur, bool);
750 vtkBooleanMacro(SSAOBlur, bool);
752
754
761 vtkGetObjectMacro(Delegate, vtkRendererDelegate);
763
765
770 vtkGetObjectMacro(Selector, vtkHardwareSelector);
772
774
782 vtkGetObjectMacro(BackgroundTexture, vtkTexture);
784
786
791 vtkGetObjectMacro(RightBackgroundTexture, vtkTexture);
793
795
799 vtkSetMacro(TexturedBackground, bool);
800 vtkGetMacro(TexturedBackground, bool);
801 vtkBooleanMacro(TexturedBackground, bool);
803
804 // method to release graphics resources in any derived renderers.
806
808
811 vtkSetMacro(UseFXAA, bool);
812 vtkGetMacro(UseFXAA, bool);
813 vtkBooleanMacro(UseFXAA, bool);
815
817
820 vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
823
825
829 vtkSetMacro(UseShadows, vtkTypeBool);
830 vtkGetMacro(UseShadows, vtkTypeBool);
831 vtkBooleanMacro(UseShadows, vtkTypeBool);
833
835
839 vtkSetMacro(UseHiddenLineRemoval, vtkTypeBool);
840 vtkGetMacro(UseHiddenLineRemoval, vtkTypeBool);
841 vtkBooleanMacro(UseHiddenLineRemoval, vtkTypeBool);
843
844 // Set/Get a custom render pass.
845 // Initial value is NULL.
847 vtkGetObjectMacro(Pass, vtkRenderPass);
848
850
853 vtkGetObjectMacro(Information, vtkInformation);
856
858
864 vtkSetMacro(UseImageBasedLighting, bool);
865 vtkGetMacro(UseImageBasedLighting, bool);
866 vtkBooleanMacro(UseImageBasedLighting, bool);
868
870
881 vtkGetObjectMacro(EnvironmentTexture, vtkTexture);
882 virtual void SetEnvironmentTexture(vtkTexture* texture, bool isSRGB = false);
884
886
889 vtkGetVector3Macro(EnvironmentUp, double);
890 vtkSetVector3Macro(EnvironmentUp, double);
892
894
897 vtkGetVector3Macro(EnvironmentRight, double);
898 vtkSetVector3Macro(EnvironmentRight, double);
900
901protected:
903 ~vtkRenderer() override;
904
905 // internal method to expand bounding box to consider model transform
906 // matrix or model view transform matrix based on whether or not deering
907 // frustum is used. 'bounds' buffer is mutated to the expanded box.
908 virtual void ExpandBounds(double bounds[6], vtkMatrix4x4* matrix);
909
912
915
918
919 double Ambient[3];
926 unsigned char* BackingImage;
927 int BackingStoreSize[2];
929
931
933
934 // Allocate the time for each prop
936
937 // Internal variables indicating the number of props
938 // that have been or will be rendered in each category.
940
941 // A temporary list of props used for culling, and traversal
942 // of all props when rendering
945
946 // Indicates if the renderer should receive events from an interactor.
947 // Typically only used in conjunction with transparent renderers.
949
950 // Shows what layer this renderer belongs to. Only of interested when
951 // there are layered renderers.
952 int Layer;
955
956 // Holds the result of ComputeVisiblePropBounds so that it is visible from
957 // wrapped languages
958 double ComputedVisiblePropBounds[6];
959
968
974
982
989
994
999 const std::array<double, 16>& GetCompositeProjectionTransformationMatrix();
1000
1005 const std::array<double, 16>& GetProjectionTransformationMatrix();
1006
1011 const std::array<double, 16>& GetViewTransformMatrix();
1012
1018 virtual int UpdateGeometry(vtkFrameBufferObjectBase* fbo = nullptr);
1019
1028
1035
1040 virtual int UpdateCamera(void);
1041
1048
1053 virtual int UpdateLights(void) { return 0; }
1054
1061
1067
1072
1078
1084
1092
1098
1109
1116
1117 bool UseSSAO = false;
1118 double SSAORadius = 0.5;
1119 double SSAOBias = 0.01;
1120 unsigned int SSAOKernelSize = 32;
1121 bool SSAOBlur = false;
1122
1129
1130 // HARDWARE SELECTION ----------------------------------------
1132
1137 {
1138 this->Selector = selector;
1139 this->Modified();
1140 }
1141
1142 // End Ivars for visible cell selecting.
1144
1145 //---------------------------------------------------------------
1148
1152
1153 friend class vtkRenderPass;
1155
1156 // Arbitrary extra information associated with this renderer
1158
1161
1162 double EnvironmentUp[3];
1163 double EnvironmentRight[3];
1164
1165private:
1169 std::array<double, 16> CompositeProjectionTransformationMatrix;
1170
1174 double LastCompositeProjectionTransformationMatrixTiledAspectRatio;
1175
1179 vtkMTimeType LastCompositeProjectionTransformationMatrixCameraModified;
1180
1184 std::array<double, 16> ProjectionTransformationMatrix;
1185
1189 double LastProjectionTransformationMatrixTiledAspectRatio;
1190
1194 vtkMTimeType LastProjectionTransformationMatrixCameraModified;
1195
1199 std::array<double, 16> ViewTransformMatrix;
1200
1204 vtkMTimeType LastViewTransformCameraModified;
1205
1206 vtkRenderer(const vtkRenderer&) = delete;
1207 void operator=(const vtkRenderer&) = delete;
1208};
1209
1211{
1212 return this->Lights;
1213}
1214
1219{
1220 return this->Cullers;
1221}
1222
1223#endif
a actor that draws 2D data
Definition vtkActor2D.h:46
an ordered list of actors
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:52
a list of nodes that form an assembly path
a virtual camera for 3D rendering
Definition vtkCamera.h:52
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:40
Store vtkAlgorithm input/output information.
an ordered list of lights
a virtual light for 3D rendering
Definition vtkLight.h:60
represent and manipulate 4x4 transformation matrices
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:57
Perform part of the rendering of a vtkRenderer.
create a window for renderers to draw into
Render the props of a vtkRenderer.
abstract specification for renderers
Definition vtkRenderer.h:73
void RemoveVolume(vtkProp *p)
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
These methods map from one coordinate system to another.
virtual void SetFXAAOptions(vtkFXAAOptions *)
virtual void ClearLights(void)
Internal method temporarily removes lights before reloading them into graphics pipeline.
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,...
vtkCamera * GetActiveCamera()
Get the current camera.
void AddCuller(vtkCuller *)
Add an culler to the list of cullers.
void SetPass(vtkRenderPass *p)
vtkTypeBool PreserveDepthBuffer
vtkLight * CreatedLight
vtkRenderPass * Pass
vtkTypeBool UseShadows
If this flag is on and the rendering engine supports it render shadows Initial value is off.
vtkActorCollection * GetActors()
Return any actors in this renderer.
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
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 that has the highest z value at the given x1, y1 and x2,y2 positions in the viewport.
void AddLight(vtkLight *)
Add a light to the list of lights.
vtkCullerCollection * GetCullers()
Return the collection of cullers.
virtual vtkCamera * MakeCamera()
Create a new Camera 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 *)
virtual int UpdateLights(void)
Ask all lights to load themselves into rendering pipeline.
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.
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
int VisibleActorCount()
Returns the number of visible actors.
vtkTypeBool BackingStore
const std::array< double, 16 > & GetCompositeProjectionTransformationMatrix()
Gets the ActiveCamera CompositeProjectionTransformationMatrix, only computing it if necessary.
virtual vtkLight * MakeLight()
Create a new Light sutible for use with this type of Renderer.
vtkTexture * EnvironmentTexture
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.
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.
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.
vtkTypeBool LastRenderingUsedDepthPeeling
Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
void AllocateTime()
vtkRenderWindow * RenderWindow
int VisibleVolumeCount()
Returns the number of visible volumes.
vtkTypeBool AutomaticLightCreation
int NumberOfPropsRendered
virtual void StereoMidpoint()
Do anything necessary between rendering the left and right viewpoints in a stereo render.
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
bool TexturedBackground
vtkVolumeCollection * Volumes
vtkWindow * GetVTKWindow() override
Return the vtkWindow that owns this vtkViewport.
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...
const std::array< double, 16 > & GetProjectionTransformationMatrix()
Gets the ActiveCamera ProjectionTransformationMatrix, only computing it if necessary.
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.
vtkPropCollection * GL2PSSpecialPropCollection
Temporary collection used by vtkRenderWindow::CaptureGL2PSSpecialProps.
bool UseFXAA
If this flag is on and the rendering engine supports it, FXAA will be used to antialias the scene.
vtkVolumeCollection * GetVolumes()
Return the collection of volumes.
vtkTexture * GetLeftBackgroundTexture()
double ClippingRangeExpansion
Specify enlargement of bounds when resetting the camera clipping range.
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.
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...
unsigned char * BackingImage
static vtkRenderer * New()
Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on,...
vtkRendererDelegate * Delegate
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
double GetZ(int x, int y)
Given a pixel location, return the Z value.
vtkProp ** PropArray
double * ComputeVisiblePropBounds()
Wrapper-friendly version of ComputeVisiblePropBounds.
vtkCullerCollection * Cullers
void AddActor(vtkProp *p)
Add/Remove different types of props to the renderer.
virtual double GetTimeFactor()
Get the ratio between allocated time and actual render time.
double AllocatedRenderTime
double NearClippingPlaneTolerance
Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane d...
vtkTypeBool Draw
When this flag is off, render commands are ignored.
vtkHardwareSelector * Selector
virtual void DeviceRender()
Create an image.
vtkTypeBool TwoSidedLighting
vtkTexture * RightBackgroundTexture
vtkTypeBool UseDepthPeeling
If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials...
vtkTypeBool UseHiddenLineRemoval
When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using ...
void WorldToPose(double &wx, double &wy, double &wz) override
Convert to from pose coordinates.
vtkLightCollection * Lights
void CreateLight(void)
Create and add a light to renderer.
void ViewToWorld() override
Convert view point coordinates to world coordinates.
void SetActiveCamera(vtkCamera *)
Specify the camera to use for this renderer.
virtual void SetEnvironmentTexture(vtkTexture *texture, bool isSRGB=false)
vtkTimeStamp RenderTime
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.
vtkTypeBool LightFollowCamera
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
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.
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.
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
void SetGL2PSSpecialPropCollection(vtkPropCollection *)
Set the prop collection object used during vtkRenderWindow::CaptureGL2PSSpecialProps().
vtkActorCollection * Actors
void SetDelegate(vtkRendererDelegate *d)
Set/Get a custom Render call.
vtkTypeBool Interactive
vtkInformation * Information
vtkAssemblyPath * PickProp(double selectionX, double selectionY) override
Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x,...
vtkCamera * ActiveCamera
Hold a reference to a vtkObjectBase instance.
handles properties associated with a texture map
Definition vtkTexture.h:69
record modification and/or execution time
abstract specification for Viewports
Definition vtkViewport.h:56
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:51
window superclass for vtkRenderWindow
Definition vtkWindow.h:39
int vtkTypeBool
Definition vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_SIZEHINT(...)