Skip to content

Class robot_dart::gui::magnum::BaseGraphics

template <typename T>

ClassList > robot_dart > gui > magnum > BaseGraphics

Inherits the following classes: robot_dart::gui::Base

Public Functions

Type Name
BaseGraphics (const GraphicsConfiguration & configuration=GraphicsConfiguration())
void add_light (const magnum:🇬🇸:Light & light)
gs::Camera & camera ()
const gs::Camera & camera () const
Eigen::Matrix4d camera_extrinsic_matrix () const
Eigen::Matrix3d camera_intrinsic_matrix () const
void clear_lights ()
virtual DepthImage depth_array () override
virtual GrayscaleImage depth_image () override
virtual bool done () override const
void enable_shadows (bool enable=true, bool transparent=true)
virtual size_t height () override const
virtual Image image () override
magnum:🇬🇸:Light & light (size_t i)
std::vector< gs::Light > & lights ()
void look_at (const Eigen::Vector3d & camera_pos, const Eigen::Vector3d & look_at=Eigen::Vector3d(0, 0, 0), const Eigen::Vector3d & up=Eigen::Vector3d(0, 0, 1))
BaseApplication * magnum_app ()
const BaseApplication * magnum_app () const
Magnum::Image2D * magnum_image ()
size_t num_lights () const
virtual GrayscaleImage raw_depth_image () override
void record_video (const std::string & video_fname, int fps=-1)
virtual void refresh () override
virtual void set_enable (bool enable) override
virtual void set_fps (int fps) override
virtual void set_simu (RobotDARTSimu * simu) override
bool shadowed () const
bool transparent_shadows () const
virtual size_t width () override const
virtual ~BaseGraphics ()

Public Functions inherited from robot_dart::gui::Base

See robot_dart::gui::Base

Type Name
Base ()
virtual DepthImage depth_array ()
virtual GrayscaleImage depth_image ()
virtual bool done () const
virtual size_t height () const
virtual Image image ()
virtual GrayscaleImage raw_depth_image ()
virtual void refresh ()
virtual void set_enable (bool)
virtual void set_fps (int)
virtual void set_render_period (double)
virtual void set_simu (RobotDARTSimu * simu)
const RobotDARTSimu * simu () const
virtual size_t width () const
virtual ~Base ()

Protected Attributes

Type Name
GraphicsConfiguration _configuration
bool _enabled
int _fps
std::unique_ptr< BaseApplication > _magnum_app
Corrade::Utility::Debug _magnum_silence_output = {nullptr}

Protected Attributes inherited from robot_dart::gui::Base

See robot_dart::gui::Base

Type Name
RobotDARTSimu * _simu = = nullptr

Public Functions Documentation

function BaseGraphics

inline robot_dart::gui::magnum::BaseGraphics::BaseGraphics (
    const GraphicsConfiguration & configuration=GraphicsConfiguration ()
) 

function add_light

inline void robot_dart::gui::magnum::BaseGraphics::add_light (
    const magnum::gs::Light & light
) 

function camera [½]

inline gs::Camera & robot_dart::gui::magnum::BaseGraphics::camera () 

function camera [2/2]

inline const gs::Camera & robot_dart::gui::magnum::BaseGraphics::camera () const

function camera_extrinsic_matrix

inline Eigen::Matrix4d robot_dart::gui::magnum::BaseGraphics::camera_extrinsic_matrix () const

function camera_intrinsic_matrix

inline Eigen::Matrix3d robot_dart::gui::magnum::BaseGraphics::camera_intrinsic_matrix () const

function clear_lights

inline void robot_dart::gui::magnum::BaseGraphics::clear_lights () 

function depth_array

inline virtual DepthImage robot_dart::gui::magnum::BaseGraphics::depth_array () override

Implements robot_dart::gui::Base::depth_array


function depth_image

inline virtual GrayscaleImage robot_dart::gui::magnum::BaseGraphics::depth_image () override

Implements robot_dart::gui::Base::depth_image


function done

inline virtual bool robot_dart::gui::magnum::BaseGraphics::done () override const

Implements robot_dart::gui::Base::done


function enable_shadows

inline void robot_dart::gui::magnum::BaseGraphics::enable_shadows (
    bool enable=true,
    bool transparent=true
) 

function height

inline virtual size_t robot_dart::gui::magnum::BaseGraphics::height () override const

Implements robot_dart::gui::Base::height


function image

inline virtual Image robot_dart::gui::magnum::BaseGraphics::image () override

Implements robot_dart::gui::Base::image


function light

inline magnum::gs::Light & robot_dart::gui::magnum::BaseGraphics::light (
    size_t i
) 

function lights

inline std::vector< gs::Light > & robot_dart::gui::magnum::BaseGraphics::lights () 

function look_at

inline void robot_dart::gui::magnum::BaseGraphics::look_at (
    const Eigen::Vector3d & camera_pos,
    const Eigen::Vector3d & look_at=Eigen::Vector3d(0, 0, 0),
    const Eigen::Vector3d & up=Eigen::Vector3d(0, 0, 1)
) 

function magnum_app [½]

inline BaseApplication * robot_dart::gui::magnum::BaseGraphics::magnum_app () 

function magnum_app [2/2]

inline const BaseApplication * robot_dart::gui::magnum::BaseGraphics::magnum_app () const

function magnum_image

inline Magnum::Image2D * robot_dart::gui::magnum::BaseGraphics::magnum_image () 

function num_lights

inline size_t robot_dart::gui::magnum::BaseGraphics::num_lights () const

function raw_depth_image

inline virtual GrayscaleImage robot_dart::gui::magnum::BaseGraphics::raw_depth_image () override

Implements robot_dart::gui::Base::raw_depth_image


function record_video

inline void robot_dart::gui::magnum::BaseGraphics::record_video (
    const std::string & video_fname,
    int fps=-1
) 

function refresh

inline virtual void robot_dart::gui::magnum::BaseGraphics::refresh () override

Implements robot_dart::gui::Base::refresh


function set_enable

inline virtual void robot_dart::gui::magnum::BaseGraphics::set_enable (
    bool enable
) override

Implements robot_dart::gui::Base::set_enable


function set_fps

inline virtual void robot_dart::gui::magnum::BaseGraphics::set_fps (
    int fps
) override

Implements robot_dart::gui::Base::set_fps


function set_simu

inline virtual void robot_dart::gui::magnum::BaseGraphics::set_simu (
    RobotDARTSimu * simu
) override

Implements robot_dart::gui::Base::set_simu


function shadowed

inline bool robot_dart::gui::magnum::BaseGraphics::shadowed () const

function transparent_shadows

inline bool robot_dart::gui::magnum::BaseGraphics::transparent_shadows () const

function width

inline virtual size_t robot_dart::gui::magnum::BaseGraphics::width () override const

Implements robot_dart::gui::Base::width


function ~BaseGraphics

inline virtual robot_dart::gui::magnum::BaseGraphics::~BaseGraphics () 

Protected Attributes Documentation

variable _configuration

GraphicsConfiguration robot_dart::gui::magnum::BaseGraphics< T >::_configuration;

variable _enabled

bool robot_dart::gui::magnum::BaseGraphics< T >::_enabled;

variable _fps

int robot_dart::gui::magnum::BaseGraphics< T >::_fps;

variable _magnum_app

std::unique_ptr<BaseApplication> robot_dart::gui::magnum::BaseGraphics< T >::_magnum_app;

variable _magnum_silence_output

Corrade::Utility::Debug robot_dart::gui::magnum::BaseGraphics< T >::_magnum_silence_output;


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