12 #include "../src/concurrency.h" 46 std::lock_guard<std::mutex>
lock(
m);
53 std::lock_guard<std::mutex>
lock(
m);
58 void add_point(
float x,
float y) {
xy.push_back(std::make_pair(x, y)); }
68 if (
q.try_wait_for_frame(&f, 100))
75 std::atomic<int>
stop {
false };
77 std::vector<std::pair<float, float>>
xy;
86 last_time(
glfwGetTime()), frame_drop_count(frame_drop_count), total(total)
116 double time_added = 0.0;
118 bool selected =
false;
128 void draw(
ux_window& win,
rect view_rect, std::vector<std::unique_ptr<device_model>> & device_models);
132 void run_command(
std::string command, std::vector<std::unique_ptr<device_model>> & device_models);
133 bool user_defined_command(
std::string command, std::vector<std::unique_ptr<device_model>> & device_models);
143 bool new_log =
false;
144 std::recursive_mutex
m;
150 bool is_output_open =
true;
152 bool enable_firmware_logs =
false;
154 bool errors_selected =
false;
155 bool warnings_selected =
false;
156 bool info_selected =
false;
158 bool errors_highlighted =
false;
159 bool warnings_highlighted =
false;
160 bool info_highlighted =
false;
161 bool drops_highlighted =
false;
163 int number_of_errors = 0;
164 int number_of_warnings = 0;
165 int number_of_info = 0;
166 int number_of_drops = 0;
167 int total_frames = 0;
170 bool search_open =
false;
180 int history_offset = 0;
181 bool command_focus =
true;
184 std::map<std::string, std::function<std::shared_ptr<stream_dashboard>(
std::string)>> available_dashboards;
186 std::atomic<int> to_stop { 0 };
void add_point(float x, float y)
static const textual_icon lock
virtual void clear(bool full=false)
GLenum GLuint GLenum severity
GLuint const GLchar * name
frame_drops_dashboard(std::string name, int *frame_drop_count, int *total)
std::vector< std::pair< float, float > > xy
T read_shared_data(std::function< T()> action)
std::map< int, double > stream_to_time
int get_output_height() const
GLsizei const GLchar *const * string
void write_shared_data(std::function< void()> action)
std::deque< std::string > commands_histroy
virtual int get_height() const
std::vector< std::shared_ptr< stream_dashboard > > dashboards
stream_dashboard(std::string name, int size)
void add_frame(rs2::frame f)
std::deque< log_entry > notification_logs
std::deque< std::string > autocomplete
GLdouble GLdouble GLdouble q
void draw_dashboard(ux_window &win, rect &r)
virtual void draw(ux_window &win, rect r)=0
std::deque< int > drops_history
std::vector< rs2::device > devices
std::array< float, 3 > color
single_consumer_queue< log_entry > incoming_log_queue
virtual void process_frame(rs2::frame f)=0
rs2_log_severity
Severity of the librealsense logger.
virtual ~stream_dashboard()
std::string get_name() const