Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
rs2::output_model Class Reference

#include <output-model.h>

Classes

struct  log_entry
 

Public Member Functions

void add_log (rs2_log_severity severity, std::string filename, int line_number, std::string line)
 
void draw (ux_window &win, rect view_rect, std::vector< std::unique_ptr< device_model >> &device_models)
 
int get_output_height () const
 
 output_model ()
 
void run_command (std::string command, std::vector< std::unique_ptr< device_model >> &device_models)
 
void update_dashboards (rs2::frame f)
 
bool user_defined_command (std::string command, std::vector< std::unique_ptr< device_model >> &device_models)
 
 ~output_model ()
 

Private Member Functions

void foreach_log (std::function< void(log_entry &line)> action)
 
void open (ux_window &win)
 
bool round_indicator (ux_window &win, std::string icon, int count, ImVec4 color, std::string tooltip, bool &highlighted, std::string suffix="")
 
void thread_loop ()
 

Private Attributes

std::deque< std::stringautocomplete
 
std::map< std::string, std::function< std::shared_ptr< stream_dashboard >std::string)> > available_dashboards
 
bool command_focus = true
 
std::string command_line { "" }
 
std::deque< std::stringcommands_histroy
 
std::vector< std::shared_ptr< stream_dashboard > > dashboards
 
animated< int > default_log_h { 36 }
 
std::vector< rs2::devicedevices
 
std::mutex devices_mutex
 
bool drops_highlighted = false
 
bool enable_firmware_logs = false
 
bool errors_highlighted = false
 
bool errors_selected = false
 
std::thread fw_logger
 
int history_offset = 0
 
single_consumer_queue< log_entryincoming_log_queue
 
bool info_highlighted = false
 
bool info_selected = false
 
bool is_output_open = true
 
std::recursive_mutex m
 
bool new_log = false
 
std::deque< log_entrynotification_logs
 
int number_of_drops = 0
 
int number_of_errors = 0
 
int number_of_info = 0
 
int number_of_warnings = 0
 
std::string search_line { "" }
 
bool search_open = false
 
animated< int > search_width { 0, std::chrono::milliseconds(400) }
 
std::atomic< int > to_stop { 0 }
 
int total_frames = 0
 
bool warnings_highlighted = false
 
bool warnings_selected = false
 

Detailed Description

Definition at line 107 of file output-model.h.

Constructor & Destructor Documentation

output_model::output_model ( )

Definition at line 96 of file output-model.cpp.

output_model::~output_model ( )

Definition at line 90 of file output-model.cpp.

Member Function Documentation

void output_model::add_log ( rs2_log_severity  severity,
std::string  filename,
int  line_number,
std::string  line 
)

Definition at line 736 of file output-model.cpp.

void output_model::draw ( ux_window win,
rect  view_rect,
std::vector< std::unique_ptr< device_model >> &  device_models 
)

Definition at line 163 of file output-model.cpp.

void output_model::foreach_log ( std::function< void(log_entry &line)>  action)
private

Definition at line 697 of file output-model.cpp.

int rs2::output_model::get_output_height ( ) const
inline

Definition at line 130 of file output-model.h.

void output_model::open ( ux_window win)
private

Definition at line 155 of file output-model.cpp.

bool output_model::round_indicator ( ux_window win,
std::string  icon,
int  count,
ImVec4  color,
std::string  tooltip,
bool &  highlighted,
std::string  suffix = "" 
)
private

Definition at line 112 of file output-model.cpp.

void output_model::run_command ( std::string  command,
std::vector< std::unique_ptr< device_model >> &  device_models 
)

Definition at line 759 of file output-model.cpp.

void output_model::thread_loop ( )
private

Definition at line 15 of file output-model.cpp.

void output_model::update_dashboards ( rs2::frame  f)

Definition at line 943 of file output-model.cpp.

bool output_model::user_defined_command ( std::string  command,
std::vector< std::unique_ptr< device_model >> &  device_models 
)

Definition at line 878 of file output-model.cpp.

Member Data Documentation

std::deque<std::string> rs2::output_model::autocomplete
private

Definition at line 172 of file output-model.h.

std::map<std::string, std::function<std::shared_ptr<stream_dashboard>std::string)> > rs2::output_model::available_dashboards
private

Definition at line 184 of file output-model.h.

bool rs2::output_model::command_focus = true
private

Definition at line 181 of file output-model.h.

std::string rs2::output_model::command_line { "" }
private

Definition at line 178 of file output-model.h.

std::deque<std::string> rs2::output_model::commands_histroy
private

Definition at line 179 of file output-model.h.

std::vector<std::shared_ptr<stream_dashboard> > rs2::output_model::dashboards
private

Definition at line 183 of file output-model.h.

animated<int> rs2::output_model::default_log_h { 36 }
private

Definition at line 149 of file output-model.h.

std::vector<rs2::device> rs2::output_model::devices
private

Definition at line 175 of file output-model.h.

std::mutex rs2::output_model::devices_mutex
private

Definition at line 174 of file output-model.h.

bool rs2::output_model::drops_highlighted = false
private

Definition at line 161 of file output-model.h.

bool rs2::output_model::enable_firmware_logs = false
private

Definition at line 152 of file output-model.h.

bool rs2::output_model::errors_highlighted = false
private

Definition at line 158 of file output-model.h.

bool rs2::output_model::errors_selected = false
private

Definition at line 154 of file output-model.h.

std::thread rs2::output_model::fw_logger
private

Definition at line 187 of file output-model.h.

int rs2::output_model::history_offset = 0
private

Definition at line 180 of file output-model.h.

single_consumer_queue<log_entry> rs2::output_model::incoming_log_queue
private

Definition at line 146 of file output-model.h.

bool rs2::output_model::info_highlighted = false
private

Definition at line 160 of file output-model.h.

bool rs2::output_model::info_selected = false
private

Definition at line 156 of file output-model.h.

bool rs2::output_model::is_output_open = true
private

Definition at line 150 of file output-model.h.

std::recursive_mutex rs2::output_model::m
private

Definition at line 144 of file output-model.h.

bool rs2::output_model::new_log = false
private

Definition at line 143 of file output-model.h.

std::deque<log_entry> rs2::output_model::notification_logs
private

Definition at line 147 of file output-model.h.

int rs2::output_model::number_of_drops = 0
private

Definition at line 166 of file output-model.h.

int rs2::output_model::number_of_errors = 0
private

Definition at line 163 of file output-model.h.

int rs2::output_model::number_of_info = 0
private

Definition at line 165 of file output-model.h.

int rs2::output_model::number_of_warnings = 0
private

Definition at line 164 of file output-model.h.

std::string rs2::output_model::search_line { "" }
private

Definition at line 177 of file output-model.h.

bool rs2::output_model::search_open = false
private

Definition at line 170 of file output-model.h.

animated<int> rs2::output_model::search_width { 0, std::chrono::milliseconds(400) }
private

Definition at line 169 of file output-model.h.

std::atomic<int> rs2::output_model::to_stop { 0 }
private

Definition at line 186 of file output-model.h.

int rs2::output_model::total_frames = 0
private

Definition at line 167 of file output-model.h.

bool rs2::output_model::warnings_highlighted = false
private

Definition at line 159 of file output-model.h.

bool rs2::output_model::warnings_selected = false
private

Definition at line 155 of file output-model.h.


The documentation for this class was generated from the following files:


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