| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef DEPTHGUIDE_IMAGE_VIEWER_IMPL_H
- #define DEPTHGUIDE_IMAGE_VIEWER_IMPL_H
- #include "module/image_viewer.h"
- #include "render/render_tools.h"
- struct image_viewer::impl {
- create_config conf;
- /* for VIEW_COLOR_DEPTH
- * 0 = color, 1 = depth, 2 = both
- * for VIEW_STEREO
- * 0 = left, 1 = right */
- int chose_index = 0;
- using color_conf_type = color_image_render::config_type;
- using depth_conf_type = depth_image_render::config_type;
- depth_conf_type depth_conf = {};
- depth_image_render depth_render;
- color_conf_type color_conf = {};
- color_image_render color_render;
- float depth_overlay_alpha = 0.5;
- void show_depth_only();
- void show_color_depth();
- void show_stereo();
- void show();
- void render_color_obj(obj_name_type name);
- // render depth with false color
- void render_depth_obj(obj_name_type name, float alpha = 1.0);
- void render_color_depth();
- void render_stereo();
- void render();
- explicit impl(create_config conf);
- };
- #endif //DEPTHGUIDE_IMAGE_VIEWER_IMPL_H
|