Skip to content

Class robot_dart::gui::magnum::WindowlessGLApplication

ClassList > robot_dart > gui > magnum > WindowlessGLApplication

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

Public Functions

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

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
Magnum::GL::Renderbuffer _color = {Magnum::NoCreate}
Magnum::GL::Renderbuffer _depth = {Magnum::NoCreate}
bool _draw_debug
bool _draw_main_camera
Magnum::PixelFormat _format
Magnum::GL::Framebuffer _framebuffer = {Magnum::NoCreate}
RobotDARTSimu * _simu

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 Functions

Type Name
virtual int exec () 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 WindowlessGLApplication

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

function render

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

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


function ~WindowlessGLApplication

robot_dart::gui::magnum::WindowlessGLApplication::~WindowlessGLApplication () 

Protected Attributes Documentation

variable _bg_color

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

variable _color

Magnum::GL::Renderbuffer robot_dart::gui::magnum::WindowlessGLApplication::_color;

variable _depth

Magnum::GL::Renderbuffer robot_dart::gui::magnum::WindowlessGLApplication::_depth;

variable _draw_debug

bool robot_dart::gui::magnum::WindowlessGLApplication::_draw_debug;

variable _draw_main_camera

bool robot_dart::gui::magnum::WindowlessGLApplication::_draw_main_camera;

variable _format

Magnum::PixelFormat robot_dart::gui::magnum::WindowlessGLApplication::_format;

variable _framebuffer

Magnum::GL::Framebuffer robot_dart::gui::magnum::WindowlessGLApplication::_framebuffer;

variable _simu

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

Protected Functions Documentation

function exec

inline virtual int robot_dart::gui::magnum::WindowlessGLApplication::exec () override


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