|
gtsam_points
|
Async interface to manipulate LightViewerContext. All OpenGL operations will be done in the viewer thread through invoke method. Note that async operations come at a cost of data copy.
More...
#include <async_light_viewer_context.hpp>


Public Member Functions | |
| AsyncLightViewerContext () | |
| AsyncLightViewerContext (LightViewerContext *context) | |
| ~AsyncLightViewerContext () | |
| void | clear () |
| void | clear_text () |
| void | append_text (const std::string &text) |
| void | register_ui_callback (const std::string &name, const std::function< void()> &callback=0) |
| void | remove_ui_callback (const std::string &name) |
| void | disable_xy_grid () |
| void | enable_xy_grid () |
| void | set_draw_xy_grid (bool draw_xy_grid) |
| void | set_colormap (glk::COLORMAP colormap) |
| void | set_point_shape (float point_size=1.0f, bool metric=true, bool circle=true) |
| void | clear_drawables () |
| void | clear_drawables (const std::function< bool(const std::string &)> &fn) |
| void | remove_drawable (const std::string &name) |
| void | remove_drawable (const std::regex ®ex) |
| void | save_camera_settings (const std::string &path) |
| void | load_camera_settings (const std::string &path) |
| void | save_color_buffer (const std::string &filename) |
| void | save_depth_buffer (const std::string &filename, bool real_scale=true) |
| void | reset_center () |
| void | lookat (const Eigen::Vector3f &pt) |
| template<typename Vector > | |
| void | lookat (const Vector &pt) |
| void | use_orbit_camera_control (double distance=80.0, double theta=0.0, double phi=-60.0f *M_PI/180.0f) |
| void | use_orbit_camera_control_xz (double distance=80.0, double theta=0.0, double phi=0.0) |
| void | use_topdown_camera_control (double distance=80.0, double theta=0.0) |
| void | use_arcball_camera_control (double distance=80.0, double theta=0.0, double phi=-60.0f *M_PI/180.0f) |
| void | use_fps_camera_control (double fovy_deg=60.0) |
| void | update_drawable_setting (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_points (const std::string &name, const float *data, int stride, int num_points, const ShaderSetting &shader_setting) |
| template<typename Scalar , int Dim> | |
| void | update_points (const std::string &name, const Eigen::Matrix< Scalar, Dim, 1 > *points, int num_points, const ShaderSetting &shader_setting) |
| template<typename Scalar , int Dim, typename Allocator > | |
| void | update_points (const std::string &name, const std::vector< Eigen::Matrix< Scalar, Dim, 1 >, Allocator > &points, const ShaderSetting &shader_setting) |
| void | update_points (const std::string &name, const float *vertices, int vertex_stride, const float *colors, int color_stride, int num_points, const ShaderSetting &shader_setting) |
| template<typename ScalarV , int DimV, typename ScalarC , int DimC> | |
| void | update_points (const std::string &name, const Eigen::Matrix< ScalarV, DimV, 1 > *points, const Eigen::Matrix< ScalarC, DimC, 1 > *colors, int num_points, const ShaderSetting &shader_setting) |
| template<typename ScalarV , int DimV, typename AllocatorV , typename ScalarC , int DimC, typename AllocatorC > | |
| void | update_points (const std::string &name, const std::vector< Eigen::Matrix< ScalarV, DimV, 1 >, AllocatorV > &points, const std::vector< Eigen::Matrix< ScalarC, DimC, 1 >, AllocatorC > &colors, const ShaderSetting &shader_setting) |
| template<typename Scalar , int Dim> | |
| void | update_normal_dists (const std::string &name, const Eigen::Matrix< Scalar, Dim, 1 > *points, const Eigen::Matrix< Scalar, Dim, Dim > *covs, int num_points, float scale, const ShaderSetting &shader_setting) |
| template<typename Scalar , int Dim, typename Alloc1 , typename Alloc2 > | |
| void | update_normal_dists (const std::string &name, const std::vector< Eigen::Matrix< Scalar, Dim, 1 >, Alloc1 > &points, const std::vector< Eigen::Matrix< Scalar, Dim, Dim >, Alloc2 > &covs, float scale, const ShaderSetting &shader_setting) |
| void | update_thin_lines (const std::string &name, const float *vertices, const float *colors, int num_vertices, const unsigned int *indices, int num_indices, bool line_strip, const ShaderSetting &shader_setting) |
| template<typename Scalar , int Dim> | |
| void | update_thin_lines (const std::string &name, const Eigen::Matrix< Scalar, Dim, 1 > *points, int num_points, bool line_strip, const ShaderSetting &shader_setting) |
| template<typename ScalarV , int DimV, typename ScalarC , int DimC> | |
| void | update_thin_lines (const std::string &name, const Eigen::Matrix< ScalarV, DimV, 1 > *points, const Eigen::Matrix< ScalarC, DimC, 1 > *colors, int num_points, bool line_strip, const ShaderSetting &shader_setting) |
| template<typename ScalarV , int DimV, typename ScalarC , int DimC> | |
| void | update_thin_lines (const std::string &name, const Eigen::Matrix< ScalarV, DimV, 1 > *points, const Eigen::Matrix< ScalarC, DimC, 1 > *colors, int num_points, const unsigned int *indices, int num_indices, bool line_strip, const ShaderSetting &shader_setting) |
| template<typename Point , typename Alloc > | |
| void | update_thin_lines (const std::string &name, const std::vector< Point, Alloc > &points, bool line_strip, const ShaderSetting &shader_setting) |
| template<typename Point , typename Alloc > | |
| void | update_thin_lines (const std::string &name, const std::vector< Point, Alloc > &points, const std::vector< unsigned int > &indices, bool line_strip, const ShaderSetting &shader_setting) |
| template<typename Point , typename AllocP , typename Color , typename AllocC > | |
| void | update_thin_lines (const std::string &name, const std::vector< Point, AllocP > &points, const std::vector< Color, AllocC > &colors, bool line_strip, const ShaderSetting &shader_setting) |
| template<typename Point , typename AllocP , typename Color , typename AllocC > | |
| void | update_thin_lines (const std::string &name, const std::vector< Point, AllocP > &points, const std::vector< Color, AllocC > &colors, const std::vector< unsigned int > &indices, bool line_strip, const ShaderSetting &shader_setting) |
| void | update_icosahedron (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_sphere (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_cube (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_cone (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_frustum (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_coord (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_wire_icosahedron (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_wire_sphere (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_wire_cube (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_wire_cone (const std::string &name, const ShaderSetting &shader_setting) |
| void | update_wire_frustum (const std::string &name, const ShaderSetting &shader_setting) |
Protected Attributes | |
| LightViewerContext * | context |
Async interface to manipulate LightViewerContext. All OpenGL operations will be done in the viewer thread through invoke method. Note that async operations come at a cost of data copy.
| guik::AsyncLightViewerContext::AsyncLightViewerContext | ( | ) |
| guik::AsyncLightViewerContext::AsyncLightViewerContext | ( | LightViewerContext * | context | ) |
| guik::AsyncLightViewerContext::~AsyncLightViewerContext | ( | ) |
| void guik::AsyncLightViewerContext::append_text | ( | const std::string & | text | ) |
| void guik::AsyncLightViewerContext::clear | ( | ) |
| void guik::AsyncLightViewerContext::clear_drawables | ( | ) |
| void guik::AsyncLightViewerContext::clear_drawables | ( | const std::function< bool(const std::string &)> & | fn | ) |
| void guik::AsyncLightViewerContext::clear_text | ( | ) |
|
inline |
|
inline |
| void guik::AsyncLightViewerContext::load_camera_settings | ( | const std::string & | path | ) |
| void guik::AsyncLightViewerContext::lookat | ( | const Eigen::Vector3f & | pt | ) |
|
inline |
| void guik::AsyncLightViewerContext::register_ui_callback | ( | const std::string & | name, |
| const std::function< void()> & | callback = 0 |
||
| ) |
| void guik::AsyncLightViewerContext::remove_drawable | ( | const std::regex & | regex | ) |
| void guik::AsyncLightViewerContext::remove_drawable | ( | const std::string & | name | ) |
| void guik::AsyncLightViewerContext::remove_ui_callback | ( | const std::string & | name | ) |
| void guik::AsyncLightViewerContext::reset_center | ( | ) |
| void guik::AsyncLightViewerContext::save_camera_settings | ( | const std::string & | path | ) |
| void guik::AsyncLightViewerContext::save_color_buffer | ( | const std::string & | filename | ) |
| void guik::AsyncLightViewerContext::save_depth_buffer | ( | const std::string & | filename, |
| bool | real_scale = true |
||
| ) |
| void guik::AsyncLightViewerContext::set_colormap | ( | glk::COLORMAP | colormap | ) |
| void guik::AsyncLightViewerContext::set_draw_xy_grid | ( | bool | draw_xy_grid | ) |
| void guik::AsyncLightViewerContext::set_point_shape | ( | float | point_size = 1.0f, |
| bool | metric = true, |
||
| bool | circle = true |
||
| ) |
| void guik::AsyncLightViewerContext::update_cone | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_coord | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_cube | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_drawable_setting | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_frustum | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_icosahedron | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_normal_dists | ( | const std::string & | name, |
| const Eigen::Matrix< Scalar, Dim, 1 > * | points, | ||
| const Eigen::Matrix< Scalar, Dim, Dim > * | covs, | ||
| int | num_points, | ||
| float | scale, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_normal_dists | ( | const std::string & | name, |
| const std::vector< Eigen::Matrix< Scalar, Dim, 1 >, Alloc1 > & | points, | ||
| const std::vector< Eigen::Matrix< Scalar, Dim, Dim >, Alloc2 > & | covs, | ||
| float | scale, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_points | ( | const std::string & | name, |
| const Eigen::Matrix< Scalar, Dim, 1 > * | points, | ||
| int | num_points, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_points | ( | const std::string & | name, |
| const Eigen::Matrix< ScalarV, DimV, 1 > * | points, | ||
| const Eigen::Matrix< ScalarC, DimC, 1 > * | colors, | ||
| int | num_points, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_points | ( | const std::string & | name, |
| const float * | data, | ||
| int | stride, | ||
| int | num_points, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_points | ( | const std::string & | name, |
| const float * | vertices, | ||
| int | vertex_stride, | ||
| const float * | colors, | ||
| int | color_stride, | ||
| int | num_points, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_points | ( | const std::string & | name, |
| const std::vector< Eigen::Matrix< Scalar, Dim, 1 >, Allocator > & | points, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_points | ( | const std::string & | name, |
| const std::vector< Eigen::Matrix< ScalarV, DimV, 1 >, AllocatorV > & | points, | ||
| const std::vector< Eigen::Matrix< ScalarC, DimC, 1 >, AllocatorC > & | colors, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_sphere | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_thin_lines | ( | const std::string & | name, |
| const Eigen::Matrix< Scalar, Dim, 1 > * | points, | ||
| int | num_points, | ||
| bool | line_strip, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_thin_lines | ( | const std::string & | name, |
| const Eigen::Matrix< ScalarV, DimV, 1 > * | points, | ||
| const Eigen::Matrix< ScalarC, DimC, 1 > * | colors, | ||
| int | num_points, | ||
| bool | line_strip, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_thin_lines | ( | const std::string & | name, |
| const Eigen::Matrix< ScalarV, DimV, 1 > * | points, | ||
| const Eigen::Matrix< ScalarC, DimC, 1 > * | colors, | ||
| int | num_points, | ||
| const unsigned int * | indices, | ||
| int | num_indices, | ||
| bool | line_strip, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_thin_lines | ( | const std::string & | name, |
| const float * | vertices, | ||
| const float * | colors, | ||
| int | num_vertices, | ||
| const unsigned int * | indices, | ||
| int | num_indices, | ||
| bool | line_strip, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_thin_lines | ( | const std::string & | name, |
| const std::vector< Point, Alloc > & | points, | ||
| bool | line_strip, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_thin_lines | ( | const std::string & | name, |
| const std::vector< Point, Alloc > & | points, | ||
| const std::vector< unsigned int > & | indices, | ||
| bool | line_strip, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_thin_lines | ( | const std::string & | name, |
| const std::vector< Point, AllocP > & | points, | ||
| const std::vector< Color, AllocC > & | colors, | ||
| bool | line_strip, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_thin_lines | ( | const std::string & | name, |
| const std::vector< Point, AllocP > & | points, | ||
| const std::vector< Color, AllocC > & | colors, | ||
| const std::vector< unsigned int > & | indices, | ||
| bool | line_strip, | ||
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_wire_cone | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_wire_cube | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_wire_frustum | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_wire_icosahedron | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::update_wire_sphere | ( | const std::string & | name, |
| const ShaderSetting & | shader_setting | ||
| ) |
| void guik::AsyncLightViewerContext::use_arcball_camera_control | ( | double | distance = 80.0, |
| double | theta = 0.0, |
||
| double | phi = -60.0f *M_PI/180.0f |
||
| ) |
| void guik::AsyncLightViewerContext::use_fps_camera_control | ( | double | fovy_deg = 60.0 | ) |
| void guik::AsyncLightViewerContext::use_orbit_camera_control | ( | double | distance = 80.0, |
| double | theta = 0.0, |
||
| double | phi = -60.0f *M_PI/180.0f |
||
| ) |
| void guik::AsyncLightViewerContext::use_orbit_camera_control_xz | ( | double | distance = 80.0, |
| double | theta = 0.0, |
||
| double | phi = 0.0 |
||
| ) |
| void guik::AsyncLightViewerContext::use_topdown_camera_control | ( | double | distance = 80.0, |
| double | theta = 0.0 |
||
| ) |
|
protected |