vapor.camera module#

class vapor.camera.Camera(ce)#

Bases: object

AlignView(axis: str)#

Align camera looking down an axis Axis format: [+-][XYZ]

GetDirection()#
GetPosition()#
GetTarget()#
GetUp()#
LookAt(camera_position: tuple[float, float, float], target: tuple[float, float, float], up: tuple[float, float, float] = (0, 0, 1))#

Moves the camera to camera_position facing target. up can be used to adjust the camera roll.

SetDirection(v: tuple[float, float, float])#
SetPosition(v: tuple[float, float, float])#
SetTarget(v: tuple[float, float, float])#
SetUp(v: tuple[float, float, float])#
TrackMovingDomain(on=True)#

Camera should follows the moving domain

TrackMovingDomainRenderRegions(on=True)#

Renderer regions will be tracked relative to the moving domain

ViewAll()#

Places the camera above the dataset looking down so that it is visible in its entirety. This is the default view when opening a new dataset.

Zoom(fractionOfDistanceToTarget: float)#

Moves the camera a fractionOfDistanceToTarget with positive zooming in and negative zooming out.