plopp.graphics.Camera#
- class plopp.graphics.Camera(position=None, look_at=None, near=None, far=None)[source]#
Camera configuration for three-dimensional plots. If values are provided as raw numbers instead of Scipp variables, their unit will be assumed to be the same as the unit of the spatial coordinates.
- Parameters:
position (
Variable|Sequence[Variable] |Sequence[float] |None, default:None) – The position of the camera, as ascipp.vector()or a list of 3 numbers.look_at (
Variable|Sequence[Variable] |Sequence[float] |None, default:None) – The point the camera is looking at, as ascipp.vector()or a list of 3 numbers.near (
Variable|float|None, default:None) – The distance to the near clipping plane (how close to the camera objects can be before they disappear), as ascipp.scalar()or a single number.far (
Variable|float|None, default:None) – The distance to the far clipping plane (how far from the camera objects can be before they disappear), as ascipp.scalar()or a single number.
Methods
__init__([position, look_at, near, far])get(key[, default])Attribute getter.
has_units()Check if units have been set.
set_units(xunit, yunit, zunit)Set the units of the camera attributes.
Attributes
farThe distance to the far clipping plane (how far from the camera objects can be before they disappear).
look_atThe point the camera is looking at.
nearThe distance to the near clipping plane (how close to the camera objects can be before they disappear).
positionThe position of the camera.