Rumba C++ SDK
maquina::CameraContext Class Reference

This class provides viewport space conversion services. More...

#include <CameraContext.h>

Classes

class  SceneGraphs
 

Public Member Functions

const Imath::M44dcamera_to_world () const
 Return the camera to world matrix of the event's viewport. More...
 
const Imath::M44dprojection () const
 Return the camera projection. More...
 
Imath::V2i resolution () const
 Return the viewport resolution. More...
 
Imath::V3d pixel_to_world (const Imath::V2i &screen_pos, double depth) const
 Convert viewport pixel coordinates and depth in world space position. More...
 
Imath::V3d world_to_pixel (const Imath::V3d &world_pos) const
 Convert world space position in viewport pixel coordinates and depth. More...
 
float near_plane () const
 
float far_plane () const
 
const SceneGraphs visible_scene_graphs () const
 

Detailed Description

This class provides viewport space conversion services.

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

Member Function Documentation

◆ camera_to_world()

const Imath::M44d& maquina::CameraContext::camera_to_world ( ) const

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

◆ far_plane()

float maquina::CameraContext::far_plane ( ) const

◆ near_plane()

float maquina::CameraContext::near_plane ( ) const

◆ pixel_to_world()

Imath::V3d maquina::CameraContext::pixel_to_world ( const Imath::V2i screen_pos,
double  depth 
) const

Convert viewport pixel coordinates and depth in world space position.

◆ projection()

const Imath::M44d& maquina::CameraContext::projection ( ) const

Return the camera projection.

◆ resolution()

Imath::V2i maquina::CameraContext::resolution ( ) const

Return the viewport resolution.

◆ visible_scene_graphs()

const SceneGraphs maquina::CameraContext::visible_scene_graphs ( ) const

◆ world_to_pixel()

Imath::V3d maquina::CameraContext::world_to_pixel ( const Imath::V3d world_pos) const

Convert world space position in viewport pixel coordinates and depth.


The documentation for this class was generated from the following file: