camera_augment_helper_impl.h 1016 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef DEPTHGUIDE_CAMERA_AUGMENT_HELPER_IMPL_H
  2. #define DEPTHGUIDE_CAMERA_AUGMENT_HELPER_IMPL_H
  3. #include "module/camera_augment_helper.h"
  4. struct camera_augment_helper::impl {
  5. struct ui_config_type {
  6. glm::vec3 extra_offset;
  7. glm::vec3 extra_rotation;
  8. bool ignore_missing = false;
  9. struct {
  10. float near = 0.1f;
  11. float far = 1000.0f;
  12. } clip; // clip range
  13. glm::mat4 extra_transform() const;
  14. };
  15. std::shared_ptr<ui_config_type> ui_conf =
  16. std::make_shared<ui_config_type>();
  17. float fov = 0.0f;
  18. std::string transform_var; // for sophiar
  19. glm::mat4 transform = glm::mat4(1.0f); // identity matrix, exclude extra_transform
  20. using sophiar_conn_type = create_config::sophiar_conn_type;
  21. sophiar_conn_type *sophiar_conn = nullptr;
  22. augment_manager *manager = nullptr;
  23. explicit impl(const create_config &conf);
  24. void render();
  25. void show();
  26. };
  27. #endif //DEPTHGUIDE_CAMERA_AUGMENT_HELPER_IMPL_H