_BaseDataSetMapper#
- class _BaseDataSetMapper(*args, **kwargs)[source]#
Base wrapper for vtkDataSetMapper.
- Parameters:
- dataset
pyvista.DataSet,optional Dataset to assign to this mapper.
- theme
pyvista.plotting.themes.Theme,optional Plot-specific theme.
- dataset
Notes#
Auto scalar-range state machine. The private attribute
_use_default_scalar_range tracks whether the scalar range is
still derived from the mapped array (True) or has been pinned by
the caller (False). It starts True. Setting scalar_range
directly, or calling set_scalars() with an explicit clim,
flips it to False via _set_scalar_range. While True,
the range auto-refreshes from the mapped array in
_maybe_set_default_scalar_range, which is called from
set_active_scalars() and the dataset setter. Once
False, auto-refresh is suppressed so user-supplied clim
values are preserved.
Attributes#
Return or set the array name or number and component to color by. |
|
Colormap assigned to this mapper. |
|
Return or set the dataset assigned to this mapper. |
|
Set or return the global flag to avoid z-buffer resolution. |
|
Return or set the scalar range. |
Inherited Attributes#
Return the bounds of this mapper. |
|
Return the size of each axis of the object’s bounding box. |
|
Return the center of mapper. |
|
Return or set the color mode. |
|
Return or set the interpolation of scalars before mapping. |
|
Return or set the lookup table. |
|
Return or set the scalar map mode. |
|
Return or set the scalar visibility. |
|
Return or set whether the mapper treats its input as static. |
Methods#
Convert the active scalars to RGBA. |
|
Detach the active scalars algorithm, if any. |
|
Create a copy of this mapper. |
|
Set the active scalars for this mapper without mutating its dataset. |
|
|
Set custom opacity. |
|
Set the scalars on this mapper. |
Inherited Methods#
Update this mapper. |