VTK  9.4.20241222
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
vtkRenderer Class Reference

abstract specification for renderers More...

#include <vtkRenderer.h>

Inheritance diagram for vtkRenderer:
[legend]
Collaboration diagram for vtkRenderer:
[legend]

Public Types

typedef vtkViewport Superclass
 
- Public Types inherited from vtkViewport
enum class  GradientModes : int { VTK_GRADIENT_VERTICAL , VTK_GRADIENT_HORIZONTAL , VTK_GRADIENT_RADIAL_VIEWPORT_FARTHEST_SIDE , VTK_GRADIENT_RADIAL_VIEWPORT_FARTHEST_CORNER }
 
typedef vtkObject Superclass
 

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class.
 
vtkRendererNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses.
 
void AddLight (vtkLight *)
 Add a light to the list of lights.
 
void RemoveLight (vtkLight *)
 Remove a light from the list of lights.
 
void RemoveAllLights ()
 Remove all lights from the list of lights.
 
vtkLightCollectionGetLights ()
 Return the collection of lights.
 
void SetLightCollection (vtkLightCollection *lights)
 Set the collection of lights.
 
void CreateLight ()
 Create and add a light to renderer.
 
virtual vtkLightMakeLight ()
 Create a new Light sutible for use with this type of Renderer.
 
virtual vtkTypeBool UpdateLightsGeometryToFollowCamera ()
 Ask the lights in the scene that are not in world space (for instance, Headlights or CameraLights that are attached to the camera) to update their geometry to match the active camera.
 
vtkVolumeCollectionGetVolumes ()
 Return the collection of volumes.
 
vtkActorCollectionGetActors ()
 Return any actors in this renderer.
 
void SetActiveCamera (vtkCamera *)
 Specify the camera to use for this renderer.
 
vtkCameraGetActiveCamera ()
 Get the current camera.
 
virtual vtkCameraMakeCamera ()
 Create a new Camera sutible for use with this type of Renderer.
 
int CaptureGL2PSSpecialProp (vtkProp *)
 This function is called to capture an instance of vtkProp that requires special handling during vtkRenderWindow::CaptureGL2PSSpecialProps().
 
void SetGL2PSSpecialPropCollection (vtkPropCollection *)
 Set the prop collection object used during vtkRenderWindow::CaptureGL2PSSpecialProps().
 
void AddCuller (vtkCuller *)
 Add an culler to the list of cullers.
 
void RemoveCuller (vtkCuller *)
 Remove an actor from the list of cullers.
 
vtkCullerCollectionGetCullers ()
 Return the collection of cullers.
 
virtual double GetTimeFactor ()
 Get the ratio between allocated time and actual render time.
 
virtual void Render ()
 CALLED BY vtkRenderWindow ONLY.
 
virtual void DeviceRender ()
 Create an image.
 
virtual void DeviceRenderOpaqueGeometry (vtkFrameBufferObjectBase *fbo=nullptr)
 Render opaque polygonal geometry.
 
virtual void DeviceRenderTranslucentPolygonalGeometry (vtkFrameBufferObjectBase *fbo=nullptr)
 Render translucent polygonal geometry.
 
virtual void ClearLights ()
 Internal method temporarily removes lights before reloading them into graphics pipeline.
 
virtual void Clear ()
 Clear the image to the background color.
 
int VisibleActorCount ()
 Returns the number of visible actors.
 
int VisibleVolumeCount ()
 Returns the number of visible volumes.
 
void ComputeVisiblePropBounds (double bounds[6])
 Compute the bounding box of all the visible props Used in ResetCamera() and ResetCameraClippingRange()
 
double * ComputeVisiblePropBounds ()
 Wrapper-friendly version of ComputeVisiblePropBounds.
 
virtual void ResetCameraClippingRange ()
 Reset the camera clipping range based on the bounds of the visible actors.
 
virtual void ResetCamera ()
 Automatically set up the camera based on the visible actors.
 
virtual void ResetCamera (const double bounds[6])
 Automatically set up the camera based on a specified bounding box (xmin, xmax, ymin, ymax, zmin, zmax).
 
