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=========================================================================*/
147#ifndef vtkRenderer_h
148#define vtkRenderer_h
149
150#include "vtkRenderingCoreModule.h" // For export macro
151#include "vtkViewport.h"
152
153#include "vtkActorCollection.h" // Needed for access in inline members
154#include "vtkVolumeCollection.h" // Needed for access in inline members
155
156#include <array> // To store matrices
157
158class vtkFXAAOptions;
159class vtkRenderWindow;
160class vtkVolume;
161class vtkCuller;
162class vtkActor;
163class vtkActor2D;
164class vtkCamera;
166class vtkInformation;
169class vtkLight;
172class vtkRenderPass;
173class vtkTexture;
174
175class vtkRecti;
176class vtkVector3d;
177
178class VTKRENDERINGCORE_EXPORT vtkRenderer : public vtkViewport
179{
180public:
181 vtkTypeMacro(vtkRenderer, vtkViewport);
182 void PrintSelf(ostream& os, vtkIndent indent) override;
183
189 static vtkRenderer* New();
190
192
202
207
212
217
221 vtkLightCollection* GetLights();
222
230
234 void CreateLight(void);
235
241 virtual vtkLight* MakeLight();
242
244
250 vtkGetMacro(TwoSidedLighting, vtkTypeBool);
251 vtkSetMacro(TwoSidedLighting, vtkTypeBool);
252 vtkBooleanMacro(TwoSidedLighting, vtkTypeBool);
254
256
269 vtkSetMacro(LightFollowCamera, vtkTypeBool);
270 vtkGetMacro(LightFollowCamera, vtkTypeBool);
271 vtkBooleanMacro(LightFollowCamera, vtkTypeBool);
273
275
283 vtkGetMacro(AutomaticLightCreation, vtkTypeBool);
284 vtkSetMacro(AutomaticLightCreation, vtkTypeBool);
285 vtkBooleanMacro(AutomaticLightCreation, vtkTypeBool);
287
294
299
304
309
316
323
325
331 vtkSetMacro(Erase, vtkTypeBool);
332 vtkGetMacro(Erase, vtkTypeBool);
333 vtkBooleanMacro(Erase, vtkTypeBool);
335
337
342 vtkSetMacro(Draw, vtkTypeBool);
343 vtkGetMacro(Draw, vtkTypeBool);
344 vtkBooleanMacro(Draw, vtkTypeBool);
346
352
359
364
369
373 vtkCullerCollection* GetCullers();
374
376
379 vtkSetVector3Macro(Ambient, double);
380 vtkGetVectorMacro(Ambient, double, 3);
382
384
388 vtkSetMacro(AllocatedRenderTime, double);
389 virtual double GetAllocatedRenderTime();
391
398 virtual double GetTimeFactor();
399
406 virtual void Render();
407
411 virtual void DeviceRender(){};
412
420
431
436 virtual void ClearLights(void) {}
437
441 virtual void Clear() {}
442
447
452
457 void ComputeVisiblePropBounds(double bounds[6]);
458
463
468 virtual void ResetCameraClippingRange();
469
471
474 virtual void ResetCameraClippingRange(const double bounds[6]);
475 virtual void ResetCameraClippingRange(
476 double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
478
480
485 vtkSetClampMacro(NearClippingPlaneTolerance, double, 0, 0.99);
486 vtkGetMacro(NearClippingPlaneTolerance, double);
488
490
495 vtkSetClampMacro(ClippingRangeExpansion, double, 0, 0.99);
496 vtkGetMacro(ClippingRangeExpansion, double);
498
505 virtual void ResetCamera();
506
516 virtual void ResetCamera(const double bounds[6]);
517
521 virtual void ResetCamera(
522 double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
523
528 virtual void ResetCameraScreenSpace();
529
535 virtual void ResetCameraScreenSpace(const double bounds[6]);
536
537 using vtkViewport::DisplayToWorld;
538
542 vtkVector3d DisplayToWorld(const vtkVector3d& display);
543
549 void ZoomToBoxUsingViewAngle(const vtkRecti& box, const double offsetRatio = 1.0);
550
554 virtual void ResetCameraScreenSpace(
555 double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
556
558
563 void SetRenderWindow(vtkRenderWindow*);
564 vtkRenderWindow* GetRenderWindow() { return this->RenderWindow; }
567
569
575 vtkSetMacro(BackingStore, vtkTypeBool);
576 vtkGetMacro(BackingStore, vtkTypeBool);
577 vtkBooleanMacro(BackingStore, vtkTypeBool);
579
581
586 vtkSetMacro(Interactive, vtkTypeBool);
587 vtkGetMacro(Interactive, vtkTypeBool);
588 vtkBooleanMacro(Interactive, vtkTypeBool);
590
592
603 virtual void SetLayer(int layer);
604 vtkGetMacro(Layer, int);
606
608
618 vtkGetMacro(PreserveColorBuffer, vtkTypeBool);
619 vtkSetMacro(PreserveColorBuffer, vtkTypeBool);
620 vtkBooleanMacro(PreserveColorBuffer, vtkTypeBool);
622
624
628 vtkSetMacro(PreserveDepthBuffer, vtkTypeBool);
629 vtkGetMacro(PreserveDepthBuffer, vtkTypeBool);
630 vtkBooleanMacro(PreserveDepthBuffer, vtkTypeBool);
632
638
642 void WorldToView() override;
643
645
648 void ViewToWorld() override;
649 void ViewToWorld(double& wx, double& wy, double& wz) override;
651
655 void WorldToView(double& wx, double& wy, double& wz) override;
656
658
661 void WorldToPose(double& wx, double& wy, double& wz) override;
662 void PoseToWorld(double& wx, double& wy, double& wz) override;
663 void ViewToPose(double& wx, double& wy, double& wz) override;
664 void PoseToView(double& wx, double& wy, double& wz) override;
666
671 double GetZ(int x, int y);
672
677
679
682 vtkGetMacro(LastRenderTimeInSeconds, double);
684
686
692 vtkGetMacro(NumberOfPropsRendered, int);
694
696
703 vtkAssemblyPath* PickProp(double selectionX, double selectionY) override
704 {
705 return this->PickProp(selectionX, selectionY, selectionX, selectionY);
706 }
708 double selectionX1, double selectionY1, double selectionX2, double selectionY2) override;
710
712
721 vtkAssemblyPath* PickProp(double selectionX, double selectionY, int fieldAssociation,
722 vtkSmartPointer<vtkSelection> selection) override
723 {
724 return this->PickProp(
725 selectionX, selectionY, selectionX, selectionY, fieldAssociation, selection);
726 }
727 vtkAssemblyPath* PickProp(double selectionX1, double selectionY1, double selectionX2,
728 double selectionY2, int fieldAssociation, vtkSmartPointer<vtkSelection> selection) override;
730
736 virtual void StereoMidpoint() { return; }
737
745
751 vtkTypeBool IsActiveCameraCreated() { return (this->ActiveCamera != nullptr); }
752
754
764 vtkSetMacro(UseDepthPeeling, vtkTypeBool);
765 vtkGetMacro(UseDepthPeeling, vtkTypeBool);
766 vtkBooleanMacro(UseDepthPeeling, vtkTypeBool);
768
774 vtkSetMacro(UseDepthPeelingForVolumes, bool);
775 vtkGetMacro(UseDepthPeelingForVolumes, bool);
776 vtkBooleanMacro(UseDepthPeelingForVolumes, bool);
777
779
788 vtkSetClampMacro(OcclusionRatio, double, 0.0, 0.5);
789 vtkGetMacro(OcclusionRatio, double);
791
793
798 vtkSetMacro(MaximumNumberOfPeels, int);
799 vtkGetMacro(MaximumNumberOfPeels, int);
801
803
808 vtkGetMacro(LastRenderingUsedDepthPeeling, vtkTypeBool);
810
812
816 vtkSetMacro(UseSSAO, bool);
817 vtkGetMacro(UseSSAO, bool);
818 vtkBooleanMacro(UseSSAO, bool);
820
822
826 vtkSetMacro(SSAORadius, double);
827 vtkGetMacro(SSAORadius, double);
829
831
835 vtkSetMacro(SSAOBias, double);
836 vtkGetMacro(SSAOBias, double);
838
840
844 vtkSetMacro(SSAOKernelSize, unsigned int);
845 vtkGetMacro(SSAOKernelSize, unsigned int);
847
849
854 vtkSetMacro(SSAOBlur, bool);
855 vtkGetMacro(SSAOBlur, bool);
856 vtkBooleanMacro(SSAOBlur, bool);
858
860
867 vtkGetObjectMacro(Delegate, vtkRendererDelegate);
869
871
876 vtkGetObjectMacro(Selector, vtkHardwareSelector);
878
880
888 vtkGetObjectMacro(BackgroundTexture, vtkTexture);
890
892
897 vtkGetObjectMacro(RightBackgroundTexture, vtkTexture);
899
901
905 vtkSetMacro(TexturedBackground, bool);
906 vtkGetMacro(TexturedBackground, bool);
907 vtkBooleanMacro(TexturedBackground, bool);
909
910 // method to release graphics resources in any derived renderers.
912
914
917 vtkSetMacro(UseFXAA, bool);
918 vtkGetMacro(UseFXAA, bool);
919 vtkBooleanMacro(UseFXAA, bool);
921
923
926 vtkGetObjectMacro(FXAAOptions, vtkFXAAOptions);
929
931
935 vtkSetMacro(UseShadows, vtkTypeBool);
936 vtkGetMacro(UseShadows, vtkTypeBool);
937 vtkBooleanMacro(UseShadows, vtkTypeBool);
939
941
945 vtkSetMacro(UseHiddenLineRemoval, vtkTypeBool);
946 vtkGetMacro(UseHiddenLineRemoval, vtkTypeBool);
947 vtkBooleanMacro(UseHiddenLineRemoval, vtkTypeBool);
949
950 // Set/Get a custom render pass.
951 // Initial value is NULL.
953 vtkGetObjectMacro(Pass, vtkRenderPass);
954
956
959 vtkGetObjectMacro(Information, vtkInformation);
962
964
970 vtkSetMacro(UseImageBasedLighting, bool);
971 vtkGetMacro(UseImageBasedLighting, bool);
972 vtkBooleanMacro(UseImageBasedLighting, bool);
974
976
987 vtkGetObjectMacro(EnvironmentTexture, vtkTexture);
988 virtual void SetEnvironmentTexture(vtkTexture* texture, bool isSRGB = false);
990
992
995 vtkGetVector3Macro(EnvironmentUp, double);
996 vtkSetVector3Macro(EnvironmentUp, double);
998
1000
1003 vtkGetVector3Macro(EnvironmentRight, double);
1004 vtkSetVector3Macro(EnvironmentRight, double);
1006
1007protected:
1009 ~vtkRenderer() override;
1010
1011 // internal method to expand bounding box to consider model transform
1012 // matrix or model view transform matrix based on whether or not deering
1013 // frustum is used. 'bounds' buffer is mutated to the expanded box.
1014 virtual void ExpandBounds(double bounds[6], vtkMatrix4x4* matrix);
1015
1018
1021
1024
1025 double Ambient[3];
1032 unsigned char* BackingImage;
1033 int BackingStoreSize[2];
1035
1037
1039
1040 // Allocate the time for each prop
1042
1043 // Internal variables indicating the number of props
1044 // that have been or will be rendered in each category.
1046
1047 // A temporary list of props used for culling, and traversal
1048 // of all props when rendering
1051
1052 // Indicates if the renderer should receive events from an interactor.
1053 // Typically only used in conjunction with transparent renderers.
1055
1056 // Shows what layer this renderer belongs to. Only of interested when
1057 // there are layered renderers.
1061
1062 // Holds the result of ComputeVisiblePropBounds so that it is visible from
1063 // wrapped languages
1064 double ComputedVisiblePropBounds[6];
1065
1074
1080
1088
1095
1100
1105 const std::array<double, 16>& GetCompositeProjectionTransformationMatrix();
1106
1111 const std::array<double, 16>& GetProjectionTransformationMatrix();
1112
1117 const std::array<double, 16>& GetViewTransformMatrix();
1118
1124 virtual int UpdateGeometry(vtkFrameBufferObjectBase* fbo = nullptr);
1125
1134
1141
1146 virtual int UpdateCamera(void);
1147
1154
1159 virtual int UpdateLights(void) { return 0; }
1160
1167
1173
1178
1184
1190
1198
1204
1215
1222
1223 bool UseSSAO = false;
1224 double SSAORadius = 0.5;
1225 double SSAOBias = 0.01;
1226 unsigned int SSAOKernelSize = 32;
1227 bool SSAOBlur = false;
1228
1235
1236 // HARDWARE SELECTION ----------------------------------------
1238
1243 {
1244 this->Selector = selector;
1245 this->Modified();
1246 }
1247
1248 // End Ivars for visible cell selecting.
1250
1251 //---------------------------------------------------------------
1254
1258
1259 friend class vtkRenderPass;
1261
1262 // Arbitrary extra information associated with this renderer
1264
1267
1268 double EnvironmentUp[3];
1269 double EnvironmentRight[3];
1270
1271private:
1275 std::array<double, 16> CompositeProjectionTransformationMatrix;
1276
1280 double LastCompositeProjectionTransformationMatrixTiledAspectRatio;
1281
1285 vtkMTimeType LastCompositeProjectionTransformationMatrixCameraModified;
1286
1290 std::array<double, 16> ProjectionTransformationMatrix;
1291
1295 double LastProjectionTransformationMatrixTiledAspectRatio;
1296
1300 vtkMTimeType LastProjectionTransformationMatrixCameraModified;
1301
1305 std::array<double, 16> ViewTransformMatrix;
1306
1310 vtkMTimeType LastViewTransformCameraModified;
1311
1312 vtkRenderer(const vtkRenderer&) = delete;
1313 void operator=(const vtkRenderer&) = delete;
1314};
1315
1317{
1318 return this->Lights;
1319}
1320
1325{
1326 return this->Cullers;
1327}
1328
1329#endif
a actor that draws 2D data
Definition: vtkActor2D.h:155
an ordered list of actors
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:161
a list of nodes that form an assembly path
a virtual camera for 3D rendering
Definition: vtkCamera.h:161
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:119
Store vtkAlgorithm input/output information.
an ordered list of lights
a virtual light for 3D rendering
Definition: vtkLight.h:169
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:151
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:73
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:179
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.
Definition: vtkRenderer.h:436
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:721
vtkCamera * GetActiveCamera()
Get the current camera.
void AddCuller(vtkCuller *)
Add an culler to the list of cullers.
void SetPass(vtkRenderPass *p)
vtkTypeBool PreserveDepthBuffer
Definition: vtkRenderer.h:1060
vtkLight * CreatedLight
Definition: vtkRenderer.h:1017
vtkRenderPass * Pass
Definition: vtkRenderer.h:1260
vtkTypeBool UseShadows
If this flag is on and the rendering engine supports it render shadows Initial value is off.
Definition: vtkRenderer.h:1183
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
Definition: vtkRenderer.h:1036
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.
Definition: vtkRenderer.h:1324
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.
Definition: vtkRenderer.h:1159
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
Definition: vtkRenderer.h:1265
int VisibleActorCount()
Returns the number of visible actors.
vtkTypeBool BackingStore
Definition: vtkRenderer.h:1031
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
Definition: vtkRenderer.h:1266
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:1203
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:1242
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:1221
vtkTypeBool LastRenderingUsedDepthPeeling
Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
Definition: vtkRenderer.h:1234
void AllocateTime()
vtkRenderWindow * RenderWindow
Definition: vtkRenderer.h:1026
int VisibleVolumeCount()
Returns the number of visible volumes.
vtkTypeBool AutomaticLightCreation
Definition: vtkRenderer.h:1030
int NumberOfPropsRendered
Definition: vtkRenderer.h:1045
virtual void StereoMidpoint()
Do anything necessary between rendering the left and right viewpoints in a stereo render.
Definition: vtkRenderer.h:736
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:1028
bool TexturedBackground
Definition: vtkRenderer.h:1255
vtkVolumeCollection * Volumes
Definition: vtkRenderer.h:1023
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...
Definition: vtkRenderer.h:1214
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.
Definition: vtkRenderer.h:1087
vtkPropCollection * GL2PSSpecialPropCollection
Temporary collection used by vtkRenderWindow::CaptureGL2PSSpecialProps.
Definition: vtkRenderer.h:1099
bool UseFXAA
If this flag is on and the rendering engine supports it, FXAA will be used to antialias the scene.
Definition: vtkRenderer.h:1172
vtkVolumeCollection * GetVolumes()
Return the collection of volumes.
vtkTexture * GetLeftBackgroundTexture()
double ClippingRangeExpansion
Specify enlargement of bounds when resetting the camera clipping range.
Definition: vtkRenderer.h:1079
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...
Definition: vtkRenderer.h:751
unsigned char * BackingImage
Definition: vtkRenderer.h:1032
static vtkRenderer * New()
Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on,...
vtkRendererDelegate * Delegate
Definition: vtkRenderer.h:1253
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:1256
double GetZ(int x, int y)
Given a pixel location, return the Z value.
vtkProp ** PropArray
Definition: vtkRenderer.h:1049
double * ComputeVisiblePropBounds()
Wrapper-friendly version of ComputeVisiblePropBounds.
vtkCullerCollection * Cullers
Definition: vtkRenderer.h:1020
void AddActor(vtkProp *p)
Add/Remove different types of props to the renderer.
int PropArrayCount
Definition: vtkRenderer.h:1050
virtual double GetTimeFactor()
Get the ratio between allocated time and actual render time.
double AllocatedRenderTime
Definition: vtkRenderer.h:1027
double NearClippingPlaneTolerance
Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane d...
Definition: vtkRenderer.h:1073
vtkTypeBool Draw
When this flag is off, render commands are ignored.
Definition: vtkRenderer.h:1094
vtkHardwareSelector * Selector
Definition: vtkRenderer.h:1249
virtual void DeviceRender()
Create an image.
Definition: vtkRenderer.h:411
vtkTypeBool TwoSidedLighting
Definition: vtkRenderer.h:1029
vtkTexture * RightBackgroundTexture
Definition: vtkRenderer.h:1257
vtkTypeBool UseDepthPeeling
If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials...
Definition: vtkRenderer.h:1197
vtkTypeBool UseHiddenLineRemoval
When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using ...
Definition: vtkRenderer.h:1189
void WorldToPose(double &wx, double &wy, double &wz) override
Convert to from pose coordinates.
vtkLightCollection * Lights
Definition: vtkRenderer.h:1019
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
Definition: vtkRenderer.h:1034
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:1316
vtkTypeBool LightFollowCamera
Definition: vtkRenderer.h:1038
vtkFXAAOptions * FXAAOptions
Holds the FXAA configuration.
Definition: vtkRenderer.h:1177
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.
Definition: vtkRenderer.h:441
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:1059
void SetGL2PSSpecialPropCollection(vtkPropCollection *)
Set the prop collection object used during vtkRenderWindow::CaptureGL2PSSpecialProps().
vtkActorCollection * Actors
Definition: vtkRenderer.h:1022
void SetDelegate(vtkRendererDelegate *d)
Set/Get a custom Render call.
vtkTypeBool Interactive
Definition: vtkRenderer.h:1054
vtkInformation * Information
Definition: vtkRenderer.h:1263
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:703
vtkCamera * ActiveCamera
Definition: vtkRenderer.h:1016
handles properties associated with a texture map
Definition: vtkTexture.h:178
record modification and/or execution time
Definition: vtkTimeStamp.h:55
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:150
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_SIZEHINT(...)