Plotter.add_actor#
- Plotter.add_actor(
- actor: vtkProp | vtkMapper,
- *,
- reset_camera: bool | None = False,
- name: str | None = None,
- culling: str | bool = False,
- pickable: bool = True,
- render: bool = True,
- remove_existing_actor: bool = True,
Add an actor to render window.
Creates an actor if input is a mapper.
- Parameters:
- actorvtkProp | vtkMapper |
Actor The actor to be added. Can be any prop, or a mapper to wrap into an actor.
- reset_camerabool,
optional Resets the camera when
True. WhenNone, the camera is reset only if it has not been set and no existing actor was replaced.- name
str,optional Name to assign to the actor. Defaults to the memory address.
- culling
str| bool, default:False Does not render faces that are culled. This can be helpful for dense surface meshes, especially when edges are visible, but can cause flat meshes to be partially displayed. One of the following:
True,'b','back','backface'- Enable backface culling'f','front','frontface'- Enable frontface cullingFalse,'none'- Leave culling as the actor already has it
- pickablebool, default:
True Whether to allow this actor to be pickable within the render window.
- renderbool, default:
True If the render window is being shown, trigger a render after adding the actor.
- remove_existing_actorbool, default:
True Removes any existing actor if the named actor
nameis already present.
- actorvtkProp | vtkMapper |
- Returns:
- actorvtkProp
The actor.
- actor_propertiesvtkProperty | vtkVolumeProperty
The property of the actor, or
Noneif it has none.
Used In#
API Examples
Actor.copy(1 use)AxesActor(1 use)AxesAssembly(1 use)AxesAssemblySymmetric(1 use)AxesGeometrySource.symmetric_bounds(1 use)16 more
CubeAxesActor(1 use)DataSetFilters.align_xyz(1 use)DataSetFilters.bounding_box(1 use)DataSetFilters.oriented_bounding_box(1 use)Follower(1 use)ImageDataFilters.pad_image(1 use)Label(1 use)PlanesAssembly(1 use)PlanesAssembly.label_edge(1 use)PlanesAssembly.label_position(1 use)create_axes_marker(1 use)create_axes_orientation_box(1 use)download_cubemap_park(1 use)download_cubemap_space_16k(1 use)download_cubemap_space_4k(1 use)download_sky_box_cube_map(1 use)
Gallery Examples