virtual void ResetCamera (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
 Alternative version of ResetCamera(bounds[6]);.
 
virtual void ResetCameraScreenSpace (double offsetRatio=0.9)
 Automatically set up the camera based on the visible actors.
 
virtual void ResetCameraScreenSpace (const double bounds[6], double offsetRatio=0.9)
 Automatically set up the camera based on a specified bounding box (xmin, xmax, ymin, ymax, zmin, zmax).
 
vtkVector3d DisplayToWorld (const vtkVector3d &display)
 Convert a vtkVector3d from display space to world space.
 
void ZoomToBoxUsingViewAngle (const vtkRecti &box, double offsetRatio=1.0)
 Automatically set up the camera focal point and zoom factor to observe the box in display coordinates.
 
virtual void ResetCameraScreenSpace (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, double offsetRatio=0.9)
 Alternative version of ResetCameraScreenSpace(bounds[6]);.
 
vtkTypeBool Transparent ()
 Returns a boolean indicating if this renderer is transparent.
 
void WorldToView () override
 Convert world point coordinates to view coordinates.
 
void WorldToView (double &wx, double &wy, double &wz) override
 Convert world point coordinates to view coordinates.
 
double GetZ (int x, int y)
 Given a pixel location, return the Z value.
 
vtkMTimeType GetMTime () override
 Return the MTime of the renderer also considering its ivars.
 
virtual void StereoMidpoint ()
 Do anything necessary between rendering the left and right viewpoints in a stereo render.
 
double GetTiledAspectRatio ()
 Compute the aspect ratio of this renderer for the current tile.
 
vtkTypeBool IsActiveCameraCreated ()
 This method returns 1 if the ActiveCamera has already been set or automatically created by the renderer.
 
virtual void SetUseDepthPeelingForVolumes (bool)
 This flag is on and the GPU supports it, depth-peel volumes along with the translucent geometry.
 
virtual bool GetUseDepthPeelingForVolumes ()
 
virtual void UseDepthPeelingForVolumesOn ()
 
virtual void UseDepthPeelingForVolumesOff ()
 
virtual void ReleaseGraphicsResources (vtkWindow *)
 
void SetPass (vtkRenderPass *p)
 
virtual vtkRenderPassGetPass ()
 
void DisplayToWorld ()
 Convert display (or screen) coordinates to world coordinates.
 
void AddActor (vtkProp *p)
 Add/Remove different types of props to the renderer.
 
void AddVolume (vtkProp *p)
 Add/Remove different types of props to the renderer.
 
void RemoveActor (vtkProp *p)
 Add/Remove different types of props to the renderer.
 
void RemoveVolume (vtkProp *p)
 Add/Remove different types of props to the renderer.
 
virtual vtkTypeBool GetTwoSidedLighting ()
 Turn on/off two-sided lighting of surfaces.
 
virtual void SetTwoSidedLighting (vtkTypeBool)
 Turn on/off two-sided lighting of surfaces.
 
virtual void TwoSidedLightingOn ()
 Turn on/off two-sided lighting of surfaces.
 
virtual void TwoSidedLightingOff ()
 Turn on/off two-sided lighting of surfaces.
 
virtual void SetLightFollowCamera (vtkTypeBool)
 Turn on/off the automatic repositioning of lights as the camera moves.
 
virtual vtkTypeBool GetLightFollowCamera ()
 Turn on/off the automatic repositioning of lights as the camera moves.
 
virtual void LightFollowCameraOn ()
 Turn on/off the automatic repositioning of lights as the camera moves.
 
virtual void LightFollowCameraOff ()
 Turn on/off the automatic repositioning of lights as the camera moves.
 
virtual vtkTypeBool GetAutomaticLightCreation ()
 Turn on/off a flag which disables the automatic light creation capability.
 
virtual void SetAutomaticLightCreation (vtkTypeBool)
 Turn on/off a flag which disables the automatic light creation capability.
 
virtual void AutomaticLightCreationOn ()
 Turn on/off a flag which disables the automatic light creation capability.
 
virtual void AutomaticLightCreationOff ()
 Turn on/off a flag which disables the automatic light creation capability.
 
virtual void SetErase (vtkTypeBool)
 When this flag is off, the renderer will not erase the background or the Zbuffer.
 
virtual vtkTypeBool GetErase ()
 When this flag is off, the renderer will not erase the background or the Zbuffer.
 
virtual void EraseOn ()
 When this flag is off, the renderer will not erase the background or the Zbuffer.
 
virtual void EraseOff ()
 When this flag is off, the renderer will not erase the background or the Zbuffer.
 
virtual void SetDraw (vtkTypeBool)
 When this flag is off, render commands are ignored.
 
virtual vtkTypeBool GetDraw ()
 When this flag is off, render commands are ignored.
 
virtual void DrawOn ()
 When this flag is off, render commands are ignored.
 
virtual void DrawOff ()
 When this flag is off, render commands are ignored.
 
virtual void SetAmbient (double, double, double)
 Set the intensity of ambient lighting.
 
virtual void SetAmbient (double[3])
 Set the intensity of ambient lighting.
 
virtual double * GetAmbient ()
 Set the intensity of ambient lighting.
 
virtual void GetAmbient (double data[3])
 Set the intensity of ambient lighting.
 
virtual void SetAllocatedRenderTime (double)
 Set/Get the amount of time this renderer is allowed to spend rendering its scene.
 
virtual double GetAllocatedRenderTime ()
 Set/Get the amount of time this renderer is allowed to spend rendering its scene.
 
virtual void ResetCameraClippingRange (const double bounds[6])
 Reset the camera clipping range based on a bounding box.
 
virtual void ResetCameraClippingRange (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
 Reset the camera clipping range based on a bounding box.
 
virtual void SetNearClippingPlaneTolerance (double)
 Specify tolerance for near clipping plane distance to the camera as a percentage of the far clipping plane distance.
 
virtual double GetNearClippingPlaneTolerance ()
 Specify tolerance for near clipping plane distance to the camera as a percentage of the far clipping plane distance.
 
virtual void SetClippingRangeExpansion (double)
 Specify enlargement of bounds when resetting the camera clipping range.
 
virtual double GetClippingRangeExpansion ()
 Specify enlargement of bounds when resetting the camera clipping range.
 
void SetRenderWindow (vtkRenderWindow *)
 Specify the rendering window in which to draw.
 
vtkRenderWindowGetRenderWindow ()
 Specify the rendering window in which to draw.
 
vtkWindowGetVTKWindow () override
 Specify the rendering window in which to draw.
 
virtual void SetBackingStore (vtkTypeBool)
 Turn on/off using backing store.
 
virtual vtkTypeBool GetBackingStore ()
 Turn on/off using backing store.
 
virtual void BackingStoreOn ()
 Turn on/off using backing store.
 
virtual void BackingStoreOff ()
 Turn on/off using backing store.
 
virtual void SetInteractive (vtkTypeBool)
 Turn on/off interactive status.
 
virtual vtkTypeBool GetInteractive ()
 Turn on/off interactive status.
 
virtual void InteractiveOn ()
 Turn on/off interactive status.
 
virtual void InteractiveOff ()
 Turn on/off interactive status.
 
virtual void SetLayer (int layer)
 Set/Get the layer that this renderer belongs to.
 
virtual int GetLayer ()
 Set/Get the layer that this renderer belongs to.
 
virtual vtkTypeBool GetPreserveColorBuffer ()
 By default, the renderer at layer 0 is opaque, and all non-zero layer renderers are transparent.
 
virtual void SetPreserveColorBuffer (vtkTypeBool)
 By default, the renderer at layer 0 is opaque, and all non-zero layer renderers are transparent.
 
virtual void PreserveColorBufferOn ()
 By default, the renderer at layer 0 is opaque, and all non-zero layer renderers are transparent.
 
virtual void PreserveColorBufferOff ()
 By default, the renderer at layer 0 is opaque, and all non-zero layer renderers are transparent.
 
virtual void SetPreserveDepthBuffer (vtkTypeBool)
 By default, the depth buffer is reset for each renderer.
 
virtual vtkTypeBool GetPreserveDepthBuffer ()
 By default, the depth buffer is reset for each renderer.
 
virtual void PreserveDepthBufferOn ()
 By default, the depth buffer is reset for each renderer.
 
virtual void PreserveDepthBufferOff ()
 By default, the depth buffer is reset for each renderer.
 
void ViewToWorld () override
 Convert view point coordinates to world coordinates.
 
void ViewToWorld (double &wx, double &wy, double &wz) override
 Convert view point coordinates to world coordinates.
 
void WorldToPose (double &wx, double &wy, double &wz) override
 Convert to from pose coordinates.
 
void PoseToWorld (double &wx, double &wy, double &wz) override
 Convert to from pose coordinates.
 
void ViewToPose (double &wx, double &wy, double &wz) override
 Convert to from pose coordinates.
 
void PoseToView (double &wx, double &wy, double &wz) override
 Convert to from pose coordinates.
 
virtual void SetSafeGetZ (bool)
 If this flag is On GetZ(int, int) will use a vtkHardwareSelector internally to determine the Z value.
 
virtual bool GetSafeGetZ ()
 If this flag is On GetZ(int, int) will use a vtkHardwareSelector internally to determine the Z value.
 
virtual void SafeGetZOn ()
 If this flag is On GetZ(int, int) will use a vtkHardwareSelector internally to determine the Z value.
 
virtual void SafeGetZOff ()
 If this flag is On GetZ(int, int) will use a vtkHardwareSelector internally to determine the Z value.
 
virtual double GetLastRenderTimeInSeconds ()
 Get the time required, in seconds, for the last Render call.
 
virtual int GetNumberOfPropsRendered ()
 Should be used internally only during a render Get the number of props that were rendered using a RenderOpaqueGeometry or RenderTranslucentPolygonalGeometry call.
 
vtkAssemblyPathPickProp (double selectionX, double selectionY) override
 Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x, y position in the viewport.
 
vtkAssemblyPathPickProp (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, y position in the viewport.
 
vtkAssemblyPathPickProp (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, y position in the viewport.
 
vtkAssemblyPathPickProp (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, y position in the viewport.
 
virtual void SetUseDepthPeeling (vtkTypeBool)
 Turn on/off rendering of translucent material with depth peeling technique.
 
virtual vtkTypeBool GetUseDepthPeeling ()
 Turn on/off rendering of translucent material with depth peeling technique.
 
virtual void UseDepthPeelingOn ()
 Turn on/off rendering of translucent material with depth peeling technique.
 
virtual void UseDepthPeelingOff ()
 Turn on/off rendering of translucent material with depth peeling technique.
 
virtual void SetOcclusionRatio (double)
 In case of use of depth peeling technique for rendering translucent material, define the threshold under which the algorithm stops to iterate over peel layers.
 
virtual double GetOcclusionRatio ()
 In case of use of depth peeling technique for rendering translucent material, define the threshold under which the algorithm stops to iterate over peel layers.
 
virtual void SetMaximumNumberOfPeels (int)
 In case of depth peeling, define the maximum number of peeling layers.
 
virtual int GetMaximumNumberOfPeels ()
 In case of depth peeling, define the maximum number of peeling layers.
 
virtual vtkTypeBool GetLastRenderingUsedDepthPeeling ()
 Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
 
virtual void SetUseSSAO (bool)
 Enable or disable Screen Space Ambient Occlusion.
 
virtual bool GetUseSSAO ()
 Enable or disable Screen Space Ambient Occlusion.
 
virtual void UseSSAOOn ()
 Enable or disable Screen Space Ambient Occlusion.
 
virtual void UseSSAOOff ()
 Enable or disable Screen Space Ambient Occlusion.
 
virtual void SetSSAORadius (double)
 When using SSAO, define the SSAO hemisphere radius.
 
virtual double GetSSAORadius ()
 When using SSAO, define the SSAO hemisphere radius.
 
virtual void SetSSAOBias (double)
 When using SSAO, define the bias when comparing samples.
 
virtual double GetSSAOBias ()
 When using SSAO, define the bias when comparing samples.
 
virtual void SetSSAOKernelSize (unsigned int)
 When using SSAO, define the number of samples.
 
virtual unsigned int GetSSAOKernelSize ()
 When using SSAO, define the number of samples.
 
virtual void SetSSAOBlur (bool)
 When using SSAO, define blurring of the ambient occlusion.
 
virtual bool GetSSAOBlur ()
 When using SSAO, define blurring of the ambient occlusion.
 
virtual void SSAOBlurOn ()
 When using SSAO, define blurring of the ambient occlusion.
 
virtual void SSAOBlurOff ()
 When using SSAO, define blurring of the ambient occlusion.
 
void SetDelegate (vtkRendererDelegate *d)
 Set/Get a custom Render call.
 
virtual vtkRendererDelegateGetDelegate ()
 Set/Get a custom Render call.
 
virtual vtkHardwareSelectorGetSelector ()
 Get the current hardware selector.
 
virtual void SetLeftBackgroundTexture (vtkTexture *)
 Set/Get the texture to be used for the monocular or stereo left eye background.
 
vtkTextureGetLeftBackgroundTexture ()
 Set/Get the texture to be used for the monocular or stereo left eye background.
 
virtual void SetBackgroundTexture (vtkTexture *)
 Set/Get the texture to be used for the monocular or stereo left eye background.
 
virtual vtkTextureGetBackgroundTexture ()
 Set/Get the texture to be used for the monocular or stereo left eye background.
 
virtual void SetRightBackgroundTexture (vtkTexture *)
 Set/Get the texture to be used for the right eye background.
 
virtual vtkTextureGetRightBackgroundTexture ()
 Set/Get the texture to be used for the right eye background.
 
virtual void SetTexturedBackground (bool)
 Set/Get whether this viewport should have a textured background.
 
virtual bool GetTexturedBackground ()
 Set/Get whether this viewport should have a textured background.
 
virtual void TexturedBackgroundOn ()
 Set/Get whether this viewport should have a textured background.
 
virtual void TexturedBackgroundOff ()
 Set/Get whether this viewport should have a textured background.
 
virtual void SetUseFXAA (bool)
 Turn on/off FXAA anti-aliasing, if supported.
 
virtual bool GetUseFXAA ()
 Turn on/off FXAA anti-aliasing, if supported.
 
virtual void UseFXAAOn ()
 Turn on/off FXAA anti-aliasing, if supported.
 
virtual void UseFXAAOff ()
 Turn on/off FXAA anti-aliasing, if supported.
 
virtual vtkFXAAOptionsGetFXAAOptions ()
 The configuration object for FXAA antialiasing.
 
virtual void SetFXAAOptions (vtkFXAAOptions *)
 The configuration object for FXAA antialiasing.
 
virtual void SetUseShadows (vtkTypeBool)
 Turn on/off rendering of shadows if supported Initial value is off.
 
virtual vtkTypeBool GetUseShadows ()
 Turn on/off rendering of shadows if supported Initial value is off.
 
virtual void UseShadowsOn ()
 Turn on/off rendering of shadows if supported Initial value is off.
 
virtual void UseShadowsOff ()
 Turn on/off rendering of shadows if supported Initial value is off.
 
virtual void SetUseHiddenLineRemoval (vtkTypeBool)
 If this flag is true and the rendering engine supports it, wireframe geometry will be drawn using hidden line removal.
 
virtual vtkTypeBool GetUseHiddenLineRemoval ()
 If this flag is true and the rendering engine supports it, wireframe geometry will be drawn using hidden line removal.
 
virtual void UseHiddenLineRemovalOn ()
 If this flag is true and the rendering engine supports it, wireframe geometry will be drawn using hidden line removal.
 
virtual void UseHiddenLineRemovalOff ()
 If this flag is true and the rendering engine supports it, wireframe geometry will be drawn using hidden line removal.
 
virtual vtkInformationGetInformation ()
 Set/Get the information object associated with this algorithm.
 
virtual void SetInformation (vtkInformation *)
 Set/Get the information object associated with this algorithm.
 
virtual void SetUseImageBasedLighting (bool)
 If this flag is true and the rendering engine supports it, image based lighting is enabled and surface rendering displays environment reflections.
 
virtual bool GetUseImageBasedLighting ()
 If this flag is true and the rendering engine supports it, image based lighting is enabled and surface rendering displays environment reflections.
 
virtual void UseImageBasedLightingOn ()
 If this flag is true and the rendering engine supports it, image based lighting is enabled and surface rendering displays environment reflections.
 
virtual void UseImageBasedLightingOff ()
 If this flag is true and the rendering engine supports it, image based lighting is enabled and surface rendering displays environment reflections.
 
virtual vtkTextureGetEnvironmentTexture ()
 Set/Get the environment texture used for image based lighting.
 
void SetEnvironmentTextureProperty (vtkTexture *texture)
 Set/Get the environment texture used for image based lighting.
 
virtual void SetEnvironmentTexture (vtkTexture *texture, bool isSRGB=false)
 Set/Get the environment texture used for image based lighting.
 
virtual double * GetEnvironmentUp ()
 Set/Get the environment up vector.
 
virtual void GetEnvironmentUp (double &, double &, double &)
 Set/Get the environment up vector.
 
virtual void GetEnvironmentUp (double[3])
 Set/Get the environment up vector.
 
virtual void SetEnvironmentUp (double, double, double)
 Set/Get the environment up vector.
 
virtual void SetEnvironmentUp (double[3])
 Set/Get the environment up vector.
 
virtual double * GetEnvironmentRight ()
 Set/Get the environment right vector.
 
virtual void GetEnvironmentRight (double &, double &, double &)
 Set/Get the environment right vector.
 
virtual void GetEnvironmentRight (double[3])
 Set/Get the environment right vector.
 
virtual void SetEnvironmentRight (double, double, double)
 Set/Get the environment right vector.
 
virtual void SetEnvironmentRight (double[3])
 Set/Get the environment right vector.
 
- Public Member Functions inherited from vtkViewport
virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class.
 
vtkViewportNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses.
 
void AddViewProp (vtkProp *)
 Add a prop to the list of props.
 
vtkPropCollectionGetViewProps ()
 Return any props in this viewport.
 
vtkTypeBool HasViewProp (vtkProp *)
 Query if a prop is in the list of props.
 
void RemoveViewProp (vtkProp *)
 Remove a prop from the list of props.
 
void RemoveAllViewProps ()
 Remove all props from the list of props.
 
virtual double * GetCenter ()
 Return the center of this viewport in display coordinates.
 
virtual vtkTypeBool IsInViewport (int x, int y)
 Is a given display point in this Viewport's viewport.
 
virtual vtkWindowGetVTKWindow ()=0
 Return the vtkWindow that owns this vtkViewport.
 
virtual void DisplayToView ()
 Convert display coordinates to view coordinates.
 
virtual void ViewToDisplay ()
 Convert view coordinates to display coordinates.
 
virtual void WorldToView ()
 Convert world point coordinates to view coordinates.
 
virtual void ViewToWorld ()
 Convert view point coordinates to world coordinates.
 
void DisplayToWorld ()
 Convert display (or screen) coordinates to world coordinates.
 
void WorldToDisplay ()
 Convert world point coordinates to display (or screen) coordinates.
 
void WorldToDisplay (double &x, double &y, double &z)
 Convert world point coordinates to display (or screen) coordinates.
 
virtual vtkAssemblyPathPickProp (double selectionX, double selectionY)=0
 Return the Prop that has the highest z value at the given x, y position in the viewport.
 
virtual vtkAssemblyPathPickProp (double selectionX1, double selectionY1, double selectionX2, double selectionY2)=0
 Return the Prop that has the highest z value at the given x1, y1 and x2,y2 positions in the viewport.
 
vtkAssemblyPathPickPropFrom (double selectionX, double selectionY, vtkPropCollection *)
 Same as PickProp with two arguments, but selects from the given collection of Props instead of the Renderers props.
 
vtkAssemblyPathPickPropFrom (double selectionX1, double selectionY1, double selectionX2, double selectionY2, vtkPropCollection *)
 Same as PickProp with four arguments, but selects from the given collection of Props instead of the Renderers props.
 
virtual vtkAssemblyPathPickProp (double selectionX, double selectionY, int fieldAssociation, vtkSmartPointer< vtkSelection > selection)=0
 Return the Prop that has the highest z value at the given x, y position in the viewport.
 
virtual vtkAssemblyPathPickProp (double selectionX1, double selectionY1, double selectionX2, double selectionY2, int fieldAssociation, vtkSmartPointer< vtkSelection > selection)=0
 Return the Prop that has the highest z value at the given x1, y1 and x2,y2 positions in the viewport.
 
vtkAssemblyPathPickPropFrom (double selectionX, double selectionY, vtkPropCollection *, int fieldAssociation, vtkSmartPointer< vtkSelection > selection)
 Same as PickProp with two arguments, but selects from the given collection of Props instead of the Renderers props.
 
vtkAssemblyPathPickPropFrom (double selectionX1, double selectionY1, double selectionX2, double selectionY2, vtkPropCollection *, int fieldAssociation, vtkSmartPointer< vtkSelection > selection)
 Same as PickProp with four arguments, but selects from the given collection of Props instead of the Renderers props.
 
virtual double GetPickedZ ()
 Return the Z value for the last picked Prop.
 
void AddActor2D (vtkProp *p)
 Add/Remove different types of props to the renderer.
 
void RemoveActor2D (vtkProp *p)
 Add/Remove different types of props to the renderer.
 
vtkActor2DCollectionGetActors2D ()
 Add/Remove different types of props to the renderer.
 
virtual void SetBackground (double, double, double)
 Set/Get the background color of the rendering screen using an rgb color specification.
 
virtual void SetBackground (double[3])
 Set/Get the background color of the rendering screen using an rgb color specification.
 
virtual double * GetBackground ()
 Set/Get the background color of the rendering screen using an rgb color specification.
 
virtual void GetBackground (double &, double &, double &)
 Set/Get the background color of the rendering screen using an rgb color specification.
 
virtual void GetBackground (double[3])
 Set/Get the background color of the rendering screen using an rgb color specification.
 
virtual void SetBackground2 (double, double, double)
 Set/Get the second background color of the rendering screen for gradient backgrounds using an rgb color specification.
 
virtual void SetBackground2 (double[3])
 Set/Get the second background color of the rendering screen for gradient backgrounds using an rgb color specification.
 
virtual double * GetBackground2 ()
 Set/Get the second background color of the rendering screen for gradient backgrounds using an rgb color specification.
 
virtual void GetBackground2 (double &, double &, double &)
 Set/Get the second background color of the rendering screen for gradient backgrounds using an rgb color specification.
 
virtual void GetBackground2 (double[3])
 Set/Get the second background color of the rendering screen for gradient backgrounds using an rgb color specification.
 
virtual void SetBackgroundAlpha (double)
 Set/Get the alpha value used to fill the background with.
 
virtual double GetBackgroundAlpha ()
 Set/Get the alpha value used to fill the background with.
 
virtual void SetGradientBackground (bool)
 Set/Get whether this viewport should have a gradient background using the Background (bottom) and Background2 (top) colors.
 
virtual bool GetGradientBackground ()
 Set/Get whether this viewport should have a gradient background using the Background (bottom) and Background2 (top) colors.
 
virtual void GradientBackgroundOn ()
 Set/Get whether this viewport should have a gradient background using the Background (bottom) and Background2 (top) colors.
 
virtual void GradientBackgroundOff ()
 Set/Get whether this viewport should have a gradient background using the Background (bottom) and Background2 (top) colors.
 
virtual void SetDitherGradient (bool)
 Set/Get whether this viewport should use dithering to reduce color banding when using gradient backgrounds.
 
virtual bool GetDitherGradient ()
 Set/Get whether this viewport should use dithering to reduce color banding when using gradient backgrounds.
 
virtual void DitherGradientOn ()
 Set/Get whether this viewport should use dithering to reduce color banding when using gradient backgrounds.
 
virtual void DitherGradientOff ()
 Set/Get whether this viewport should use dithering to reduce color banding when using gradient backgrounds.
 
 vtkSetEnumMacro (GradientMode, GradientModes)
 Specify the direction of the gradient background.
 
 vtkGetEnumMacro (GradientMode, GradientModes)
 Specify the direction of the gradient background.
 
virtual void SetAspect (double, double)
 Set the aspect ratio of the rendered image.
 
void SetAspect (double[2])
 Set the aspect ratio of the rendered image.
 
virtual double * GetAspect ()
 Set the aspect ratio of the rendered image.
 
virtual void GetAspect (double data[2])
 Set the aspect ratio of the rendered image.
 
virtual void ComputeAspect ()
 Set the aspect ratio of the rendered image.
 
virtual void SetPixelAspect (double, double)
 Set the aspect ratio of a pixel in the rendered image.
 
void SetPixelAspect (double[2])
 Set the aspect ratio of a pixel in the rendered image.
 
virtual double * GetPixelAspect ()
 Set the aspect ratio of a pixel in the rendered image.
 
virtual void GetPixelAspect (double data[2])
 Set the aspect ratio of a pixel in the rendered image.
 
virtual void SetViewport (double, double, double, double)
 Specify the viewport for the Viewport to draw in the rendering window.
 
virtual void SetViewport (double[4])
 Specify the viewport for the Viewport to draw in the rendering window.
 
virtual double * GetViewport ()
 Specify the viewport for the Viewport to draw in the rendering window.
 
virtual void GetViewport (double data[4])
 Specify the viewport for the Viewport to draw in the rendering window.
 
virtual void SetDisplayPoint (double, double, double)
 Set/get a point location in display (or screen) coordinates.
 
virtual void SetDisplayPoint (double[3])
 Set/get a point location in display (or screen) coordinates.
 
virtual double * GetDisplayPoint ()
 Set/get a point location in display (or screen) coordinates.
 
virtual void GetDisplayPoint (double data[3])
 Set/get a point location in display (or screen) coordinates.
 
virtual void SetViewPoint (double, double, double)
 Specify a point location in view coordinates.
 
virtual void SetViewPoint (double[3])
 Specify a point location in view coordinates.
 
virtual double * GetViewPoint ()
 Specify a point location in view coordinates.
 
virtual void GetViewPoint (double data[3])
 Specify a point location in view coordinates.
 
virtual void SetWorldPoint (double, double, double, double)
 Specify a point location in world coordinates.
 
virtual void SetWorldPoint (double[4])
 Specify a point location in world coordinates.
 
virtual double * GetWorldPoint ()
 Specify a point location in world coordinates.
 
virtual void GetWorldPoint (double data[4])
 Specify a point location in world coordinates.
 
virtual void LocalDisplayToDisplay (double &x, double &y)
 These methods map from one coordinate system to another.
 
virtual void DisplayToNormalizedDisplay (double &u, double &v)
 These methods map from one coordinate system to another.
 
virtual void NormalizedDisplayToViewport (double &x, double &y)
 These methods map from one coordinate system to another.
 
virtual void ViewportToNormalizedViewport (double &u, double &v)
 These methods map from one coordinate system to another.
 
virtual void NormalizedViewportToView (double &x, double &y, double &z)
 These methods map from one coordinate system to another.
 
virtual void DisplayToLocalDisplay (double &x, double &y)
 These methods map from one coordinate system to another.
 
virtual void NormalizedDisplayToDisplay (double &u, double &v)
 These methods map from one coordinate system to another.
 
virtual void ViewportToNormalizedDisplay (double &x, double &y)
 These methods map from one coordinate system to another.
 
virtual void NormalizedViewportToViewport (double &u, double &v)
 These methods map from one coordinate system to another.
 
virtual void ViewToNormalizedViewport (double &x, double &y, double &z)
 These methods map from one coordinate system to another.
 
virtual void ViewToDisplay (double &x, double &y, double &z)
 These methods map from one coordinate system to another.
 
virtual int * GetSize ()
 Get the size and origin of the viewport in display coordinates.
 
virtual int * GetOrigin ()
 Get the size and origin of the viewport in display coordinates.
 
void GetTiledSize (int *width, int *height)
 Get the size and origin of the viewport in display coordinates.
 
virtual void GetTiledSizeAndOrigin (int *width, int *height, int *lowerLeftX, int *lowerLeftY)
 Get the size and origin of the viewport in display coordinates.
 
double GetPickX () const
 Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY).
 
double GetPickY () const
 Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY).
 
double GetPickWidth () const
 Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY).
 
double GetPickHeight () const
 Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY).
 
double GetPickX1 () const
 Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY).
 
