Skip to content

Class robot_dart::gui::magnum::GlfwApplication

ClassList > robot_dart > gui > magnum > GlfwApplication

Inherits the following classes: robot_dart::gui::magnum::BaseApplication, Magnum::Platform::Application

Public Functions

Type Name
GlfwApplication (int argc, char ** argv, RobotDARTSimu * simu, const GraphicsConfiguration & configuration=GraphicsConfiguration())
virtual void render () override
~GlfwApplication ()

Public Functions inherited from robot_dart::gui::magnum::BaseApplication

See robot_dart::gui::magnum::BaseApplication

Type Name
BaseApplication (const GraphicsConfiguration & configuration=GraphicsConfiguration())
void add_light (const gs::Light & light)
bool attach_camera (gs::Camera & camera, dart::dynamics::BodyNode * body)
gs::Camera & camera ()
const gs::Camera & camera () const
void clear_lights ()
DebugDrawData debug_draw_data ()
DepthImage depth_array ()
GrayscaleImage depth_image ()
bool done () const
Magnum::SceneGraph::DrawableGroup3D & drawables ()
void enable_shadows (bool enable=true, bool drawTransparentShadows=false)
Corrade::Containers::Optional< Magnum::Image2D > & image ()
void init (RobotDARTSimu * simu, const GraphicsConfiguration & configuration)
gs::Light & light (size_t i)
std::vector< gs::Light > & lights ()
void look_at (const Eigen::Vector3d & camera_pos, const Eigen::Vector3d & look_at, const Eigen::Vector3d & up)
size_t num_lights () const
GrayscaleImage raw_depth_image ()
void record_video (const std::string & video_fname, int fps)
virtual void render ()
void render_shadows ()
Scene3D & scene ()
bool shadowed () const
bool transparent_shadows () const
void update_graphics ()
void update_lights (const gs::Camera & camera)
virtual ~BaseApplication ()

Protected Attributes

Type Name
Magnum::Color4 _bg_color
bool _draw_debug
bool _draw_main_camera
RobotDARTSimu * _simu
Magnum::Float _speed_move
Magnum::Float _speed_strafe

Protected Attributes inherited from robot_dart::gui::magnum::BaseApplication

See robot_dart::gui::magnum::BaseApplication

Type Name
std::unique_ptr< Magnum::GL::Mesh > _3D_axis_mesh
std::unique_ptr< Magnum::Shaders::VertexColorGL3D > _3D_axis_shader
std::unique_ptr< Magnum::GL::Mesh > _background_mesh
std::unique_ptr< Magnum::Shaders::FlatGL2D > _background_shader
std::unique_ptr< gs::Camera > _camera
std::unique_ptr< gs::PhongMultiLight > _color_shader
GraphicsConfiguration _configuration
Magnum::SceneGraph::DrawableGroup3D _cubemap_color_drawables
std::unique_ptr< gs::CubeMapColor > _cubemap_color_shader
Magnum::SceneGraph::DrawableGroup3D _cubemap_drawables
std::unique_ptr< gs::CubeMap > _cubemap_shader
std::unique_ptr< gs::CubeMapColor > _cubemap_texture_color_shader
std::unique_ptr< gs::CubeMap > _cubemap_texture_shader
std::unique_ptr< Magnum::DartIntegration::World > _dart_world
bool _done = = false
std::unordered_map< Magnum::DartIntegration::Object *, ObjectStruct * > _drawable_objects
Magnum::SceneGraph::DrawableGroup3D _drawables
Corrade::Containers::Pointer< Magnum::Text::AbstractFont > _font
Corrade::PluginManager::Manager< Magnum::Text::AbstractFont > _font_manager
Corrade::Containers::Pointer< Magnum::Text::DistanceFieldGlyphCache > _glyph_cache
Corrade::PluginManager::Manager< Magnum::Trade::AbstractImporter > _importer_manager
std::vector< gs::Light > _lights
int _max_lights = = 5
Scene3D _scene
std::unique_ptr< Camera3D > _shadow_camera
Object3D * _shadow_camera_object
std::unique_ptr< Magnum::GL::CubeMapTextureArray > _shadow_color_cube_map
std::unique_ptr< gs::ShadowMapColor > _shadow_color_shader
std::unique_ptr< Magnum::GL::Texture2DArray > _shadow_color_texture
std::unique_ptr< Magnum::GL::CubeMapTextureArray > _shadow_cube_map
std::vector< ShadowData > _shadow_data
int _shadow_map_size = = 512
std::unique_ptr< gs::ShadowMap > _shadow_shader
std::unique_ptr< Magnum::GL::Texture2DArray > _shadow_texture
std::unique_ptr< gs::ShadowMapColor > _shadow_texture_color_shader
std::unique_ptr< gs::ShadowMap > _shadow_texture_shader
bool _shadowed = = true
Magnum::SceneGraph::DrawableGroup3D _shadowed_color_drawables
Magnum::SceneGraph::DrawableGroup3D _shadowed_drawables
RobotDARTSimu * _simu
Corrade::Containers::Pointer< Magnum::GL::Buffer > _text_indices
std::unique_ptr< Magnum::Shaders::DistanceFieldVectorGL2D > _text_shader
Corrade::Containers::Pointer< Magnum::GL::Buffer > _text_vertices
std::unique_ptr< gs::PhongMultiLight > _texture_shader
int _transparentSize = = 0
bool _transparent_shadows = = false

