class_docstr: Wrapper class for VTK volume.
  
  This class represents a volume in a rendered scene. It inherits
  functions related to the volume's position, orientation and origin
  from Prop3D.
class_docstr_tok: ["Wrapper","class","for","VTK","volume",".","This","class","represents","a","volume","in","a","rendered","scene",".","It","inherits","functions","related","to","the","volume","'s","position",",","orientation","and","origin","from","Prop3D","."]
docstr: Return or set the mapper of the volume.
  
  Examples
  --------
  Add a volume to a :class:`pyvista.Plotter` and get its mapper.
  
  >>> import pyvista as pv
  >>> vol = pv.ImageData(dimensions=(10, 10, 10))
  >>> vol['scalars'] = 255 - vol.z * 25
  >>> pl = pv.Plotter()
  >>> actor = pl.add_volume(vol)
  >>> actor.mapper.bounds
  (0.0, 9.0, 0.0, 9.0, 0.0, 9.0)
docstr_tok: ["Return","or","set","the","mapper","of","the","volume",".","Examples","--","--","--","--","Add","a","volume","to","a",":","class",":","`","pyvista.Plotter","`","and","get","its","mapper",".",">",">",">","import","pyvista","as","pv",">",">",">","vol","=","pv.ImageData","(","dimensions=","(","10",",","10",",","10",")",")",">",">",">","vol","[","'scalars","'","]","=","255","-","vol.z","*","25",">",">",">","pl","=","pv.Plotter","(",")",">",">",">","actor","=","pl.add_volume","(","vol",")",">",">",">","actor.mapper.bounds","(","0.0",",","9.0",",","0.0",",","9.0",",","0.0",",","9.0",")"]
code: def mapper(self) -> _BaseMapper:  # numpydoc ignore=RT01
      """Return or set the mapper of the volume.
  
      Examples
      --------
      Add a volume to a :class:`pyvista.Plotter` and get its mapper.
  
      >>> import pyvista as pv
      >>> vol = pv.ImageData(dimensions=(10, 10, 10))
      >>> vol['scalars'] = 255 - vol.z * 25
      >>> pl = pv.Plotter()
      >>> actor = pl.add_volume(vol)
      >>> actor.mapper.bounds
      (0.0, 9.0, 0.0, 9.0, 0.0, 9.0)
      """
      return self.GetMapper()
  
file_path: pyvista/pyvista/plotting/volume.py
imports: from .None import _vtk
  from ._property import Property
  from .mapper import _BaseMapper
  from .prop3d import Prop3D
label_desc: Use image node_id 2 for calling the Volume obj's underlying member method code with example usage: obj.mapper() and returns: self