double GetPickY1 () const
 Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY).
 
double GetPickX2 () const
 Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY).
 
double GetPickY2 () const
 Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY).
 
virtual vtkPropCollectionGetPickResultProps ()
 Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY).
 
virtual void SetEnvironmentalBG (double, double, double)
 Set/Get the constant environmental color using an rgb color specification.
 
virtual void SetEnvironmentalBG (double[3])
 Set/Get the constant environmental color using an rgb color specification.
 
virtual double * GetEnvironmentalBG ()
 Set/Get the constant environmental color using an rgb color specification.
 
virtual void GetEnvironmentalBG (double &, double &, double &)
 Set/Get the constant environmental color using an rgb color specification.
 
virtual void GetEnvironmentalBG (double[3])
 Set/Get the constant environmental color using an rgb color specification.
 
virtual void SetEnvironmentalBG2 (double, double, double)
 Set/Get the second environmental gradient color using an rgb color specification.
 
virtual void SetEnvironmentalBG2 (double[3])
 Set/Get the second environmental gradient color using an rgb color specification.
 
virtual double * GetEnvironmentalBG2 ()
 Set/Get the second environmental gradient color using an rgb color specification.
 
virtual void GetEnvironmentalBG2 (double &, double &, double &)
 Set/Get the second environmental gradient color using an rgb color specification.
 
virtual void GetEnvironmentalBG2 (double[3])
 Set/Get the second environmental gradient color using an rgb color specification.
 
virtual void SetGradientEnvironmentalBG (bool)
 Set/Get whether this viewport should enable the gradient environment using the EnvironmentalBG (bottom) and EnvironmentalBG2 (top) colors.
 
virtual bool GetGradientEnvironmentalBG ()
 Set/Get whether this viewport should enable the gradient environment using the EnvironmentalBG (bottom) and EnvironmentalBG2 (top) colors.
 
virtual void GradientEnvironmentalBGOn ()
 Set/Get whether this viewport should enable the gradient environment using the EnvironmentalBG (bottom) and EnvironmentalBG2 (top) colors.
 
virtual void GradientEnvironmentalBGOff ()
 Set/Get whether this viewport should enable the gradient environment using the EnvironmentalBG (bottom) and EnvironmentalBG2 (top) colors.
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 Turn debugging output on.
 
virtual void DebugOff ()
 Turn debugging output off.
 
bool GetDebug ()
 Get the value of the debug flag.
 
void SetDebug (bool debugFlag)
 Set the value of the debug flag.
 
virtual void Modified ()
 Update the modification time for this object.
 
virtual vtkMTimeType GetMTime ()
 Return this object's modified time.
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses.
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
vtkTypeBool HasObserver (unsigned long event)
 
vtkTypeBool HasObserver (const char *event)
 
vtkTypeBool InvokeEvent (unsigned long event)
 
vtkTypeBool InvokeEvent (const char *event)
 
std::string GetObjectDescription () const override
 The object description printed in messages and PrintSelf output.
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
 
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
 
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
 
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
 
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
 
vtkTypeBool HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
 
vtkTypeBool HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object.
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method.
 
vtkTypeBool InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not.
 
vtkTypeBool InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not.
 
virtual void SetObjectName (const std::string &objectName)
 Set/get the name of this object for reporting purposes.
 
virtual std::string GetObjectName () const
 Set/get the name of this object for reporting purposes.
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string.
 
virtual std::string GetObjectDescription () const
 The object description printed in messages and PrintSelf output.
 
virtual vtkTypeBool IsA (const char *name)
 Return 1 if this class is the same type of (or a subclass of) the named class.
 
virtual vtkIdType GetNumberOfGenerationsFromBase (const char *name)
 Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
 
virtual void Delete ()
 Delete a VTK object.
 
virtual void FastDelete ()
 Delete a reference to this object.
 
void InitializeObjectBase ()
 
void Print (ostream &os)
 Print an object to an ostream.
 
void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object).
 
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object).
 
int GetReferenceCount ()
 Return the current reference count of this object.
 
void SetReferenceCount (int)
 Sets the reference count.
 
bool GetIsInMemkind () const
 A local state flag that remembers whether this object lives in the normal or extended memory space.
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses.
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses.
 
virtual bool UsesGarbageCollector () const
 Indicate whether the class uses vtkGarbageCollector or not.
 

Static Public Member Functions

static vtkTypeBool IsTypeOf (const char *type)
 
static vtkRendererSafeDownCast (vtkObjectBase *o)
 
static vtkRendererNew ()
 Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on, a viewport of (0,0,1,1), and backface culling turned off.
 
- Static Public Member Functions inherited from vtkViewport
static vtkTypeBool IsTypeOf (const char *type)
 
static vtkViewportSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes.
 
static void SetGlobalWarningDisplay (vtkTypeBool val)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
 
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
 
static vtkTypeBool GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class.
 
static vtkIdType GetNumberOfGenerationsFromBaseType (const char *name)
 Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
 
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
 
static void SetMemkindDirectory (const char *directoryname)
 The name of a directory, ideally mounted -o dax, to memory map an extended memory space within.
 
static bool GetUsingMemkind ()
 A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space.
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkRenderer ()
 
 ~vtkRenderer () override
 
virtual void ExpandBounds (double bounds[6], vtkMatrix4x4 *matrix)
 
void AllocateTime ()
 
const std::array< double, 16 > & GetCompositeProjectionTransformationMatrix ()
 Gets the ActiveCamera CompositeProjectionTransformationMatrix, only computing it if necessary.
 
const std::array< double, 16 > & GetProjectionTransformationMatrix ()
 Gets the ActiveCamera ProjectionTransformationMatrix, only computing it if necessary.
 
const std::array< double, 16 > & GetViewTransformMatrix ()
 Gets the ActiveCamera ViewTransformMatrix, only computing it if necessary.
 
virtual int UpdateGeometry (vtkFrameBufferObjectBase *fbo=nullptr)
 Ask all props to update and draw any opaque and translucent geometry.
 
virtual int UpdateTranslucentPolygonalGeometry ()
 Ask all props to update and draw any translucent polygonal geometry.
 
virtual int UpdateOpaquePolygonalGeometry ()
 Ask all props to update and draw any opaque polygonal geometry.
 
virtual int UpdateCamera ()
 Ask the active camera to do whatever it needs to do prior to rendering.
 
virtual vtkTypeBool UpdateLightGeometry ()
 Update the geometry of the lights in the scene that are not in world space (for instance, Headlights or CameraLights that are attached to the camera).
 
virtual int UpdateLights ()
 Ask all lights to load themselves into rendering pipeline.
 
vtkCameraGetActiveCameraAndResetIfCreated ()
 Get the current camera and reset it only if it gets created automatically (see GetActiveCamera).
 
void SetSelector (vtkHardwareSelector *selector)
 Called by vtkHardwareSelector when it begins rendering for selection.
 
- Protected Member Functions inherited from vtkViewport
virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkViewport ()
 
 ~vtkViewport () override
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
 ~vtkObject () override
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
 These methods allow a command to exclusively grab all events.
 
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events.
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void RegisterInternal (vtkObjectBase *, vtkTypeBool check)
 
virtual void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void ObjectFinalize ()
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkCameraActiveCamera
 
vtkLightCreatedLight
 
vtkLightCollectionLights
 
vtkCullerCollectionCullers
 
vtkActorCollectionActors
 
vtkVolumeCollectionVolumes
 
double Ambient [3]
 
vtkRenderWindowRenderWindow
 
double AllocatedRenderTime
 
double TimeFactor
 
vtkTypeBool TwoSidedLighting
 
vtkTypeBool AutomaticLightCreation
 
vtkTypeBool BackingStore
 
unsigned char * BackingImage
 
int BackingStoreSize [2]
 
vtkTimeStamp RenderTime
 
double LastRenderTimeInSeconds
 
vtkTypeBool LightFollowCamera
 
int NumberOfPropsRendered
 
vtkProp ** PropArray
 
int PropArrayCount
 
vtkTypeBool Interactive
 
int Layer
 
vtkTypeBool PreserveColorBuffer
 
vtkTypeBool PreserveDepthBuffer
 
double ComputedVisiblePropBounds [6]
 
double NearClippingPlaneTolerance
 Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane distance.
 
double ClippingRangeExpansion
 Specify enlargement of bounds when resetting the camera clipping range.
 
vtkTypeBool Erase
 When this flag is off, the renderer will not erase the background or the Zbuffer.
 
vtkTypeBool Draw
 When this flag is off, render commands are ignored.
 
vtkPropCollectionGL2PSSpecialPropCollection
 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.
 
vtkFXAAOptionsFXAAOptions
 Holds the FXAA configuration.
 
vtkTypeBool UseShadows
 If this flag is on and the rendering engine supports it render shadows Initial value is off.
 
vtkTypeBool UseHiddenLineRemoval
 When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using hidden line removal.
 
vtkTypeBool UseDepthPeeling
 If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials.
 
bool UseDepthPeelingForVolumes
 This flag is on and the GPU supports it, depth-peel volumes along with the translucent geometry.
 
double OcclusionRatio
 In case of use of depth peeling technique for rendering translucent material, define the threshold under which the algorithm stops to iterate over peel layers.
 
int MaximumNumberOfPeels
 In case of depth peeling, define the maximum number of peeling layers.
 
bool UseSSAO = false
 
double SSAORadius = 0.5
 
double SSAOBias = 0.01
 
unsigned int SSAOKernelSize = 32
 
bool SSAOBlur = false
 
vtkTypeBool LastRenderingUsedDepthPeeling
 Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.
 
vtkHardwareSelectorSelector
 
vtkRendererDelegateDelegate
 
bool TexturedBackground
 
vtkTextureBackgroundTexture
 
vtkTextureRightBackgroundTexture
 
vtkRenderPassPass
 
vtkInformationInformation
 
bool UseImageBasedLighting
 
vtkTextureEnvironmentTexture
 
double EnvironmentUp [3]
 
double EnvironmentRight [3]
 
- Protected Attributes inherited from vtkViewport
vtkAssemblyPathPickedProp
 
vtkPropCollectionPickFromProps
 
vtkPropCollectionPickResultProps
 
double PickX1
 
double PickY1
 
double PickX2
 
double PickY2
 
double PickedZ
 
vtkPropCollectionProps
 
vtkActor2DCollectionActors2D
 
vtkWindowVTKWindow
 
double Background [3]
 
double Background2 [3]
 
double BackgroundAlpha
 
double Viewport [4]
 
double Aspect [2]
 
double PixelAspect [2]
 
double Center [2]
 
bool GradientBackground
 
bool DitherGradient
 
GradientModes GradientMode = GradientModes::VTK_GRADIENT_VERTICAL
 
double EnvironmentalBG [3]
 
double EnvironmentalBG2 [3]
 
bool GradientEnvironmentalBG
 
int Size [2]
 
int Origin [2]
 
double DisplayPoint [3]
 
double ViewPoint [3]
 
double WorldPoint [4]
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
std::string ObjectName
 
- Protected Attributes inherited from vtkObjectBase
std::atomic< int32_t > ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Friends

class vtkHardwareSelector
 
class vtkRendererDelegate
 
class vtkRenderPass
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkObjectBase
static vtkMallocingFunction GetCurrentMallocFunction ()
 
static vtkReallocingFunction GetCurrentReallocFunction ()
 
static vtkFreeingFunction GetCurrentFreeFunction ()
 
static vtkFreeingFunction GetAlternateFreeFunction ()
 

Detailed Description

abstract specification for renderers

vtkRenderer provides an abstract specification for renderers. A renderer is an object that controls the rendering process for objects. Rendering is the process of converting geometry, a specification for lights, and a camera view into an image. vtkRenderer also performs coordinate transformation between world coordinates, view coordinates (the computer graphics rendering coordinate system), and display coordinates (the actual screen coordinates on the display device). Certain advanced rendering features such as two-sided lighting can also be controlled.

See also
vtkRenderWindow vtkActor vtkCamera vtkLight vtkVolume
Events:
vtkCommand::ActiveCameraEvent vtkCommand::ComputeVisiblePropBoundsEvent vtkCommand::CreateCameraEvent vtkCommand::EndEvent vtkCommand::ResetCameraClippingRangeEvent vtkCommand::ResetCameraEvent vtkCommand::StartEvent
Examples:
vtkRenderer (Examples)
Online Examples:

Tests:
vtkRenderer (Tests)

Definition at line 171 of file vtkRenderer.h.

Member Typedef Documentation

◆ Superclass

Definition at line 174 of file vtkRenderer.h.

Constructor & Destructor Documentation

◆ vtkRenderer()

vtkRenderer::vtkRenderer ( )
protected

◆ ~vtkRenderer()

vtkRenderer::~vtkRenderer ( )
overrideprotected

Member Function Documentation

◆ IsTypeOf()

static vtkTypeBool vtkRenderer::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual vtkTypeBool vtkRenderer::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class.

Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkViewport.

Reimplemented in vtkExternalOpenGLRenderer, vtkOpenGLRenderer, vtkOpenVRRenderer, vtkOpenXRRenderer, vtkVRRenderer, vtkWebGPURenderer, and vtkZSpaceRenderer.

◆ SafeDownCast()

static vtkRenderer * vtkRenderer::SafeDownCast ( vtkObjectBase o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkRenderer::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkRenderer * vtkRenderer::NewInstance ( ) const

◆ PrintSelf()

void vtkRenderer::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

Reimplemented in vtkVRRenderer, vtkWebGPURenderer, and vtkZSpaceRenderer.

◆ New()

static vtkRenderer * vtkRenderer::New ( )
static

Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on, a viewport of (0,0,1,1), and backface culling turned off.

◆ AddActor()

void vtkRenderer::AddActor ( vtkProp p)

Add/Remove different types of props to the renderer.

These methods are all synonyms to AddViewProp and RemoveViewProp. They are here for convenience and backwards compatibility.

◆ AddVolume()

void vtkRenderer::AddVolume ( vtkProp p)

Add/Remove different types of props to the renderer.

These methods are all synonyms to AddViewProp and RemoveViewProp. They are here for convenience and backwards compatibility.

◆ RemoveActor()

void vtkRenderer::RemoveActor ( vtkProp p)

Add/Remove different types of props to the renderer.

These methods are all synonyms to AddViewProp and RemoveViewProp. They are here for convenience and backwards compatibility.

◆ RemoveVolume()

void vtkRenderer::RemoveVolume ( vtkProp p)

Add/Remove different types of props to the renderer.

These methods are all synonyms to AddViewProp and RemoveViewProp. They are here for convenience and backwards compatibility.

◆ AddLight()

void vtkRenderer::AddLight ( vtkLight )

Add a light to the list of lights.

◆ RemoveLight()

void vtkRenderer::RemoveLight ( vtkLight )

Remove a light from the list of lights.

◆ RemoveAllLights()

void vtkRenderer::RemoveAllLights ( )

Remove all lights from the list of lights.

◆ GetLights()

vtkLightCollection * vtkRenderer::GetLights ( )
inline

Return the collection of lights.

Definition at line 1352 of file vtkRenderer.h.

◆ SetLightCollection()

void vtkRenderer::SetLightCollection ( vtkLightCollection lights)

Set the collection of lights.

We cannot name it SetLights because of TestSetGet

Precondition
lights_exist: lights!=0
Postcondition
lights_set: lights==this->GetLights()

◆ CreateLight()

void vtkRenderer::CreateLight ( )

Create and add a light to renderer.

◆ MakeLight()

virtual vtkLight * vtkRenderer::MakeLight ( )
virtual

Create a new Light sutible for use with this type of Renderer.

For example, a vtkMesaRenderer should create a vtkMesaLight in this function. The default is to just call vtkLight::New.

◆ GetTwoSidedLighting()

virtual vtkTypeBool vtkRenderer::GetTwoSidedLighting ( )
virtual

Turn on/off two-sided lighting of surfaces.

If two-sided lighting is off, then only the side of the surface facing the light(s) will be lit, and the other side dark. If two-sided lighting on, both sides of the surface will be lit.

◆ SetTwoSidedLighting()

virtual void vtkRenderer::SetTwoSidedLighting ( vtkTypeBool  )
virtual

Turn on/off two-sided lighting of surfaces.

If two-sided lighting is off, then only the side of the surface facing the light(s) will be lit, and the other side dark. If two-sided lighting on, both sides of the surface will be lit.

◆ TwoSidedLightingOn()

virtual void vtkRenderer::TwoSidedLightingOn ( )
virtual

Turn on/off two-sided lighting of surfaces.

If two-sided lighting is off, then only the side of the surface facing the light(s) will be lit, and the other side dark. If two-sided lighting on, both sides of the surface will be lit.

◆ TwoSidedLightingOff()

virtual void vtkRenderer::TwoSidedLightingOff ( )
virtual

Turn on/off two-sided lighting of surfaces.

If two-sided lighting is off, then only the side of the surface facing the light(s) will be lit, and the other side dark. If two-sided lighting on, both sides of the surface will be lit.

◆ SetLightFollowCamera()

virtual void vtkRenderer::SetLightFollowCamera ( vtkTypeBool  )
virtual

Turn on/off the automatic repositioning of lights as the camera moves.

If LightFollowCamera is on, lights that are designated as Headlights or CameraLights will be adjusted to move with this renderer's camera. If LightFollowCamera is off, the lights will not be adjusted.

(Note: In previous versions of vtk, this light-tracking functionality was part of the interactors, not the renderer. For backwards compatibility, the older, more limited interactor behavior is enabled by default. To disable this mode, turn the interactor's LightFollowCamera flag OFF, and leave the renderer's LightFollowCamera flag ON.)

◆ GetLightFollowCamera()

virtual vtkTypeBool vtkRenderer::GetLightFollowCamera ( )
virtual

Turn on/off the automatic repositioning of lights as the camera moves.

If LightFollowCamera is on, lights that are designated as Headlights or CameraLights will be adjusted to move with this renderer's camera. If LightFollowCamera is off, the lights will not be adjusted.

(Note: In previous versions of vtk, this light-tracking functionality was part of the interactors, not the renderer. For backwards compatibility, the older, more limited interactor behavior is enabled by default. To disable this mode, turn the interactor's LightFollowCamera flag OFF, and leave the renderer's LightFollowCamera flag ON.)

◆ LightFollowCameraOn()

virtual void vtkRenderer::LightFollowCameraOn ( )
virtual

Turn on/off the automatic repositioning of lights as the camera moves.

If LightFollowCamera is on, lights that are designated as Headlights or CameraLights will be adjusted to move with this renderer's camera. If LightFollowCamera is off, the lights will not be adjusted.

(Note: In previous versions of vtk, this light-tracking functionality was part of the interactors, not the renderer. For backwards compatibility, the older, more limited interactor behavior is enabled by default. To disable this mode, turn the interactor's LightFollowCamera flag OFF, and leave the renderer's LightFollowCamera flag ON.)

◆ LightFollowCameraOff()

virtual void vtkRenderer::LightFollowCameraOff ( )
virtual

Turn on/off the automatic repositioning of lights as the camera moves.

If LightFollowCamera is on, lights that are designated as Headlights or CameraLights will be adjusted to move with this renderer's camera. If LightFollowCamera is off, the lights will not be adjusted.

(Note: In previous versions of vtk, this light-tracking functionality was part of the interactors, not the renderer. For backwards compatibility, the older, more limited interactor behavior is enabled by default. To disable this mode, turn the interactor's LightFollowCamera flag OFF, and leave the renderer's LightFollowCamera flag ON.)

◆ GetAutomaticLightCreation()

virtual vtkTypeBool vtkRenderer::GetAutomaticLightCreation ( )
virtual

Turn on/off a flag which disables the automatic light creation capability.

Normally in VTK if no lights are associated with the renderer, then a light is automatically created. However, in special circumstances this feature is undesirable, so the following boolean is provided to disable automatic light creation. (Turn AutomaticLightCreation off if you do not want lights to be created.)

◆ SetAutomaticLightCreation()

virtual void vtkRenderer::SetAutomaticLightCreation ( vtkTypeBool  )
virtual

Turn on/off a flag which disables the automatic light creation capability.

Normally in VTK if no lights are associated with the renderer, then a light is automatically created. However, in special circumstances this feature is undesirable, so the following boolean is provided to disable automatic light creation. (Turn AutomaticLightCreation off if you do not want lights to be created.)

◆ AutomaticLightCreationOn()

virtual void vtkRenderer::AutomaticLightCreationOn ( )
virtual

Turn on/off a flag which disables the automatic light creation capability.

Normally in VTK if no lights are associated with the renderer, then a light is automatically created. However, in special circumstances this feature is undesirable, so the following boolean is provided to disable automatic light creation. (Turn AutomaticLightCreation off if you do not want lights to be created.)

◆ AutomaticLightCreationOff()

virtual void vtkRenderer::AutomaticLightCreationOff ( )
virtual

Turn on/off a flag which disables the automatic light creation capability.

Normally in VTK if no lights are associated with the renderer, then a light is automatically created. However, in special circumstances this feature is undesirable, so the following boolean is provided to disable automatic light creation. (Turn AutomaticLightCreation off if you do not want lights to be created.)

◆ UpdateLightsGeometryToFollowCamera()

virtual vtkTypeBool vtkRenderer::UpdateLightsGeometryToFollowCamera ( )
virtual

Ask the lights in the scene that are not in world space (for instance, Headlights or CameraLights that are attached to the camera) to update their geometry to match the active camera.

◆ GetVolumes()

vtkVolumeCollection * vtkRenderer::GetVolumes ( )

Return the collection of volumes.

◆ GetActors()

vtkActorCollection * vtkRenderer::GetActors ( )

Return any actors in this renderer.

◆ SetActiveCamera()

void vtkRenderer::SetActiveCamera ( vtkCamera )

Specify the camera to use for this renderer.

◆ GetActiveCamera()

vtkCamera * vtkRenderer::GetActiveCamera ( )

Get the current camera.

If there is not camera assigned to the renderer already, a new one is created automatically. This does not reset the camera.

◆ MakeCamera()

virtual vtkCamera * vtkRenderer::MakeCamera ( )
virtual

Create a new Camera sutible for use with this type of Renderer.

For example, a vtkMesaRenderer should create a vtkMesaCamera in this function. The default is to just call vtkCamera::New.

Reimplemented in vtkExternalOpenGLRenderer, vtkOpenVRRenderer, vtkOpenXRRenderer, vtkZSpaceRenderer, and vtkVRRenderer.

◆ SetErase()

virtual void vtkRenderer::SetErase ( vtkTypeBool  )
virtual

When this flag is off, the renderer will not erase the background or the Zbuffer.

It is used to have overlapping renderers. Both the RenderWindow Erase and Render Erase must be on for the camera to clear the renderer. By default, Erase is on.

◆ GetErase()

virtual vtkTypeBool vtkRenderer::GetErase ( )
virtual

When this flag is off, the renderer will not erase the background or the Zbuffer.

It is used to have overlapping renderers. Both the RenderWindow Erase and Render Erase must be on for the camera to clear the renderer. By default, Erase is on.

◆ EraseOn()

virtual void vtkRenderer::EraseOn ( )
virtual

When this flag is off, the renderer will not erase the background or the Zbuffer.

It is used to have overlapping renderers. Both the RenderWindow Erase and Render Erase must be on for the camera to clear the renderer. By default, Erase is on.

◆ EraseOff()

virtual void vtkRenderer::EraseOff ( )
virtual

When this flag is off, the renderer will not erase the background or the Zbuffer.

It is used to have overlapping renderers. Both the RenderWindow Erase and Render Erase must be on for the camera to clear the renderer. By default, Erase is on.

◆ SetDraw()

virtual void vtkRenderer::SetDraw ( vtkTypeBool  )
virtual

When this flag is off, render commands are ignored.

It is used to either multiplex a vtkRenderWindow or render only part of a vtkRenderWindow. By default, Draw is on.

◆ GetDraw()

virtual vtkTypeBool vtkRenderer::GetDraw ( )
virtual

When this flag is off, render commands are ignored.

It is used to either multiplex a vtkRenderWindow or render only part of a vtkRenderWindow. By default, Draw is on.

◆ DrawOn()

virtual void vtkRenderer::DrawOn ( )
virtual

When this flag is off, render commands are ignored.

It is used to either multiplex a vtkRenderWindow or render only part of a vtkRenderWindow. By default, Draw is on.

◆ DrawOff()

virtual void vtkRenderer::DrawOff ( )
virtual

When this flag is off, render commands are ignored.

It is used to either multiplex a vtkRenderWindow or render only part of a vtkRenderWindow. By default, Draw is on.

◆ CaptureGL2PSSpecialProp()

int vtkRenderer::CaptureGL2PSSpecialProp ( vtkProp )

This function is called to capture an instance of vtkProp that requires special handling during vtkRenderWindow::CaptureGL2PSSpecialProps().

◆ SetGL2PSSpecialPropCollection()

void vtkRenderer::SetGL2PSSpecialPropCollection ( vtkPropCollection )

Set the prop collection object used during vtkRenderWindow::CaptureGL2PSSpecialProps().

Do not call manually, this is handled automatically by the render window.

◆ AddCuller()

void vtkRenderer::AddCuller ( vtkCuller )

Add an culler to the list of cullers.

◆ RemoveCuller()

void vtkRenderer::RemoveCuller ( vtkCuller )

Remove an actor from the list of cullers.

◆ GetCullers()

vtkCullerCollection * vtkRenderer::GetCullers ( )
inline

Return the collection of cullers.

Get the list of cullers for this renderer.

Definition at line 1360 of file vtkRenderer.h.

◆ SetAmbient() [1/2]

virtual void vtkRenderer::SetAmbient ( double  ,
double  ,
double   
)
virtual

Set the intensity of ambient lighting.

◆ SetAmbient() [2/2]

virtual void vtkRenderer::SetAmbient ( double  [3])
virtual

Set the intensity of ambient lighting.

◆ GetAmbient() [1/2]

virtual double * vtkRenderer::GetAmbient ( )
virtual

Set the intensity of ambient lighting.

◆ GetAmbient() [2/2]

virtual void vtkRenderer::GetAmbient ( double  data[3])
virtual

Set the intensity of ambient lighting.

◆ SetAllocatedRenderTime()

virtual void vtkRenderer::SetAllocatedRenderTime ( double  )
virtual

Set/Get the amount of time this renderer is allowed to spend rendering its scene.

This is used by vtkLODActor's.

◆ GetAllocatedRenderTime()

virtual double vtkRenderer::GetAllocatedRenderTime ( )
virtual

Set/Get the amount of time this renderer is allowed to spend rendering its scene.

This is used by vtkLODActor's.

◆ GetTimeFactor()

virtual double vtkRenderer::GetTimeFactor ( )
virtual

Get the ratio between allocated time and actual render time.

TimeFactor has been taken out of the render process. It is still computed in case someone finds it useful. It may be taken away in the future.

◆ Render()

virtual void vtkRenderer::Render ( )
virtual

CALLED BY vtkRenderWindow ONLY.

End-user pass your way and call vtkRenderWindow::Render(). Create an image. This is a superclass method which will in turn call the DeviceRender method of Subclasses of vtkRenderer.

Reimplemented in vtkExternalOpenGLRenderer.

◆ DeviceRender()

virtual void vtkRenderer::DeviceRender ( )
inlinevirtual

Create an image.

Subclasses of vtkRenderer must implement this method.

Reimplemented in vtkOpenGLRenderer, vtkVRRenderer, and vtkWebGPURenderer.

Definition at line 415 of file vtkRenderer.h.

◆ DeviceRenderOpaqueGeometry()

virtual void vtkRenderer::DeviceRenderOpaqueGeometry ( vtkFrameBufferObjectBase fbo = nullptr)
virtual

Render opaque polygonal geometry.

Default implementation just calls UpdateOpaquePolygonalGeometry(). Subclasses of vtkRenderer that can deal with, e.g. hidden line removal must override this method.

Reimplemented in vtkOpenGLRenderer.

◆ DeviceRenderTranslucentPolygonalGeometry()

virtual void vtkRenderer::DeviceRenderTranslucentPolygonalGeometry ( vtkFrameBufferObjectBase fbo = nullptr)
virtual

Render translucent polygonal geometry.

Default implementation just call UpdateTranslucentPolygonalGeometry(). Subclasses of vtkRenderer that can deal with depth peeling must override this method. If UseDepthPeeling and UseDepthPeelingForVolumes are true, volumetric data will be rendered here as well. It updates boolean ivar LastRenderingUsedDepthPeeling.

Reimplemented in vtkOpenGLRenderer.

◆ ClearLights()

virtual void vtkRenderer::ClearLights ( )
inlinevirtual

Internal method temporarily removes lights before reloading them into graphics pipeline.

Definition at line 440 of file vtkRenderer.h.

◆ Clear()

virtual void vtkRenderer::Clear ( )
inlinevirtual

Clear the image to the background color.

Reimplemented in vtkOpenGLRenderer, and vtkWebGPURenderer.

Definition at line 445 of file vtkRenderer.h.

◆ VisibleActorCount()

int vtkRenderer::VisibleActorCount ( )

Returns the number of visible actors.

◆ VisibleVolumeCount()

int vtkRenderer::VisibleVolumeCount ( )

Returns the number of visible volumes.

◆ ComputeVisiblePropBounds() [1/2]

void vtkRenderer::ComputeVisiblePropBounds ( double  bounds[6])

Compute the bounding box of all the visible props Used in ResetCamera() and ResetCameraClippingRange()

◆ ComputeVisiblePropBounds() [2/2]

double * vtkRenderer::ComputeVisiblePropBounds ( )

Wrapper-friendly version of ComputeVisiblePropBounds.

◆ ResetCameraClippingRange() [1/3]

virtual void vtkRenderer::ResetCameraClippingRange ( )
virtual

Reset the camera clipping range based on the bounds of the visible actors.

This ensures that no props are cut off

Reimplemented in vtkVRRenderer, and vtkVRRenderer.

◆ ResetCameraClippingRange() [2/3]

virtual void vtkRenderer::ResetCameraClippingRange ( const double  bounds[6])
virtual

Reset the camera clipping range based on a bounding box.

Reimplemented in vtkVRRenderer, and vtkVRRenderer.

◆ ResetCameraClippingRange() [3/3]

virtual void vtkRenderer::ResetCameraClippingRange ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  zmin,
double  zmax 
)
virtual

