cah-model.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include <utilities/time/timer.h>
7 #include <string>
8 #include <atomic>
9 
10 namespace rs2
11 {
12  class ux_window;
13  class viewer_model;
14  class device_model;
15 
16  class cah_model // CAH = Camera Accuracy Health
17  {
18  public:
19  cah_model(device_model & dev_model, viewer_model& viewer);
20 
21  bool prompt_trigger_popup(ux_window& window, std::string& error_message);
22  bool prompt_reset_popup(ux_window& window, std::string& error_message);
23  private:
24 
28  std::atomic<model_state_type> _state; // will be set from a different thread callback function
31  };
32 }
bool prompt_trigger_popup(ux_window &window, std::string &error_message)
Definition: cah-model.cpp:32
device_model & _dev_model
Definition: cah-model.h:25
Definition: cah-model.h:10
GLsizei const GLchar *const * string
utilities::time::timer _process_timeout
Definition: cah-model.h:30
cah_model(device_model &dev_model, viewer_model &viewer)
Definition: cah-model.cpp:14
bool _process_started
Definition: cah-model.h:29
std::atomic< model_state_type > _state
Definition: cah-model.h:28
bool prompt_reset_popup(ux_window &window, std::string &error_message)
Definition: cah-model.cpp:182
viewer_model & _viewer
Definition: cah-model.h:26


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:45:07