CameraContext

Inheritance diagram of rumba.CameraContext
class CameraContext

This class provides viewport space conversion services.

This interface is passed to the viewport events and is implemented by the application.

Methods

camera_to_world()

Return the camera to world matrix of the event's viewport.

pixel_to_world(screen_pos, depth)

Convert viewport pixel coordinates and depth in world space position.

projection()

Return the camera projection.

resolution()

Return the viewport resolution.

world_to_pixel(world_pos)

Convert world space position in viewport pixel coordinates and depth.

__init__(*args, **kwargs)
camera_to_world() Imath.M44d

Return the camera to world matrix of the event’s viewport.

Return type

Imath.M44d

pixel_to_world(screen_pos: Imath.V2i, depth: double) Imath.V3d

Convert viewport pixel coordinates and depth in world space position.

Return type

Imath.V3d

projection() Imath.M44d

Return the camera projection.

Return type

Imath.M44d

resolution() Imath.V2i

Return the viewport resolution.

Return type

Imath.V2i

world_to_pixel(world_pos: Imath.V3d) Imath.V3d

Convert world space position in viewport pixel coordinates and depth.

Return type

Imath.V3d