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 (
Union
[Variable
,Sequence
[Variable
],Sequence
[float
],None
], default:None
) – The position of the camera, as ascipp.vector()
or a list of 3 numbers.look_at (
Union
[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 (
Union
[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 (
Union
[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
far
The distance to the far clipping plane (how far from the camera objects can be before they disappear).
look_at
The point the camera is looking at.
near
The distance to the near clipping plane (how close to the camera objects can be before they disappear).
position
The position of the camera.