Reset the camera clipping range based on a bounding box.

Reimplemented in vtkVRRenderer.

◆ SetNearClippingPlaneTolerance()

virtual void vtkRenderer::SetNearClippingPlaneTolerance ( double  )
virtual

Specify tolerance for near clipping plane distance to the camera as a percentage of the far clipping plane distance.

By default this will be set to 0.01 for 16 bit zbuffers and 0.001 for higher depth z buffers

◆ GetNearClippingPlaneTolerance()

virtual double vtkRenderer::GetNearClippingPlaneTolerance ( )
virtual

Specify tolerance for near clipping plane distance to the camera as a percentage of the far clipping plane distance.

By default this will be set to 0.01 for 16 bit zbuffers and 0.001 for higher depth z buffers

◆ SetClippingRangeExpansion()

virtual void vtkRenderer::SetClippingRangeExpansion ( double  )
virtual

Specify enlargement of bounds when resetting the camera clipping range.

By default the range is not expanded by any percent of the (far - near) on the near and far sides

◆ GetClippingRangeExpansion()

virtual double vtkRenderer::GetClippingRangeExpansion ( )
virtual

Specify enlargement of bounds when resetting the camera clipping range.

By default the range is not expanded by any percent of the (far - near) on the near and far sides

◆ ResetCamera() [1/3]

virtual void vtkRenderer::ResetCamera ( )
virtual

Automatically set up the camera based on the visible actors.

The camera will reposition itself to view the center point of the actors, and move along its initial view plane normal (i.e., vector defined from camera position to focal point) so that all of the actors can be seen.

Reimplemented in vtkVRRenderer.

◆ ResetCamera() [2/3]

virtual void vtkRenderer::ResetCamera ( const double  bounds[6])
virtual

Automatically set up the camera based on a specified bounding box (xmin, xmax, ymin, ymax, zmin, zmax).

Camera will reposition itself so that its focal point is the center of the bounding box, and adjust its distance and position to preserve its initial view plane normal (i.e., vector defined from camera position to focal point). Note: if the view plane is parallel to the view up axis, the view up axis will be reset to one of the three coordinate axes.

Reimplemented in vtkVRRenderer, vtkVRRenderer, and vtkZSpaceRenderer.

◆ ResetCamera() [3/3]

virtual void vtkRenderer::ResetCamera ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  zmin,
double  zmax 
)
virtual

Alternative version of ResetCamera(bounds[6]);.

Reimplemented in vtkVRRenderer.

◆ ResetCameraScreenSpace() [1/3]

virtual void vtkRenderer::ResetCameraScreenSpace ( double  offsetRatio = 0.9)
virtual

Automatically set up the camera based on the visible actors.

Use a screen space bounding box to zoom closer to the data.

OffsetRatio can be used to add a zoom offset. Default value is 0.9, which means that the camera will be 10% further from the data

◆ ResetCameraScreenSpace() [2/3]

virtual void vtkRenderer::ResetCameraScreenSpace ( const double  bounds[6],
double  offsetRatio = 0.9 
)
virtual

Automatically set up the camera based on a specified bounding box (xmin, xmax, ymin, ymax, zmin, zmax).

Use a screen space bounding box to zoom closer to the data.

OffsetRatio can be used to add a zoom offset. Default value is 0.9, which means that the camera will be 10% further from the data.

◆ DisplayToWorld() [1/2]

vtkVector3d vtkRenderer::DisplayToWorld ( const vtkVector3d display)

Convert a vtkVector3d from display space to world space.

◆ ZoomToBoxUsingViewAngle()

void vtkRenderer::ZoomToBoxUsingViewAngle ( const vtkRecti box,
double  offsetRatio = 1.0 
)

Automatically set up the camera focal point and zoom factor to observe the box in display coordinates.

OffsetRatio can be used to add a zoom offset.

◆ ResetCameraScreenSpace() [3/3]

virtual void vtkRenderer::ResetCameraScreenSpace ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  zmin,
double  zmax,
double  offsetRatio = 0.9 
)
virtual

Alternative version of ResetCameraScreenSpace(bounds[6]);.

OffsetRatio can be used to add a zoom offset. Default value is 0.9, which means that the camera will be 10% further from the data.

◆ SetRenderWindow()

void vtkRenderer::SetRenderWindow ( vtkRenderWindow )

Specify the rendering window in which to draw.

This is automatically set when the renderer is created by MakeRenderer. The user probably shouldn't ever need to call this method.

◆ GetRenderWindow()

vtkRenderWindow * vtkRenderer::GetRenderWindow ( )
inline

Specify the rendering window in which to draw.

This is automatically set when the renderer is created by MakeRenderer. The user probably shouldn't ever need to call this method.

Definition at line 577 of file vtkRenderer.h.

◆ GetVTKWindow()

vtkWindow * vtkRenderer::GetVTKWindow ( )
overridevirtual

Specify the rendering window in which to draw.

This is automatically set when the renderer is created by MakeRenderer. The user probably shouldn't ever need to call this method.

Implements vtkViewport.

◆ SetBackingStore()

virtual void vtkRenderer::SetBackingStore ( vtkTypeBool  )
virtual

Turn on/off using backing store.

This may cause the re-rendering time to be slightly slower when the view changes. But it is much faster when the image has not changed, such as during an expose event.

◆ GetBackingStore()

virtual vtkTypeBool vtkRenderer::GetBackingStore ( )
virtual

Turn on/off using backing store.

This may cause the re-rendering time to be slightly slower when the view changes. But it is much faster when the image has not changed, such as during an expose event.

◆ BackingStoreOn()

virtual void vtkRenderer::BackingStoreOn ( )
virtual

Turn on/off using backing store.

This may cause the re-rendering time to be slightly slower when the view changes. But it is much faster when the image has not changed, such as during an expose event.

◆ BackingStoreOff()

virtual void vtkRenderer::BackingStoreOff ( )
virtual

Turn on/off using backing store.

This may cause the re-rendering time to be slightly slower when the view changes. But it is much faster when the image has not changed, such as during an expose event.

◆ SetInteractive()

virtual void vtkRenderer::SetInteractive ( vtkTypeBool  )
virtual

Turn on/off interactive status.

An interactive renderer is one that can receive events from an interactor. Should only be set if there are multiple renderers in the same section of the viewport.

◆ GetInteractive()

virtual vtkTypeBool vtkRenderer::GetInteractive ( )
virtual

Turn on/off interactive status.

An interactive renderer is one that can receive events from an interactor. Should only be set if there are multiple renderers in the same section of the viewport.

◆ InteractiveOn()

virtual void vtkRenderer::InteractiveOn ( )
virtual

Turn on/off interactive status.

An interactive renderer is one that can receive events from an interactor. Should only be set if there are multiple renderers in the same section of the viewport.

◆ InteractiveOff()

virtual void vtkRenderer::InteractiveOff ( )
virtual

Turn on/off interactive status.

An interactive renderer is one that can receive events from an interactor. Should only be set if there are multiple renderers in the same section of the viewport.

◆ SetLayer()

virtual void vtkRenderer::SetLayer ( int  layer)
virtual

Set/Get the layer that this renderer belongs to.

This is only used if there are layered renderers.

Note: Changing the layer will update the PreserveColorBuffer setting. If the layer is 0, PreserveColorBuffer will be set to false, making the bottom renderer opaque. If the layer is non-zero, PreserveColorBuffer will be set to true, giving the renderer a transparent background. If other PreserveColorBuffer configurations are desired, they must be adjusted after the layer is set.

