|
| virtual | ~AsyncLightViewer () |
| void | invoke (const std::function< void()> &func) |
| | Invoke a task in the visualization thread.
|
| void | invoke_after_rendering (const std::function< void()> &func) |
| | Invoke a task after rendering in the visualization thread.
|
| void | invoke_once (const std::string &label, const std::function< void()> &func) |
| | Invoke a labeled task only once in the life time of the viewer.
|
| void | clear_images () |
| | Clear all images.
|
| void | remove_image (const std::string &name) |
| | Remove an image by name.
|
| void | update_image (const std::string &name, int width, int height, const std::vector< unsigned char > &rgba_bytes, double scale=-1.0, int order=-1) |
| | Register or update an image.
|
| void | clear_plots (bool clear_settings=true) |
| | Clear all plots.
|
| void | remove_plot (const std::string &plot_name, const std::string &label="") |
| | Remove a plot by name.
|
| void | setup_plot (const std::string &plot_name, int width, int height, int plot_flags=0, int x_flags=0, int y_flags=0, int order=-1) |
| | Setup a plot.
|
| void | link_plot_axis (const std::string &plot_name, int link_id, int axis) |
| | Link an axis of a plot to a link ID.
|
| void | link_plot_axes (const std::string &plot_name, int link_id, int axes=-1) |
| | Link multiple axes of a plot to a link ID.
|
| void | setup_legend (const std::string &plot_name, int loc, int flags=0) |
| | Setup the legend for a plot.
|
| void | fit_plot (const std::string &plot_name) |
| | Fit the plot view to the data range.
|
| void | fit_all_plots () |
| | Fit all plots to their data ranges.
|
| void | setup_plot_group_order (const std::string &group_name, int order) |
| | Setup the plot group order.
|
| void | update_plot (const std::string &plot_name, const std::string &label, const std::shared_ptr< const PlotData > &plot) |
| | Update a plot with new data.
|
| void | update_plot_line (const std::string &plot_name, const std::string &label, const std::vector< double > &ys, int line_flags=0, size_t max_num_data=2048) |
| | Update a line plot.
|
| void | update_plot_line (const std::string &plot_name, const std::string &label, const std::vector< double > &xs, const std::vector< double > &ys, int line_flags=0, size_t max_num_data=2048) |
| | Update a line plot.
|
| void | update_plot_scatter (const std::string &plot_name, const std::string &label, const std::vector< double > &ys, int scatter_flags=0) |
| | Update a scatter plot.
|
| void | update_plot_scatter (const std::string &plot_name, const std::string &label, const std::vector< double > &xs, const std::vector< double > &ys, int scatter_flags=0) |
| | Update a scatter plot.
|
| void | update_plot_stairs (const std::string &plot_name, const std::string &label, const std::vector< double > &ys, int stairs_flags=0) |
| | Update a stairs plot.
|
| void | update_plot_stairs (const std::string &plot_name, const std::string &label, const std::vector< double > &xs, const std::vector< double > &ys, int stairs_flags=0) |
| | Update a stairs plot.
|
| void | update_plot_histogram (const std::string &plot_name, const std::string &label, const std::vector< double > &xs, int bins=-2, const Eigen::Vector2d &range=Eigen::Vector2d(0.0, 0.0), int histogram_flags=0) |
| | Update a histogram plot.
|
| void | update_plot_histogram (const std::string &plot_name, const std::string &label, const std::vector< double > &xs, const std::vector< double > &ys, int x_bins=-2, int y_bins=-2, const Eigen::Vector2d &x_range=Eigen::Vector2d(0.0, 0.0), const Eigen::Vector2d &y_range=Eigen::Vector2d(0.0, 0.0), int histogram_flags=0) |
| | Update a 2D histogram plot.
|
| template<typename T> |
| auto | update_plot_line (const std::string &plot_name, const std::string &label, const std::vector< T > &ys, int line_flags=0, size_t max_num_data=8192 *12) -> std::enable_if_t< std::is_arithmetic_v< T >, void > |
| | Update a line plot.
|
| template<typename T1, typename T2> |
| void | update_plot_line (const std::string &plot_name, const std::string &label, const std::vector< T1 > &xs, const std::vector< T2 > &ys, int line_flags=0, size_t max_num_data=8192 *12) |
| | Update a line plot.
|
| template<typename T, int D, typename Alloc> |
| void | update_plot_line (const std::string &plot_name, const std::string &label, const std::vector< Eigen::Matrix< T, D, 1 >, Alloc > &data, int line_flags=0, size_t max_num_data=8192 *12) |
| | Update a line plot.
|
| template<typename T, typename Func> |
| auto | update_plot_line (const std::string &plot_name, const std::string &label, const std::vector< T > &data, const Func &transform, int line_flags=0, size_t max_num_data=8192 *12) -> std::enable_if_t<!std::is_arithmetic_v< decltype(transform(data[0]))>, void > |
| | Update a line plot.
|
| template<typename T, typename Func> |
| auto | update_plot_line (const std::string &plot_name, const std::string &label, const std::vector< T > &data, const Func &transform, int line_flags=0, size_t max_num_data=8192 *12) -> std::enable_if_t< std::is_arithmetic_v< decltype(transform(data[0]))>, void > |
| | Update a line plot.
|
| template<typename T> |
| auto | update_plot_scatter (const std::string &plot_name, const std::string &label, const std::vector< T > &ys, int scatter_flags=0) -> std::enable_if_t< std::is_arithmetic_v< T >, void > |
| | Update a scatter plot.
|
| template<typename T1, typename T2> |
| void | update_plot_scatter (const std::string &plot_name, const std::string &label, const std::vector< T1 > &xs, const std::vector< T2 > &ys, int scatter_flags=0) |
| | Update a scatter plot.
|
| template<typename T, int D, typename Alloc> |
| void | update_plot_scatter (const std::string &plot_name, const std::string &label, const std::vector< Eigen::Matrix< T, D, 1 >, Alloc > &data, int scatter_flags=0) |
| | Update a scatter plot.
|
| template<typename T, typename Func> |
| auto | update_plot_scatter (const std::string &plot_name, const std::string &label, const std::vector< T > &data, const Func &transform, int scatter_flags=0, size_t max_num_data=8192 *12) -> std::enable_if_t<!std::is_arithmetic_v< decltype(transform(data[0]))>, void > |
| | Update a scatter plot.
|
| template<typename T, typename Func> |
| auto | update_plot_scatter (const std::string &plot_name, const std::string &label, const std::vector< T > &data, const Func &transform, int scatter_flags=0, size_t max_num_data=8192 *12) -> std::enable_if_t< std::is_arithmetic_v< decltype(transform(data[0]))>, void > |
| | Update a scatter plot.
|
| template<typename T> |
| void | update_plot_stairs (const std::string &plot_name, const std::string &label, const std::vector< T > &ys, int stairs_flags=0) |
| | Update a stairs plot.
|
| template<typename T1, typename T2> |
| void | update_plot_stairs (const std::string &plot_name, const std::string &label, const std::vector< T1 > &xs, const std::vector< T2 > &ys, int stairs_flags=0) |
| | Update a stairs plot.
|
| template<typename T> |
| void | update_plot_histogram (const std::string &plot_name, const std::string &label, const std::vector< T > &xs, int bins=-2, const Eigen::Vector2d &range=Eigen::Vector2d(0.0, 0.0), int histogram_flags=0) |
| | Update a histogram plot.
|
| template<typename T1, typename T2> |
| void | update_plot_histogram (const std::string &plot_name, const std::string &label, const std::vector< T1 > &xs, const std::vector< T2 > &ys, int x_bins=-2, int y_bins=-2, const Eigen::Vector2d &x_range=Eigen::Vector2d(0.0, 0.0), const Eigen::Vector2d &y_range=Eigen::Vector2d(0.0, 0.0), int histogram_flags=0) |
| | Update a 2D histogram plot.
|
| void | set_plot_style (const std::string &plot_name, const std::string &label, const PlotStyleConstPtr &style) |
| | Set the style for a plot.
|
| void | set_line_style (const std::string &plot_name, const std::string &label, const Eigen::Vector4f &color=Eigen::Vector4f(0, 0, 0, -1), float weight=-1) |
| | Set the line style for a plot.
|
| void | set_scatter_style (const std::string &plot_name, const std::string &label, int marker=0, float size=-1, const Eigen::Vector4f &fill=Eigen::Vector4f(0, 0, 0, -1), float weight=-1, const Eigen::Vector4f &outline=Eigen::Vector4f(0, 0, 0, -1)) |
| | Set the scatter style for a plot.
|
| AsyncLightViewerContext | async_sub_viewer (const std::string &context_name, const Eigen::Vector2i &canvas_size=Eigen::Vector2i(-1, -1)) |
| | Create a async sub viewer context.
|
| void | remove_async_sub_viewer (const std::string &context_name) |
| | Remove an async sub viewer context.
|
| | AsyncLightViewerContext () |
| | AsyncLightViewerContext (LightViewerContext *context) |
| | ~AsyncLightViewerContext () |
| void | clear () |
| | Clear everything in the viewer (callbacks, filters, drawables, texts).
|
| void | clear_text () |
| | Clear texts.
|
| void | append_text (const std::string &text) |
| | Append debug text to the viewer. This method is thread-safe.
|
| void | register_ui_callback (const std::string &name, const std::function< void()> &callback=0) |
| | Register a UI callback function.
|
| void | remove_ui_callback (const std::string &name) |
| | Remove a UI callback function.
|
| void | disable_xy_grid () |
| | Disable XY grid drawing.
|
| void | enable_xy_grid () |
| | Enable XY grid drawing.
|
| void | set_draw_xy_grid (bool draw_xy_grid) |
| | Set enable/disable XY grid drawing.
|
| void | set_colormap (glk::COLORMAP colormap) |
| | Set colormap used for RAINBOW and VERTEX_COLORMAP modes.
|
| void | enable_partial_rendering (double clear_thresh=1e-6) |
| | Enable partial rendering.
|
| void | disable_partial_rendering () |
| | Disable partial rendering.
|
| void | enable_backface_culling () |
| | Enable backface culling. Fragments with back-facing normals will not be rendered.
|
| void | disable_backface_culling () |
| | Disable backface culling.
|
| void | set_backface_culling_range (const Eigen::Vector2f &range) |
| | Set range of normal.z for backface culling.
|
| void | set_point_shape (float point_size=1.0f, bool metric=true, bool circle=true) |
| | Set point shape properties.
|
| void | clear_drawables () |
| | Clear all drawables.
|
| void | clear_drawables (const std::function< bool(const std::string &)> &fn) |
| | Clear drawables that satisfy the given condition.
|
| void | remove_drawable (const std::string &name) |
| | Remove a drawable by name.
|
| void | remove_drawable (const std::regex ®ex) |
| | Remove all drawables that match the given regex.
|
| void | save_camera_settings (const std::string &path) |
| | Save camera settings to a file.
|
| void | load_camera_settings (const std::string &path) |
| | Load camera settings from a file.
|
| void | save_color_buffer (const std::string &filename) |
| | Save color buffer to an image file (PNG).
|
| void | save_depth_buffer (const std::string &filename, bool real_scale=true) |
| | Save depth buffer to a file (PNG).
|
| void | reset_center () |
| | Reset camera center to the center of the screen.
|
| void | lookat (const Eigen::Vector3f &pt) |
| | Make the camera look at a point.
|
| template<typename Vector> |
| void | lookat (const Vector &pt) |
| | Make the camera look at a point.
|
| void | lookat (const Eigen::Isometry3f &T_world_sensor) |
| | Make the camera look at a transform.
|
| void | lookat (const Eigen::Isometry3d &T_world_sensor) |
| | Make the camera look at a transform.
|
| void | use_orbit_camera_control (double distance=80.0, double theta=0.0, double phi=-60.0f *M_PI/180.0f) |
| | Use orbit camera control (XY plane) useful for systems in which XYZ = front-left-up like LiDAR odometry.
|
| void | use_orbit_camera_control_xz (double distance=80.0, double theta=0.0, double phi=0.0) |
| | Use orbit camera control (XZ plane) useful for systems in which XYZ = right-down-forward like visual odometry.
|
| void | use_topdown_camera_control (double distance=80.0, double theta=0.0) |
| | Use top-down camera control useful for 2D SLAM.
|
| void | use_arcball_camera_control (double distance=80.0, double theta=0.0, double phi=-60.0f *M_PI/180.0f) |
| | Use arcball camera control.
|
| void | use_fps_camera_control (double fovy_deg=60.0) |
| | Use FPS game-like camera control.
|
| void | use_sensor_view_camera_control (const Eigen::Isometry3f &T_sensor_camera=Eigen::Translation3f(-5.0f, 0.0f, 0.1f) *Eigen::Isometry3f::Identity(), double smoothing_factor_trans=0.75, double smoothing_factor_rot=0.9) |
| | Use TPS-like sensor-view camera control .
|
| void | use_perspective_projection_control (float fovy_deg=30.0f, float near_=1.0f, float far_=1000.0f) |
| | Use perspective projection control.
|
| void | use_orthographic_projection_control (float width=10.0f, float near_=1.0f, float far_=1000.0f) |
| | Use orthographic projection control.
|
| void | update_drawable_setting (const std::string &name, const ShaderSetting &shader_setting) |
| | Update a drawable's shader setting.
|
| void | update_points (const std::string &name, const float *data, int stride, int num_points, const ShaderSetting &shader_setting) |
| | Register or update a point cloud buffer.
|
| 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) |
| | Register or update a point cloud buffer.
|
| 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) |
| | Register or update a point cloud buffer.
|
| 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) |
| | Register or update a point cloud buffer with colors.
|
| 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) |
| | Register or update a point cloud buffer with colors.
|
| 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) |
| | Register or update a point cloud buffer with colors.
|
| 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 sigma, const ShaderSetting &shader_setting) |
| | Register or update a normal distribution set.
|
| 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 sigma, const ShaderSetting &shader_setting) |
| | Register or update a normal distribution set.
|
| 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, float line_width, const ShaderSetting &shader_setting) |
| | Register or update a thin lines drawable.
|
| 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) |
| | Register or update a thin lines drawable.
|
| 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) |
| | Register or update a thin lines drawable.
|
| 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) |
| | Register or update a thin lines drawable.
|
| 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) |
| | Register or update a thin lines drawable.
|
| 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) |
| | Register or update a thin lines drawable.
|
| 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) |
| | Register or update a thin lines drawable.
|
| 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) |
| | Register or update a thin lines drawable.
|
| 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, float line_width, const ShaderSetting &shader_setting) |
| | Register or update a thin lines drawable.
|
| 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, float line_width, const ShaderSetting &shader_setting) |
| | Register or update a thin lines drawable.
|
| 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, float line_width, const ShaderSetting &shader_setting) |
| | Register or update a thin lines drawable.
|
| template<typename Point, typename Alloc> |
| void | update_thin_lines (const std::string &name, const std::vector< Point, Alloc > &points, bool line_strip, float line_width, const ShaderSetting &shader_setting) |
| | Register or update a thin lines drawable.
|
| 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, float line_width, const ShaderSetting &shader_setting) |
| | Register or update a thin lines drawable.
|
| 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, float line_width, const ShaderSetting &shader_setting) |
| | Register or update a thin lines drawable.
|
| 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, float line_width, const ShaderSetting &shader_setting) |
| | Register or update a thin lines drawable.
|
| void | update_icosahedron (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update an icosahedron primitive.
|
| void | update_sphere (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update a sphere primitive.
|
| void | update_cube (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update a cube primitive.
|
| void | update_cone (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update a cone primitive.
|
| void | update_frustum (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update a frustum primitive.
|
| void | update_coord (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update a coordinate axes primitive.
|
| void | update_wire_icosahedron (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update a wireframe icosahedron primitive.
|
| void | update_wire_sphere (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update a wireframe sphere primitive.
|
| void | update_wire_cube (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update a wireframe cube primitive.
|
| void | update_wire_cone (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update a wireframe cone primitive.
|
| void | update_wire_frustum (const std::string &name, const ShaderSetting &shader_setting) |
| | Register or update a wireframe frustum primitive.
|