pyvista.Renderer#
- class Renderer(parent, border=True, border_color='w', border_width=2.0)[source]#
Renderer class.
Methods
Renderer.add_actor
(uinput[, reset_camera, ...])Add an actor to render window.
Renderer.add_axes
([interactive, line_width, ...])Add an interactive axes widget in the bottom left corner.
Renderer.add_axes_at_origin
([x_color, ...])Add axes actor at origin.
Renderer.add_border
([color, width])Add borders around the frame.
Renderer.add_bounding_box
([color, ...])Add an unlabeled and unticked box at the boundaries of plot.
Renderer.add_chart
(chart, *charts)Add a chart to this renderer.
Renderer.add_floor
([face, i_resolution, ...])Show a floor mesh.
Renderer.add_legend
([labels, bcolor, ...])Add a legend to render window.
Renderer.add_light
(light)Add a light to the renderer.
Renderer.add_orientation_widget
(actor[, ...])Use the given actor in an orientation marker widget.
Remove all actors and properties.
Close out widgets and sensitive elements.
Renderer.deep_clean
([render])Clean the renderer of the memory.
Disable this renderer's camera from being interactive.
Disable anti-aliasing.
Disable depth peeling.
Disable eye dome lighting (EDL).
Disable hidden line removal.
Reset the camera to use perspective projection.
Disable shadows.
Enable this renderer's camera to be interactive.
Enable anti-aliasing using FXAA.
Enable depth peeling to improve rendering of translucent geometry.
Enable eye dome lighting (EDL).
Enable hidden line removal.
Enable parallel projection.
Enable shadows.
Renderer.get_default_cam_pos
([negative])Return the default focal points and viewup.
Get the pick position/area as
x0, y0, x1, y1
.Hide the axes orientation widget.
Reset the camera to a default isometric view.
Renderer.remove_actor
(actor[, reset_camera, ...])Remove an actor from the Renderer.
Remove all lights from the renderer.
Renderer.remove_bounding_box
([render])Remove bounding box.
Remove bounds axes.
Renderer.remove_chart
(chart_or_index)Remove a chart from this renderer.
Renderer.remove_floors
([clear_kwargs, render])Remove all floor actors.
Renderer.remove_legend
([render])Remove the legend actor.
Renderer.reset_camera
([render, bounds])Reset the camera of the active render window.
Reset the camera clipping range based on the bounds of the visible actors.
Renderer.set_background
(color[, top])Set the background color of this renderer.
Renderer.set_environment_texture
(texture)Set the environment texture used for image based lighting.
Renderer.set_focus
(point)Set focus to a point.
Renderer.set_position
(point[, reset])Set camera position to a point.
Renderer.set_scale
([xscale, yscale, zscale, ...])Scale all the datasets in the scene.
Renderer.set_viewup
(vector)Set camera viewup vector.
Show the axes orientation widget.
Renderer.show_bounds
([mesh, bounds, ...])Add bounds axes.
Renderer.show_grid
(**kwargs)Show gridlines and axes labels.
Update the bounds axes of the render window.
Renderer.view_isometric
([negative])Reset the camera to a default isometric view.
Renderer.view_vector
(vector[, viewup])Point the camera in the direction of the given vector.
Renderer.view_xy
([negative])View the XY plane.
Renderer.view_xz
([negative])View the XZ plane.
Renderer.view_yx
([negative])View the YX plane.
Renderer.view_yz
([negative])View the YZ plane.
Renderer.view_zx
([negative])View the ZX plane.
Renderer.view_zy
([negative])View the ZY plane.
Attributes
Return a dictionary of actors assigned to this renderer.
Return
True
when axes are enabled.Return the background color of this renderer.
Return the border color.
Return the border width.
Return the bounds of all actors present in the rendering window.
Return the active camera for the rendering scene.
Return camera position of active render window.
Return the center of the bounding box around all data present in the scene.
Return if the renderer has a border.
Height of the renderer.
Return or set the current layer of this renderer.
Legend actor.
Return the length of the diagonal of the bounding box of the scene.
Return a list of all lights in the renderer.
Return parallel projection state of active render window.
Return parallel scale of active render window.
Viewport of the renderer.
Width of the renderer.