◆ GetLayer()

virtual int vtkRenderer::GetLayer ( )
virtual

Set/Get the layer that this renderer belongs to.

This is only used if there are layered renderers.

Note: Changing the layer will update the PreserveColorBuffer setting. If the layer is 0, PreserveColorBuffer will be set to false, making the bottom renderer opaque. If the layer is non-zero, PreserveColorBuffer will be set to true, giving the renderer a transparent background. If other PreserveColorBuffer configurations are desired, they must be adjusted after the layer is set.

◆ GetPreserveColorBuffer()

virtual vtkTypeBool vtkRenderer::GetPreserveColorBuffer ( )
virtual

By default, the renderer at layer 0 is opaque, and all non-zero layer renderers are transparent.

This flag allows this behavior to be overridden. If true, this setting will force the renderer to preserve the existing color buffer regardless of layer. If false, it will always be cleared at the start of rendering.

This flag influences the Transparent() method, and is updated by calls to SetLayer(). For this reason it should only be set after changing the layer.

◆ SetPreserveColorBuffer()

virtual void vtkRenderer::SetPreserveColorBuffer ( vtkTypeBool  )
virtual

By default, the renderer at layer 0 is opaque, and all non-zero layer renderers are transparent.

This flag allows this behavior to be overridden. If true, this setting will force the renderer to preserve the existing color buffer regardless of layer. If false, it will always be cleared at the start of rendering.

This flag influences the Transparent() method, and is updated by calls to SetLayer(). For this reason it should only be set after changing the layer.

◆ PreserveColorBufferOn()

virtual void vtkRenderer::PreserveColorBufferOn ( )
virtual

By default, the renderer at layer 0 is opaque, and all non-zero layer renderers are transparent.

This flag allows this behavior to be overridden. If true, this setting will force the renderer to preserve the existing color buffer regardless of layer. If false, it will always be cleared at the start of rendering.

This flag influences the Transparent() method, and is updated by calls to SetLayer(). For this reason it should only be set after changing the layer.

◆ PreserveColorBufferOff()

virtual void vtkRenderer::PreserveColorBufferOff ( )
virtual

By default, the renderer at layer 0 is opaque, and all non-zero layer renderers are transparent.

This flag allows this behavior to be overridden. If true, this setting will force the renderer to preserve the existing color buffer regardless of layer. If false, it will always be cleared at the start of rendering.

This flag influences the Transparent() method, and is updated by calls to SetLayer(). For this reason it should only be set after changing the layer.

◆ SetPreserveDepthBuffer()

virtual void vtkRenderer::SetPreserveDepthBuffer ( vtkTypeBool  )
virtual

By default, the depth buffer is reset for each renderer.

If this flag is true, this renderer will use the existing depth buffer for its rendering.

◆ GetPreserveDepthBuffer()

virtual vtkTypeBool vtkRenderer::GetPreserveDepthBuffer ( )
virtual

By default, the depth buffer is reset for each renderer.

If this flag is true, this renderer will use the existing depth buffer for its rendering.

◆ PreserveDepthBufferOn()

virtual void vtkRenderer::PreserveDepthBufferOn ( )
virtual

By default, the depth buffer is reset for each renderer.

If this flag is true, this renderer will use the existing depth buffer for its rendering.

◆ PreserveDepthBufferOff()

virtual void vtkRenderer::PreserveDepthBufferOff ( )
virtual

By default, the depth buffer is reset for each renderer.

If this flag is true, this renderer will use the existing depth buffer for its rendering.

◆ Transparent()

vtkTypeBool vtkRenderer::Transparent ( )

Returns a boolean indicating if this renderer is transparent.

It is transparent if it is not in the deepest layer of its render window.

◆ WorldToView() [1/2]

void vtkRenderer::WorldToView ( )
overridevirtual

Convert world point coordinates to view coordinates.

Reimplemented from vtkViewport.

◆ ViewToWorld() [1/2]

void vtkRenderer::ViewToWorld ( )
overridevirtual

Convert view point coordinates to world coordinates.

Reimplemented from vtkViewport.

◆ ViewToWorld() [2/2]

void vtkRenderer::ViewToWorld ( double &  wx,
double &  wy,
double &  wz 
)
overridevirtual

Convert view point coordinates to world coordinates.

Reimplemented from vtkViewport.

◆ WorldToView() [2/2]

void vtkRenderer::WorldToView ( double &  wx,
double &  wy,
double &  wz 
)
overridevirtual

Convert world point coordinates to view coordinates.

Reimplemented from vtkViewport.

◆ WorldToPose()

void vtkRenderer::WorldToPose ( double &  wx,
double &  wy,
double &  wz 
)
overridevirtual

Convert to from pose coordinates.

Reimplemented from vtkViewport.

◆ PoseToWorld()

void vtkRenderer::PoseToWorld ( double &  wx,
double &  wy,
double &  wz 
)
overridevirtual

Convert to from pose coordinates.

Reimplemented from vtkViewport.

◆ ViewToPose()

void vtkRenderer::ViewToPose ( double &  wx,
double &  wy,
double &  wz 
)
overridevirtual

Convert to from pose coordinates.

Reimplemented from vtkViewport.

◆ PoseToView()

void vtkRenderer::PoseToView ( double &  wx,
double &  wy,
double &  wz 
)
overridevirtual

Convert to from pose coordinates.

Reimplemented from vtkViewport.

◆ GetZ()

double vtkRenderer::GetZ ( int  x,
int  y 
)

Given a pixel location, return the Z value.

The z value is normalized (0,1) between the front and back clipping planes. By default this functions accesses the vtkRenderWindow's depth buffer that is only valid right after this specific renderer has renderered. If SafeGetZ is On, this function will use a vtkHardwareSelector to get the depth information in flight. This approach always works, but takes more time as it invokes a render on the whole scene.

◆ SetSafeGetZ()

virtual void vtkRenderer::SetSafeGetZ ( bool  )
virtual

If this flag is On GetZ(int, int) will use a vtkHardwareSelector internally to determine the Z value.

Otherwise, it will use vtkRenderWindow::GetZbufferValue. See GetZ(int, int) documentation for more information. Default is off.

◆ GetSafeGetZ()

virtual bool vtkRenderer::GetSafeGetZ ( )
virtual

If this flag is On GetZ(int, int) will use a vtkHardwareSelector internally to determine the Z value.

Otherwise, it will use vtkRenderWindow::GetZbufferValue. See GetZ(int, int) documentation for more information. Default is off.

◆ SafeGetZOn()

virtual void vtkRenderer::SafeGetZOn ( )
virtual

If this flag is On GetZ(int, int) will use a vtkHardwareSelector internally to determine the Z value.

Otherwise, it will use vtkRenderWindow::GetZbufferValue. See GetZ(int, int) documentation for more information. Default is off.

◆ SafeGetZOff()

virtual void vtkRenderer::SafeGetZOff ( )
virtual

If this flag is On GetZ(int, int) will use a vtkHardwareSelector internally to determine the Z value.

Otherwise, it will use vtkRenderWindow::GetZbufferValue. See GetZ(int, int) documentation for more information. Default is off.

◆ GetMTime()

vtkMTimeType vtkRenderer::GetMTime ( )
overridevirtual

Return the MTime of the renderer also considering its ivars.

Reimplemented from vtkObject.

◆ GetLastRenderTimeInSeconds()

virtual double vtkRenderer::GetLastRenderTimeInSeconds ( )
virtual

Get the time required, in seconds, for the last Render call.

◆ GetNumberOfPropsRendered()

virtual int vtkRenderer::GetNumberOfPropsRendered ( )
virtual

Should be used internally only during a render Get the number of props that were rendered using a RenderOpaqueGeometry or RenderTranslucentPolygonalGeometry call.

This is used to know if something is in the frame buffer.

◆ PickProp() [1/4]

vtkAssemblyPath * vtkRenderer::PickProp ( double  selectionX,
double  selectionY 
)
inlineoverridevirtual

Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x, y position in the viewport.

Basically, the top most prop that renders the pixel at selectionX, selectionY will be returned. If nothing was picked then NULL is returned. This method selects from the renderer's Prop list.

Implements vtkViewport.

Definition at line 734 of file vtkRenderer.h.

◆ PickProp() [2/4]

vtkAssemblyPath * vtkRenderer::PickProp ( double  selectionX1,
double  selectionY1,
double  selectionX2,
double  selectionY2 
)
overridevirtual

Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x, y position in the viewport.

Basically, the top most prop that renders the pixel at selectionX, selectionY will be returned. If nothing was picked then NULL is returned. This method selects from the renderer's Prop list.

Implements vtkViewport.

◆ PickProp() [3/4]

vtkAssemblyPath * vtkRenderer::PickProp ( double  selectionX,
double  selectionY,
int  fieldAssociation,
vtkSmartPointer< vtkSelection selection 
)
inlineoverridevirtual

Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x, y position in the viewport.

Basically, the top most prop that renders the pixel at selectionX, selectionY will be returned. If nothing was picked then NULL is returned. This method selects from the renderer's Prop list. Additionally, you can set the field association of the hardware selector used internally, and get its selection result by passing a non-null vtkSmartPointer<vtkSelection>. The picked prop is guaranteed to be the first node in the selection result.

Implements vtkViewport.

Definition at line 753 of file vtkRenderer.h.

◆ PickProp() [4/4]

vtkAssemblyPath * vtkRenderer::PickProp ( double  selectionX1,
double  selectionY1,
double  selectionX2,
double  selectionY2,
int  fieldAssociation,
vtkSmartPointer< vtkSelection selection 
)
overridevirtual

Return the prop (via a vtkAssemblyPath) that has the highest z value at the given x, y position in the viewport.

Basically, the top most prop that renders the pixel at selectionX, selectionY will be returned. If nothing was picked then NULL is returned. This method selects from the renderer's Prop list. Additionally, you can set the field association of the hardware selector used internally, and get its selection result by passing a non-null vtkSmartPointer<vtkSelection>. The picked prop is guaranteed to be the first node in the selection result.

Implements vtkViewport.

◆ StereoMidpoint()

virtual void vtkRenderer::StereoMidpoint ( )
inlinevirtual

Do anything necessary between rendering the left and right viewpoints in a stereo render.

Doesn't do anything except in the derived vtkIceTRenderer in ParaView.

Definition at line 768 of file vtkRenderer.h.

◆ GetTiledAspectRatio()

double vtkRenderer::GetTiledAspectRatio ( )

Compute the aspect ratio of this renderer for the current tile.

When tiled displays are used the aspect ratio of the renderer for a given tile may be different that the aspect ratio of the renderer when rendered in it entirety

◆ IsActiveCameraCreated()

vtkTypeBool vtkRenderer::IsActiveCameraCreated ( )
inline

This method returns 1 if the ActiveCamera has already been set or automatically created by the renderer.

It returns 0 if the ActiveCamera does not yet exist.

Definition at line 783 of file vtkRenderer.h.

◆ SetUseDepthPeeling()

virtual void vtkRenderer::SetUseDepthPeeling ( vtkTypeBool  )
virtual

Turn on/off rendering of translucent material with depth peeling technique.

The render window must have alpha bits (ie call SetAlphaBitPlanes(1)) and no multisample buffer (ie call SetMultiSamples(0) ) to support depth peeling. If UseDepthPeeling is on and the GPU supports it, depth peeling is used for rendering translucent materials. If UseDepthPeeling is off, alpha blending is used. Initial value is off.

◆ GetUseDepthPeeling()

virtual vtkTypeBool vtkRenderer::GetUseDepthPeeling ( )
virtual

Turn on/off rendering of translucent material with depth peeling technique.

The render window must have alpha bits (ie call SetAlphaBitPlanes(1)) and no multisample buffer (ie call SetMultiSamples(0) ) to support depth peeling. If UseDepthPeeling is on and the GPU supports it, depth peeling is used for rendering translucent materials. If UseDepthPeeling is off, alpha blending is used. Initial value is off.

◆ UseDepthPeelingOn()

virtual void vtkRenderer::UseDepthPeelingOn ( )
virtual

Turn on/off rendering of translucent material with depth peeling technique.

The render window must have alpha bits (ie call SetAlphaBitPlanes(1)) and no multisample buffer (ie call SetMultiSamples(0) ) to support depth peeling. If UseDepthPeeling is on and the GPU supports it, depth peeling is used for rendering translucent materials. If UseDepthPeeling is off, alpha blending is used. Initial value is off.

◆ UseDepthPeelingOff()

virtual void vtkRenderer::UseDepthPeelingOff ( )
virtual

Turn on/off rendering of translucent material with depth peeling technique.

The render window must have alpha bits (ie call SetAlphaBitPlanes(1)) and no multisample buffer (ie call SetMultiSamples(0) ) to support depth peeling. If UseDepthPeeling is on and the GPU supports it, depth peeling is used for rendering translucent materials. If UseDepthPeeling is off, alpha blending is used. Initial value is off.

◆ SetUseDepthPeelingForVolumes()

virtual void vtkRenderer::SetUseDepthPeelingForVolumes ( bool  )
virtual

This flag is on and the GPU supports it, depth-peel volumes along with the translucent geometry.

Only supported on OpenGL2 with dual-depth peeling. Default is false.

◆ GetUseDepthPeelingForVolumes()

virtual bool vtkRenderer::GetUseDepthPeelingForVolumes ( )
virtual

◆ UseDepthPeelingForVolumesOn()

virtual void vtkRenderer::UseDepthPeelingForVolumesOn ( )
virtual

◆ UseDepthPeelingForVolumesOff()

virtual void vtkRenderer::UseDepthPeelingForVolumesOff ( )
virtual

◆ SetOcclusionRatio()

virtual void vtkRenderer::SetOcclusionRatio ( double  )
virtual

In case of use of depth peeling technique for rendering translucent material, define the threshold under which the algorithm stops to iterate over peel layers.

This is the ratio of the number of pixels that have been touched by the last layer over the total number of pixels of the viewport area. Initial value is 0.0, meaning rendering have to be exact. Greater values may speed-up the rendering with small impact on the quality.

◆ GetOcclusionRatio()

