|
Rumba C++ SDK
|
This class provides viewport space conversion services. More...
#include <CameraContext.h>
Classes | |
| class | SceneGraphs |
Public Member Functions | |
| const Imath::M44d & | camera_to_world () const |
| Return the camera to world matrix of the event's viewport. More... | |
| const Imath::M44d & | projection () 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 |
This class provides viewport space conversion services.
This interface is passed to the viewport events and is implemented by the application.
| const Imath::M44d& maquina::CameraContext::camera_to_world | ( | ) | const |
Return the camera to world matrix of the event's viewport.
| float maquina::CameraContext::far_plane | ( | ) | const |
| float maquina::CameraContext::near_plane | ( | ) | const |
| 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.
| const Imath::M44d& maquina::CameraContext::projection | ( | ) | const |
Return the camera projection.
| Imath::V2i maquina::CameraContext::resolution | ( | ) | const |
Return the viewport resolution.
| const SceneGraphs maquina::CameraContext::visible_scene_graphs | ( | ) | const |
| Imath::V3d maquina::CameraContext::world_to_pixel | ( | const Imath::V3d & | world_pos | ) | const |
Convert world space position in viewport pixel coordinates and depth.