Protected Static Attributes

Type Name
Magnum::Float _speed = = 0.05f

Protected Functions

Type Name
void drawEvent () override
void exitEvent (ExitEvent & event) override
virtual void keyPressEvent (KeyEvent & event) override
virtual void keyReleaseEvent (KeyEvent & event) override
virtual void mouseMoveEvent (MouseMoveEvent & event) override
virtual void mouseScrollEvent (MouseScrollEvent & event) override
void viewportEvent (ViewportEvent & event) override

Protected Functions inherited from robot_dart::gui::magnum::BaseApplication

See robot_dart::gui::magnum::BaseApplication

Type Name
void _gl_clean_up ()
void _prepare_shadows ()

Public Functions Documentation

function GlfwApplication

explicit robot_dart::gui::magnum::GlfwApplication::GlfwApplication (
    int argc,
    char ** argv,
    RobotDARTSimu * simu,
    const GraphicsConfiguration & configuration=GraphicsConfiguration ()
) 

function render

virtual void robot_dart::gui::magnum::GlfwApplication::render () override

Implements robot_dart::gui::magnum::BaseApplication::render


function ~GlfwApplication

robot_dart::gui::magnum::GlfwApplication::~GlfwApplication () 

Protected Attributes Documentation

variable _bg_color

Magnum::Color4 robot_dart::gui::magnum::GlfwApplication::_bg_color;

variable _draw_debug

bool robot_dart::gui::magnum::GlfwApplication::_draw_debug;

variable _draw_main_camera

bool robot_dart::gui::magnum::GlfwApplication::_draw_main_camera;

variable _simu

RobotDARTSimu* robot_dart::gui::magnum::GlfwApplication::_simu;

variable _speed_move

Magnum::Float robot_dart::gui::magnum::GlfwApplication::_speed_move;

variable _speed_strafe

Magnum::Float robot_dart::gui::magnum::GlfwApplication::_speed_strafe;

Protected Static Attributes Documentation

variable _speed

Magnum::Float robot_dart::gui::magnum::GlfwApplication::_speed;

Protected Functions Documentation

function drawEvent

void robot_dart::gui::magnum::GlfwApplication::drawEvent () override

function exitEvent

void robot_dart::gui::magnum::GlfwApplication::exitEvent (
    ExitEvent & event
) override

function keyPressEvent

virtual void robot_dart::gui::magnum::GlfwApplication::keyPressEvent (
    KeyEvent & event
) override

function keyReleaseEvent

virtual void robot_dart::gui::magnum::GlfwApplication::keyReleaseEvent (
    KeyEvent & event
) override

function mouseMoveEvent

virtual void robot_dart::gui::magnum::GlfwApplication::mouseMoveEvent (
    MouseMoveEvent & event
) override

function mouseScrollEvent

virtual void robot_dart::gui::magnum::GlfwApplication::mouseScrollEvent (
    MouseScrollEvent & event
) override

function viewportEvent

void robot_dart::gui::magnum::GlfwApplication::viewportEvent (
    ViewportEvent & event
) override


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