virtual double vtkRenderer::GetOcclusionRatio ( )
virtual

In case of use of depth peeling technique for rendering translucent material, define the threshold under which the algorithm stops to iterate over peel layers.

This is the ratio of the number of pixels that have been touched by the last layer over the total number of pixels of the viewport area. Initial value is 0.0, meaning rendering have to be exact. Greater values may speed-up the rendering with small impact on the quality.

◆ SetMaximumNumberOfPeels()

virtual void vtkRenderer::SetMaximumNumberOfPeels ( int  )
virtual

In case of depth peeling, define the maximum number of peeling layers.

Initial value is 4. A special value of 0 means no maximum limit. It has to be a positive value.

◆ GetMaximumNumberOfPeels()

virtual int vtkRenderer::GetMaximumNumberOfPeels ( )
virtual

In case of depth peeling, define the maximum number of peeling layers.

Initial value is 4. A special value of 0 means no maximum limit. It has to be a positive value.

◆ GetLastRenderingUsedDepthPeeling()

virtual vtkTypeBool vtkRenderer::GetLastRenderingUsedDepthPeeling ( )
virtual

Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.

Initial value is false.

◆ SetUseSSAO()

virtual void vtkRenderer::SetUseSSAO ( bool  )
virtual

Enable or disable Screen Space Ambient Occlusion.

SSAO darkens some pixels to improve depth perception.

◆ GetUseSSAO()

virtual bool vtkRenderer::GetUseSSAO ( )
virtual

Enable or disable Screen Space Ambient Occlusion.

SSAO darkens some pixels to improve depth perception.

◆ UseSSAOOn()

virtual void vtkRenderer::UseSSAOOn ( )
virtual

Enable or disable Screen Space Ambient Occlusion.

SSAO darkens some pixels to improve depth perception.

◆ UseSSAOOff()

virtual void vtkRenderer::UseSSAOOff ( )
virtual

Enable or disable Screen Space Ambient Occlusion.

SSAO darkens some pixels to improve depth perception.

◆ SetSSAORadius()

virtual void vtkRenderer::SetSSAORadius ( double  )
virtual

When using SSAO, define the SSAO hemisphere radius.

Default is 0.5

◆ GetSSAORadius()

virtual double vtkRenderer::GetSSAORadius ( )
virtual

When using SSAO, define the SSAO hemisphere radius.

Default is 0.5

◆ SetSSAOBias()

virtual void vtkRenderer::SetSSAOBias ( double  )
virtual

When using SSAO, define the bias when comparing samples.

Default is 0.01

◆ GetSSAOBias()

virtual double vtkRenderer::GetSSAOBias ( )
virtual

When using SSAO, define the bias when comparing samples.

Default is 0.01

◆ SetSSAOKernelSize()

virtual void vtkRenderer::SetSSAOKernelSize ( unsigned int  )
virtual

When using SSAO, define the number of samples.

Default is 32

◆ GetSSAOKernelSize()

virtual unsigned int vtkRenderer::GetSSAOKernelSize ( )
virtual

When using SSAO, define the number of samples.

Default is 32

◆ SetSSAOBlur()

virtual void vtkRenderer::SetSSAOBlur ( bool  )
virtual

When using SSAO, define blurring of the ambient occlusion.

Blurring can help to improve the result if samples number is low. Default is false

◆ GetSSAOBlur()

virtual bool vtkRenderer::GetSSAOBlur ( )
virtual

When using SSAO, define blurring of the ambient occlusion.

Blurring can help to improve the result if samples number is low. Default is false

◆ SSAOBlurOn()

virtual void vtkRenderer::SSAOBlurOn ( )
virtual

When using SSAO, define blurring of the ambient occlusion.

Blurring can help to improve the result if samples number is low. Default is false

◆ SSAOBlurOff()

virtual void vtkRenderer::SSAOBlurOff ( )
virtual

When using SSAO, define blurring of the ambient occlusion.

Blurring can help to improve the result if samples number is low. Default is false

◆ SetDelegate()

void vtkRenderer::SetDelegate ( vtkRendererDelegate d)

Set/Get a custom Render call.

Allows to hook a Render call from an external project.It will be used in place of vtkRenderer::Render() if it is not NULL and its Used ivar is set to true. Initial value is NULL.

◆ GetDelegate()

virtual vtkRendererDelegate * vtkRenderer::GetDelegate ( )
virtual

Set/Get a custom Render call.

Allows to hook a Render call from an external project.It will be used in place of vtkRenderer::Render() if it is not NULL and its Used ivar is set to true. Initial value is NULL.

◆ GetSelector()

virtual vtkHardwareSelector * vtkRenderer::GetSelector ( )
virtual

Get the current hardware selector.

If the Selector is set, it implies the current render pass is for selection. Mappers/Properties may choose to behave differently when rendering for hardware selection.

◆ SetLeftBackgroundTexture()

virtual void vtkRenderer::SetLeftBackgroundTexture ( vtkTexture )
virtual

Set/Get the texture to be used for the monocular or stereo left eye background.

If set and enabled this gets the priority over the gradient background.

◆ GetLeftBackgroundTexture()

vtkTexture * vtkRenderer::GetLeftBackgroundTexture ( )

Set/Get the texture to be used for the monocular or stereo left eye background.

If set and enabled this gets the priority over the gradient background.

◆ SetBackgroundTexture()

virtual void vtkRenderer::SetBackgroundTexture ( vtkTexture )
virtual

Set/Get the texture to be used for the monocular or stereo left eye background.

If set and enabled this gets the priority over the gradient background.

◆ GetBackgroundTexture()

virtual vtkTexture * vtkRenderer::GetBackgroundTexture ( )
virtual

Set/Get the texture to be used for the monocular or stereo left eye background.

If set and enabled this gets the priority over the gradient background.

◆ SetRightBackgroundTexture()

virtual void vtkRenderer::SetRightBackgroundTexture ( vtkTexture )
virtual

Set/Get the texture to be used for the right eye background.

If set and enabled this gets the priority over the gradient background.

◆ GetRightBackgroundTexture()

virtual vtkTexture * vtkRenderer::GetRightBackgroundTexture ( )
virtual

Set/Get the texture to be used for the right eye background.

If set and enabled this gets the priority over the gradient background.

◆ SetTexturedBackground()

virtual void vtkRenderer::SetTexturedBackground ( bool  )
virtual

Set/Get whether this viewport should have a textured background.

Default is off.

◆ GetTexturedBackground()

virtual bool vtkRenderer::GetTexturedBackground ( )
virtual

Set/Get whether this viewport should have a textured background.

Default is off.

◆ TexturedBackgroundOn()

virtual void vtkRenderer::TexturedBackgroundOn ( )
virtual

Set/Get whether this viewport should have a textured background.

Default is off.

◆ TexturedBackgroundOff()

virtual void vtkRenderer::TexturedBackgroundOff ( )
virtual

Set/Get whether this viewport should have a textured background.

Default is off.

◆ ReleaseGraphicsResources()

virtual void vtkRenderer::ReleaseGraphicsResources ( vtkWindow )
virtual

Reimplemented in vtkOpenGLRenderer, and vtkWebGPURenderer.

◆ SetUseFXAA()

virtual void vtkRenderer::SetUseFXAA ( bool  )
virtual

Turn on/off FXAA anti-aliasing, if supported.

Initial value is off.

◆ GetUseFXAA()

virtual bool vtkRenderer::GetUseFXAA ( )
virtual

Turn on/off FXAA anti-aliasing, if supported.

Initial value is off.

◆ UseFXAAOn()

virtual void vtkRenderer::UseFXAAOn ( )
virtual

Turn on/off FXAA anti-aliasing, if supported.

Initial value is off.

◆ UseFXAAOff()

virtual void vtkRenderer::UseFXAAOff ( )
virtual

Turn on/off FXAA anti-aliasing, if supported.

Initial value is off.

◆ GetFXAAOptions()

virtual vtkFXAAOptions * vtkRenderer::GetFXAAOptions ( )
virtual

The configuration object for FXAA antialiasing.

◆ SetFXAAOptions()

virtual void vtkRenderer::SetFXAAOptions ( vtkFXAAOptions )
virtual

The configuration object for FXAA antialiasing.

◆ SetUseShadows()

virtual void vtkRenderer::SetUseShadows ( vtkTypeBool  )
virtual

Turn on/off rendering of shadows if supported Initial value is off.

◆ GetUseShadows()

virtual vtkTypeBool vtkRenderer::GetUseShadows ( )
virtual

Turn on/off rendering of shadows if supported Initial value is off.

◆ UseShadowsOn()

virtual void vtkRenderer::UseShadowsOn ( )
virtual

Turn on/off rendering of shadows if supported Initial value is off.

◆ UseShadowsOff()

virtual void vtkRenderer::UseShadowsOff ( )
virtual

Turn on/off rendering of shadows if supported Initial value is off.

◆ SetUseHiddenLineRemoval()

virtual void vtkRenderer::SetUseHiddenLineRemoval ( vtkTypeBool  )
virtual

If this flag is true and the rendering engine supports it, wireframe geometry will be drawn using hidden line removal.

◆ GetUseHiddenLineRemoval()

virtual vtkTypeBool vtkRenderer::GetUseHiddenLineRemoval ( )
virtual

If this flag is true and the rendering engine supports it, wireframe geometry will be drawn using hidden line removal.

◆ UseHiddenLineRemovalOn()

virtual void vtkRenderer::UseHiddenLineRemovalOn ( )
virtual

If this flag is true and the rendering engine supports it, wireframe geometry will be drawn using hidden line removal.

◆ UseHiddenLineRemovalOff()

virtual void vtkRenderer::UseHiddenLineRemovalOff ( )
virtual

If this flag is true and the rendering engine supports it, wireframe geometry will be drawn using hidden line removal.

◆ SetPass()

void vtkRenderer::SetPass ( vtkRenderPass p)

◆ GetPass()

virtual vtkRenderPass * vtkRenderer::GetPass ( )
virtual

◆ GetInformation()

virtual vtkInformation * vtkRenderer::GetInformation ( )
virtual

Set/Get the information object associated with this algorithm.

◆ SetInformation()

virtual void vtkRenderer::SetInformation ( vtkInformation )
virtual

Set/Get the information object associated with this algorithm.

◆ SetUseImageBasedLighting()

virtual void vtkRenderer::SetUseImageBasedLighting ( bool  )
virtual

If this flag is true and the rendering engine supports it, image based lighting is enabled and surface rendering displays environment reflections.

Image Based Lighting rely on the environment texture to compute lighting if it has been provided.

◆ GetUseImageBasedLighting()

virtual bool vtkRenderer::GetUseImageBasedLighting ( )
virtual

If this flag is true and the rendering engine supports it, image based lighting is enabled and surface rendering displays environment reflections.

Image Based Lighting rely on the environment texture to compute lighting if it has been provided.

◆ UseImageBasedLightingOn()

virtual void vtkRenderer::UseImageBasedLightingOn ( )
virtual

If this flag is true and the rendering engine supports it, image based lighting is enabled and surface rendering displays environment reflections.

Image Based Lighting rely on the environment texture to compute lighting if it has been provided.

◆ UseImageBasedLightingOff()

virtual void vtkRenderer::UseImageBasedLightingOff ( )
virtual

If this flag is true and the rendering engine supports it, image based lighting is enabled and surface rendering displays environment reflections.

Image Based Lighting rely on the environment texture to compute lighting if it has been provided.

◆ GetEnvironmentTexture()

virtual vtkTexture * vtkRenderer::GetEnvironmentTexture ( )
virtual

Set/Get the environment texture used for image based lighting.

This texture is supposed to represent the scene background.

See also
vtkTexture::UseSRGBColorSpaceOn

◆ SetEnvironmentTextureProperty()

void vtkRenderer::SetEnvironmentTextureProperty ( vtkTexture texture)
inline

Set/Get the environment texture used for image based lighting.

This texture is supposed to represent the scene background.

See also
vtkTexture::UseSRGBColorSpaceOn

Definition at line 1018 of file vtkRenderer.h.

◆ SetEnvironmentTexture()

virtual void vtkRenderer::SetEnvironmentTexture ( vtkTexture texture,
bool  isSRGB = false 
)
virtual

Set/Get the environment texture used for image based lighting.

This texture is supposed to represent the scene background.

See also
vtkTexture::UseSRGBColorSpaceOn

Reimplemented in vtkOpenGLRenderer, and vtkWebGPURenderer.

◆ GetEnvironmentUp() [1/3]

virtual double * vtkRenderer::GetEnvironmentUp ( )
virtual

Set/Get the environment up vector.

◆ GetEnvironmentUp() [2/3]

virtual void vtkRenderer::GetEnvironmentUp ( double &  ,
double &  ,
double &   
)
virtual

Set/Get the environment up vector.

◆ GetEnvironmentUp() [3/3]

virtual void vtkRenderer::GetEnvironmentUp ( double  [3])
virtual

Set/Get the environment up vector.

◆ SetEnvironmentUp() [1/2]

virtual void vtkRenderer::SetEnvironmentUp ( double  ,
double  ,
double   
)
virtual

Set/Get the environment up vector.

◆ SetEnvironmentUp() [2/2]

virtual void vtkRenderer::SetEnvironmentUp ( double  [3])
virtual

Set/Get the environment up vector.

◆ GetEnvironmentRight() [1/3]

virtual double * vtkRenderer::GetEnvironmentRight ( )
virtual

Set/Get the environment right vector.

◆ GetEnvironmentRight() [2/3]

virtual void vtkRenderer::GetEnvironmentRight ( double &  ,
double &  ,
double &   
)
virtual

Set/Get the environment right vector.

◆ GetEnvironmentRight() [3/3]

virtual void vtkRenderer::GetEnvironmentRight ( double  [3])
virtual

Set/Get the environment right vector.

◆ SetEnvironmentRight() [1/2]

virtual void vtkRenderer::SetEnvironmentRight ( double  ,
double  ,
double   
)
virtual

Set/Get the environment right vector.

◆ SetEnvironmentRight() [2/2]

virtual void vtkRenderer::SetEnvironmentRight ( double  [3])
virtual

Set/Get the environment right vector.

