| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef DEPTHGUIDE_MVS_CAMERA_UI_H
- #define DEPTHGUIDE_MVS_CAMERA_UI_H
- #include "mvs_camera.h"
- #include "core/object_manager.h"
- #include <boost/signals2.hpp>
- #include <memory>
- class mvs_camera_ui {
- public:
- struct create_config {
- using camera_list_type =
- mvs_camera_group::create_config::camera_list_type;
- camera_list_type cameras;
- boost::asio::io_context *ctx = nullptr;
- };
- explicit mvs_camera_ui(const create_config &conf);
- ~mvs_camera_ui();
- struct capture_info_type {
- int frame_rate = 0;
- bool is_mono = false;
- };
- using capture_info_sig_type =
- boost::signals2::signal<void(capture_info_type)>;
- capture_info_sig_type cap_info_sig;
- void show();
- private:
- struct impl;
- std::unique_ptr<impl> pimpl;
- };
- #endif //DEPTHGUIDE_MVS_CAMERA_UI_H
|