Skip to content

Class robot_dart::gui::magnum:🇬🇸:Camera

ClassList > robot_dart > gui > magnum > gs > Camera

Inherits the following classes: Object3D

Public Functions

Type Name
Camera (Object3D & object, Magnum::Int width, Magnum::Int height)
Camera3D & camera () const
Object3D & camera_object () const
Corrade::Containers::Optional< Magnum::Image2D > & depth_image ()
void draw (Magnum::SceneGraph::DrawableGroup3D & drawables, Magnum::GL::AbstractFramebuffer & framebuffer, Magnum::PixelFormat format, RobotDARTSimu * simu, const DebugDrawData & debug_data, bool draw_debug=true)
Magnum::Matrix4 extrinsic_matrix () const
Magnum::Float far_plane () const
Camera & forward (Magnum::Float speed)
Magnum::Float fov () const
Magnum::Int height () const
Corrade::Containers::Optional< Magnum::Image2D > & image ()
Magnum::Matrix3 intrinsic_matrix () const
Camera & look_at (const Magnum::Vector3 & camera, const Magnum::Vector3 & center, const Magnum::Vector3 & up=Magnum::Vector3::zAxis())
Camera & move (const Magnum::Vector2i & shift)
Magnum::Float near_plane () const
void record (bool recording, bool recording_depth=false)
void record_video (const std::string & video_fname, int fps)
bool recording ()
bool recording_depth ()
Object3D & root_object ()
Camera & set_camera_params (Magnum::Float near_plane, Magnum::Float far_plane, Magnum::Float fov, Magnum::Int width, Magnum::Int height)
Camera & set_far_plane (Magnum::Float far_plane)
Camera & set_fov (Magnum::Float fov)
Camera & set_near_plane (Magnum::Float near_plane)
Camera & set_speed (const Magnum::Vector2 & speed)
Camera & set_viewport (const Magnum::Vector2i & size)
Magnum::Vector2 speed () const
Camera & strafe (Magnum::Float speed)
void transform_lights (std::vector< gs::Light > & lights) const
Magnum::Int width () const
~Camera ()

Public Functions Documentation

function Camera

explicit robot_dart::gui::magnum::gs::Camera::Camera (
    Object3D & object,
    Magnum::Int width,
    Magnum::Int height
) 

function camera

Camera3D & robot_dart::gui::magnum::gs::Camera::camera () const

function camera_object

Object3D & robot_dart::gui::magnum::gs::Camera::camera_object () const

function depth_image

inline Corrade::Containers::Optional< Magnum::Image2D > & robot_dart::gui::magnum::gs::Camera::depth_image () 

function draw

void robot_dart::gui::magnum::gs::Camera::draw (
    Magnum::SceneGraph::DrawableGroup3D & drawables,
    Magnum::GL::AbstractFramebuffer & framebuffer,
    Magnum::PixelFormat format,
    RobotDARTSimu * simu,
    const DebugDrawData & debug_data,
    bool draw_debug=true
) 

function extrinsic_matrix

Magnum::Matrix4 robot_dart::gui::magnum::gs::Camera::extrinsic_matrix () const

function far_plane

inline Magnum::Float robot_dart::gui::magnum::gs::Camera::far_plane () const

function forward

Camera & robot_dart::gui::magnum::gs::Camera::forward (
    Magnum::Float speed
) 

function fov

inline Magnum::Float robot_dart::gui::magnum::gs::Camera::fov () const

function height

inline Magnum::Int robot_dart::gui::magnum::gs::Camera::height () const

function image

inline Corrade::Containers::Optional< Magnum::Image2D > & robot_dart::gui::magnum::gs::Camera::image () 

function intrinsic_matrix

Magnum::Matrix3 robot_dart::gui::magnum::gs::Camera::intrinsic_matrix () const

function look_at

Camera & robot_dart::gui::magnum::gs::Camera::look_at (
    const Magnum::Vector3 & camera,
    const Magnum::Vector3 & center,
    const Magnum::Vector3 & up=Magnum::Vector3::zAxis()
) 

function move

Camera & robot_dart::gui::magnum::gs::Camera::move (
    const Magnum::Vector2i & shift
) 

function near_plane

inline Magnum::Float robot_dart::gui::magnum::gs::Camera::near_plane () const

function record

inline void robot_dart::gui::magnum::gs::Camera::record (
    bool recording,
    bool recording_depth=false
) 

function record_video

void robot_dart::gui::magnum::gs::Camera::record_video (
    const std::string & video_fname,
    int fps
) 

function recording

inline bool robot_dart::gui::magnum::gs::Camera::recording () 

function recording_depth

inline bool robot_dart::gui::magnum::gs::Camera::recording_depth () 

function root_object

Object3D & robot_dart::gui::magnum::gs::Camera::root_object () 

function set_camera_params

Camera & robot_dart::gui::magnum::gs::Camera::set_camera_params (
    Magnum::Float near_plane,
    Magnum::Float far_plane,
    Magnum::Float fov,
    Magnum::Int width,
    Magnum::Int height
) 

function set_far_plane

Camera & robot_dart::gui::magnum::gs::Camera::set_far_plane (
    Magnum::Float far_plane
) 

function set_fov

Camera & robot_dart::gui::magnum::gs::Camera::set_fov (
    Magnum::Float fov
) 

function set_near_plane

Camera & robot_dart::gui::magnum::gs::Camera::set_near_plane (
    Magnum::Float near_plane
) 

function set_speed

Camera & robot_dart::gui::magnum::gs::Camera::set_speed (
    const Magnum::Vector2 & speed
) 

function set_viewport

Camera & robot_dart::gui::magnum::gs::Camera::set_viewport (
    const Magnum::Vector2i & size
) 

function speed

inline Magnum::Vector2 robot_dart::gui::magnum::gs::Camera::speed () const

function strafe

Camera & robot_dart::gui::magnum::gs::Camera::strafe (
    Magnum::Float speed
) 

function transform_lights

void robot_dart::gui::magnum::gs::Camera::transform_lights (
    std::vector< gs::Light > & lights
) const

function width

inline Magnum::Int robot_dart::gui::magnum::gs::Camera::width () const

function ~Camera

robot_dart::gui::magnum::gs::Camera::~Camera () 


The documentation for this class was generated from the following file robot_dart/gui/magnum/gs/camera.hpp