◆ ExpandBounds()

virtual void vtkRenderer::ExpandBounds ( double  bounds[6],
vtkMatrix4x4 matrix 
)
protectedvirtual

◆ AllocateTime()

void vtkRenderer::AllocateTime ( )
protected

◆ GetCompositeProjectionTransformationMatrix()

const std::array< double, 16 > & vtkRenderer::GetCompositeProjectionTransformationMatrix ( )
protected

Gets the ActiveCamera CompositeProjectionTransformationMatrix, only computing it if necessary.

This function expects that this->ActiveCamera is not nullptr.

◆ GetProjectionTransformationMatrix()

const std::array< double, 16 > & vtkRenderer::GetProjectionTransformationMatrix ( )
protected

Gets the ActiveCamera ProjectionTransformationMatrix, only computing it if necessary.

This function expects that this->ActiveCamera is not nullptr.

◆ GetViewTransformMatrix()

const std::array< double, 16 > & vtkRenderer::GetViewTransformMatrix ( )
protected

Gets the ActiveCamera ViewTransformMatrix, only computing it if necessary.

This function expects that this->ActiveCamera is not nullptr.

◆ UpdateGeometry()

virtual int vtkRenderer::UpdateGeometry ( vtkFrameBufferObjectBase fbo = nullptr)
protectedvirtual

Ask all props to update and draw any opaque and translucent geometry.

This includes both vtkActors and vtkVolumes Returns the number of props that rendered geometry.

Reimplemented in vtkOpenGLRenderer, and vtkWebGPURenderer.

◆ UpdateTranslucentPolygonalGeometry()

virtual int vtkRenderer::UpdateTranslucentPolygonalGeometry ( )
protectedvirtual

Ask all props to update and draw any translucent polygonal geometry.

This includes both vtkActors and vtkVolumes Return the number of rendered props. It is called once with alpha blending technique. It is called multiple times with depth peeling technique.

Reimplemented in vtkWebGPURenderer.

◆ UpdateOpaquePolygonalGeometry()

virtual int vtkRenderer::UpdateOpaquePolygonalGeometry ( )
protectedvirtual

Ask all props to update and draw any opaque polygonal geometry.

This includes both vtkActors and vtkVolumes Return the number of rendered props.

Reimplemented in vtkWebGPURenderer.

◆ UpdateCamera()

virtual int vtkRenderer::UpdateCamera ( )
protectedvirtual

Ask the active camera to do whatever it needs to do prior to rendering.

Creates a camera if none found active.

◆ UpdateLightGeometry()

virtual vtkTypeBool vtkRenderer::UpdateLightGeometry ( )
protectedvirtual

Update the geometry of the lights in the scene that are not in world space (for instance, Headlights or CameraLights that are attached to the camera).

◆ UpdateLights()

virtual int vtkRenderer::UpdateLights ( )
inlineprotectedvirtual

Ask all lights to load themselves into rendering pipeline.

This method will return the actual number of lights that were on.

Reimplemented in vtkOpenGLRenderer, and vtkWebGPURenderer.

Definition at line 1190 of file vtkRenderer.h.

◆ GetActiveCameraAndResetIfCreated()

vtkCamera * vtkRenderer::GetActiveCameraAndResetIfCreated ( )
protected

Get the current camera and reset it only if it gets created automatically (see GetActiveCamera).

This is only used internally.

◆ SetSelector()

void vtkRenderer::SetSelector ( vtkHardwareSelector selector)
inlineprotected

Called by vtkHardwareSelector when it begins rendering for selection.

Definition at line 1273 of file vtkRenderer.h.

◆ DisplayToWorld() [2/2]

void vtkViewport::DisplayToWorld ( )
inline

Convert display (or screen) coordinates to world coordinates.

Definition at line 288 of file vtkViewport.h.

Friends And Related Symbol Documentation

◆ vtkHardwareSelector

friend class vtkHardwareSelector
friend

Definition at line 1268 of file vtkRenderer.h.

◆ vtkRendererDelegate

friend class vtkRendererDelegate
friend

Definition at line 1283 of file vtkRenderer.h.

◆ vtkRenderPass

friend class vtkRenderPass
friend

Definition at line 1290 of file vtkRenderer.h.

Member Data Documentation

◆ ActiveCamera

vtkCamera* vtkRenderer::ActiveCamera
protected

Definition at line 1047 of file vtkRenderer.h.

◆ CreatedLight

vtkLight* vtkRenderer::CreatedLight
protected

Definition at line 1048 of file vtkRenderer.h.

◆ Lights

vtkLightCollection* vtkRenderer::Lights
protected

Definition at line 1050 of file vtkRenderer.h.

◆ Cullers

vtkCullerCollection* vtkRenderer::Cullers
protected

Definition at line 1051 of file vtkRenderer.h.

◆ Actors

vtkActorCollection* vtkRenderer::Actors
protected

Definition at line 1053 of file vtkRenderer.h.

◆ Volumes

vtkVolumeCollection* vtkRenderer::Volumes
protected

Definition at line 1054 of file vtkRenderer.h.

◆ Ambient

double vtkRenderer::Ambient[3]
protected

Definition at line 1056 of file vtkRenderer.h.

◆ RenderWindow

vtkRenderWindow* vtkRenderer::RenderWindow
protected

Definition at line 1057 of file vtkRenderer.h.

◆ AllocatedRenderTime

double vtkRenderer::AllocatedRenderTime
protected

Definition at line 1058 of file vtkRenderer.h.

◆ TimeFactor

double vtkRenderer::TimeFactor
protected

Definition at line 1059 of file vtkRenderer.h.

◆ TwoSidedLighting

vtkTypeBool vtkRenderer::TwoSidedLighting
protected

Definition at line 1060 of file vtkRenderer.h.

◆ AutomaticLightCreation

vtkTypeBool vtkRenderer::AutomaticLightCreation
protected

Definition at line 1061 of file vtkRenderer.h.

◆ BackingStore

vtkTypeBool vtkRenderer::BackingStore
protected

Definition at line 1062 of file vtkRenderer.h.

◆ BackingImage

unsigned char* vtkRenderer::BackingImage
protected

Definition at line 1063 of file vtkRenderer.h.

◆ BackingStoreSize

int vtkRenderer::BackingStoreSize[2]
protected

Definition at line 1064 of file vtkRenderer.h.

◆ RenderTime

vtkTimeStamp vtkRenderer::RenderTime
protected

Definition at line 1065 of file vtkRenderer.h.

◆ LastRenderTimeInSeconds

double vtkRenderer::LastRenderTimeInSeconds
protected

Definition at line 1067 of file vtkRenderer.h.

◆ LightFollowCamera

vtkTypeBool vtkRenderer::LightFollowCamera
protected

Definition at line 1069 of file vtkRenderer.h.

◆ NumberOfPropsRendered

int vtkRenderer::NumberOfPropsRendered
protected

Definition at line 1076 of file vtkRenderer.h.

◆ PropArray

vtkProp** vtkRenderer::PropArray
protected

Definition at line 1080 of file vtkRenderer.h.

◆ PropArrayCount

int vtkRenderer::PropArrayCount
protected

Definition at line 1081 of file vtkRenderer.h.

◆ Interactive

vtkTypeBool vtkRenderer::Interactive
protected

Definition at line 1085 of file vtkRenderer.h.

◆ Layer

int vtkRenderer::Layer
protected

Definition at line 1089 of file vtkRenderer.h.

◆ PreserveColorBuffer

vtkTypeBool vtkRenderer::PreserveColorBuffer
protected

Definition at line 1090 of file vtkRenderer.h.

◆ PreserveDepthBuffer

vtkTypeBool vtkRenderer::PreserveDepthBuffer
protected

Definition at line 1091 of file vtkRenderer.h.

◆ ComputedVisiblePropBounds

double vtkRenderer::ComputedVisiblePropBounds[6]
protected

Definition at line 1095 of file vtkRenderer.h.

◆ NearClippingPlaneTolerance

double vtkRenderer::NearClippingPlaneTolerance
protected

Specifies the minimum distance of the near clipping plane as a percentage of the far clipping plane distance.

Values below this threshold are clipped to NearClippingPlaneTolerance*range[1]. Note that values which are too small may cause problems on systems with low z-buffer resolution.

Definition at line 1104 of file vtkRenderer.h.

◆ ClippingRangeExpansion

double vtkRenderer::ClippingRangeExpansion
protected

Specify enlargement of bounds when resetting the camera clipping range.

Definition at line 1110 of file vtkRenderer.h.

◆ Erase

vtkTypeBool vtkRenderer::Erase
protected

When this flag is off, the renderer will not erase the background or the Zbuffer.

It is used to have overlapping renderers. Both the RenderWindow Erase and Render Erase must be on for the camera to clear the renderer. By default, Erase is on.

Definition at line 1118 of file vtkRenderer.h.

◆ Draw

vtkTypeBool vtkRenderer::Draw
protected

When this flag is off, render commands are ignored.

It is used to either multiplex a vtkRenderWindow or render only part of a vtkRenderWindow. By default, Draw is on.

Definition at line 1125 of file vtkRenderer.h.

◆ GL2PSSpecialPropCollection

vtkPropCollection* vtkRenderer::GL2PSSpecialPropCollection
protected

Temporary collection used by vtkRenderWindow::CaptureGL2PSSpecialProps.

Definition at line 1130 of file vtkRenderer.h.

◆ UseFXAA

bool vtkRenderer::UseFXAA
protected

If this flag is on and the rendering engine supports it, FXAA will be used to antialias the scene.

Default is off.

Definition at line 1203 of file vtkRenderer.h.

◆ FXAAOptions

vtkFXAAOptions* vtkRenderer::FXAAOptions
protected

Holds the FXAA configuration.

Definition at line 1208 of file vtkRenderer.h.

◆ UseShadows

vtkTypeBool vtkRenderer::UseShadows
protected

If this flag is on and the rendering engine supports it render shadows Initial value is off.

Definition at line 1214 of file vtkRenderer.h.

◆ UseHiddenLineRemoval

vtkTypeBool vtkRenderer::UseHiddenLineRemoval
protected

When this flag is on and the rendering engine supports it, wireframe polydata will be rendered using hidden line removal.

Definition at line 1220 of file vtkRenderer.h.

◆ UseDepthPeeling

vtkTypeBool vtkRenderer::UseDepthPeeling
protected

If this flag is on and the GPU supports it, depth peeling is used for rendering translucent materials.

If this flag is off, alpha blending is used. Initial value is off.

Definition at line 1228 of file vtkRenderer.h.

◆ UseDepthPeelingForVolumes

bool vtkRenderer::UseDepthPeelingForVolumes
protected

This flag is on and the GPU supports it, depth-peel volumes along with the translucent geometry.

Default is false;

Definition at line 1234 of file vtkRenderer.h.

◆ OcclusionRatio

double vtkRenderer::OcclusionRatio
protected

In case of use of depth peeling technique for rendering translucent material, define the threshold under which the algorithm stops to iterate over peel layers.

This is the ratio of the number of pixels that have been touched by the last layer over the total number of pixels of the viewport area. Initial value is 0.0, meaning rendering have to be exact. Greater values may speed-up the rendering with small impact on the quality.

Definition at line 1245 of file vtkRenderer.h.

◆ MaximumNumberOfPeels

int vtkRenderer::MaximumNumberOfPeels
protected

In case of depth peeling, define the maximum number of peeling layers.

Initial value is 4. A special value of 0 means no maximum limit. It has to be a positive value.

Definition at line 1252 of file vtkRenderer.h.

◆ UseSSAO

bool vtkRenderer::UseSSAO = false
protected

Definition at line 1254 of file vtkRenderer.h.

◆ SSAORadius

double vtkRenderer::SSAORadius = 0.5
protected

Definition at line 1255 of file vtkRenderer.h.

◆ SSAOBias

double vtkRenderer::SSAOBias = 0.01
protected

Definition at line 1256 of file vtkRenderer.h.

◆ SSAOKernelSize

unsigned int vtkRenderer::SSAOKernelSize = 32
protected

Definition at line 1257 of file vtkRenderer.h.

◆ SSAOBlur

bool vtkRenderer::SSAOBlur = false
protected

Definition at line 1258 of file vtkRenderer.h.

◆ LastRenderingUsedDepthPeeling

vtkTypeBool vtkRenderer::LastRenderingUsedDepthPeeling
protected

Tells if the last call to DeviceRenderTranslucentPolygonalGeometry() actually used depth peeling.

Initial value is false.

Definition at line 1265 of file vtkRenderer.h.

◆ Selector

vtkHardwareSelector* vtkRenderer::Selector
protected

Definition at line 1280 of file vtkRenderer.h.

◆ Delegate

vtkRendererDelegate* vtkRenderer::Delegate
protected

Definition at line 1284 of file vtkRenderer.h.

◆ TexturedBackground

bool vtkRenderer::TexturedBackground
protected

Definition at line 1286 of file vtkRenderer.h.

◆ BackgroundTexture

vtkTexture* vtkRenderer::BackgroundTexture
protected

Definition at line 1287 of file vtkRenderer.h.

◆ RightBackgroundTexture

vtkTexture* vtkRenderer::RightBackgroundTexture
protected

Definition at line 1288 of file vtkRenderer.h.

◆ Pass

vtkRenderPass* vtkRenderer::Pass
protected

Definition at line 1291 of file vtkRenderer.h.

◆ Information

vtkInformation* vtkRenderer::Information
protected

Definition at line 1294 of file vtkRenderer.h.

◆ UseImageBasedLighting

bool vtkRenderer::UseImageBasedLighting
protected

Definition at line 1296 of file vtkRenderer.h.

◆ EnvironmentTexture

vtkTexture* vtkRenderer::EnvironmentTexture
protected

Definition at line 1297 of file vtkRenderer.h.

◆ EnvironmentUp

double vtkRenderer::EnvironmentUp[3]
protected

Definition at line 1299 of file vtkRenderer.h.

◆ EnvironmentRight

double vtkRenderer::EnvironmentRight[3]
protected

Definition at line 1300 of file vtkRenderer.h.


The documentation for this class was generated from the following file: