#include <librealsense2/rs.hpp>
#include "rendering.h"
#include "ux-window.h"
#include "parser.hpp"
#include "rs-config.h"
#include <GLFW/glfw3.h>
#include "opengl3.h"
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <map>
#include <set>
#include <array>
#include <unordered_map>
#include "../third-party/json.hpp"
#include "objects-in-frame.h"
#include "processing-block-model.h"
#include "realsense-ui-advanced-mode.h"
#include "fw-update-helper.h"
#include "updates-model.h"
#include "calibration-model.h"
#include "cah-model.h"
#include <utilities/time/periodic_timer.h>
#include "reflectivity/reflectivity.h"
#include <utilities/number/stabilized-value.h>
Go to the source code of this file.
Classes | |
class | rs2::device_changes |
class | rs2::device_model |
struct | rs2::frame_metadata |
class | rs2::frame_queues |
class | rs2::option_model |
class | rs2::post_processing_filters |
class | rs2::press_button_model |
class | rs2::stream_model |
class | rs2::subdevice_model |
struct | rs2::subdevice_ui_selection |
class | rs2::syncer_model |
struct | rs2::textual_icon |
class | rs2::tm2_model |
Macros | |
#define | GLFW_INCLUDE_GLU |
Typedefs | |
using | rs2::color = std::array< float, 3 > |
using | rs2::colored_cube = std::array< std::pair< face, color >, 6 > |
typedef std::vector< std::unique_ptr< device_model > > | rs2::device_models_list |
using | rs2::face = std::array< float3, 4 > |
typedef std::map< int, rect > | rs2::streams_layout |
using | rs2::tracked_point = std::pair< rs2_vector, unsigned int > |
Enumerations | |
enum | rs2::configurations::ply::encoding_types { rs2::configurations::ply::textual = 0, rs2::configurations::ply::binary = 1 } |
Functions | |
ImVec4 | blend (const ImVec4 &c, float a) |
option_model | rs2::create_option_mode (rs2_option opt, std::shared_ptr< options > options, const std::string &opt_base_label, bool *options_invalidated, std::string &error_message) |
bool | rs2::draw_combo_box (const std::string &id, const std::vector< std::string > &device_names, int &new_index) |
void | rs2::draw_rect (const rect &r, int line_width) |
void | rs2::export_frame (const std::string &fname, std::unique_ptr< rs2::filter > exporter, notifications_model &ns, frame data, bool notify) |
bool | rs2::frame_metadata_to_csv (const std::string &filename, rs2::frame frame) |
ImVec4 | from_rgba (uint8_t r, uint8_t g, uint8_t b, uint8_t a, bool consistent_color=false) |
std::vector< std::string > | rs2::get_device_info (const device &dev, bool include_location) |
std::pair< std::string, std::string > | rs2::get_device_name (const device &dev) |
std::vector< std::pair< std::string, std::string > > | rs2::get_devices_names (const device_list &list) |
void | rs2::hyperlink (ux_window &window, const char *title, const char *link) |
void | rs2::imgui_easy_theming (ImFont *&font_14, ImFont *&font_18, ImFont *&monofont) |
bool | rs2::motion_data_to_csv (const std::string &filename, rs2::frame frame) |
void | rs2::open_issue (std::string body) |
void | rs2::open_issue (const device_models_list &devices) |
ImVec4 | operator* (const ImVec4 &color, float t) |
ImVec4 | operator+ (const ImVec4 &c, float v) |
ImVec4 | operator+ (const ImVec4 &a, const ImVec4 &b) |
std::ostream & | rs2::operator<< (std::ostream &os, const textual_icon &i) |
void | rs2::outline_rect (const rect &r) |
bool | rs2::pose_data_to_csv (const std::string &filename, rs2::frame frame) |
void | rs2::prepare_config_file () |
template<class T > | |
void | rs2::push_back_if_not_exists (std::vector< T > &vec, T value) |
rs2_sensor_mode | rs2::resolution_from_width_height (int width, int height) |
bool | rs2::save_frame_meta_data (const std::string &filename, rs2::frame frame) |
bool | rs2::save_frame_raw_data (const std::string &filename, rs2::frame frame) |
void | rs2::save_processing_block_to_config_file (const char *name, std::shared_ptr< rs2::processing_block > pb, bool enable) |
template<class T > | |
void | rs2::sort_together (std::vector< T > &vec, std::vector< std::string > &names) |
bool | rs2::status_dialog (const std::string &title, const std::string &process_topic_text, const std::string &process_status_text, bool enable_close, ux_window &window) |
bool | rs2::yes_no_dialog (const std::string &title, const std::string &message_text, bool &approved, ux_window &window, const std::string &error_message, bool disabled, const std::string &disabled_reason) |
Variables | |
static const char * | rs2::configurations::update::allow_rc_firmware { "update.allow_rc_firmware" } |
static const ImVec4 | almost_white_bg = from_rgba(230, 230, 230, 255, true) |
static const textual_icon | rs2::textual_icons::bar_chart { u8"\uf080" } |
static const textual_icon | rs2::textual_icons::bars { u8"\uf0c9" } |
static const ImVec4 | black = from_rgba(0, 0, 0, 255, true) |
static const textual_icon | rs2::textual_icons::braille { u8"\uf2a1" } |
static const ImVec4 | button_color = from_rgba(62, 77, 89, 0xff) |
static const textual_icon | rs2::textual_icons::camera { u8"\uf030" } |
static const textual_icon | rs2::textual_icons::caret_down { u8"\uf0d7" } |
static const textual_icon | rs2::textual_icons::check { u8"\uF00C" } |
static const textual_icon | rs2::textual_icons::check_square_o { u8"\uf14a" } |
static const textual_icon | rs2::textual_icons::circle { u8"\uf111" } |
static const char * | rs2::configurations::viewer::commands_xml { "viewer_model.commands_xml" } |
static const char * | rs2::configurations::record::compression_mode { "record.compression" } |
static const textual_icon | rs2::textual_icons::connectdevelop { u8"\uf20e" } |
static const char * | rs2::configurations::viewer::continue_with_current_fw { "viewer_model.continue_with_current_fw" } |
static const char * | rs2::configurations::viewer::continue_with_ui_not_aligned { "viewer_model.continue_with_ui_not_aligned" } |
static const textual_icon | rs2::textual_icons::cube { u8"\uf1b2" } |
static const textual_icon | rs2::textual_icons::cubes { u8"\uf1b3" } |
static const ImVec4 | dark_grey = from_rgba(30, 30, 30, 255) |
static const ImVec4 | dark_red = from_rgba(200, 46, 54, 255, true) |
static const ImVec4 | dark_sensor_bg = from_rgba(0x1b, 0x21, 0x25, 170) |
static const ImVec4 | dark_window_background = from_rgba(9, 11, 13, 255) |
static const char * | rs2::configurations::record::default_path { "record.default_path" } |
static const ImVec4 | device_info_color = from_rgba(33, 40, 46, 255) |
static const textual_icon | rs2::textual_icons::dotdotdot { u8"\uf141" } |
static const textual_icon | rs2::textual_icons::download { u8"\uf019" } |
static const textual_icon | rs2::textual_icons::edit { u8"\uf044" } |
static const char * | rs2::configurations::performance::enable_msaa { "performance.msaa" } |
static const char * | rs2::configurations::calibration::enable_writing { "calibration.enable_writing" } |
static const char * | rs2::configurations::ply::encoding { "ply.encoding" } |
static const textual_icon | rs2::textual_icons::exclamation_triangle { u8"\uf071" } |
static const textual_icon | rs2::textual_icons::exit { u8"\uf011" } |
static const float | rs2::FEET_TO_METER = 0.3048f |
static const textual_icon | rs2::textual_icons::file_movie { u8"\uf008" } |
static const char * | rs2::configurations::record::file_save_mode { "record.file_save_mode" } |
static const textual_icon | rs2::textual_icons::fix_up { u8"\uf062" } |
static const textual_icon | rs2::textual_icons::floppy { u8"\uf0c7" } |
static const char * | rs2::configurations::performance::font_oversample { "performance.font_oversample.v2" } |
static const char * | rs2::configurations::performance::glsl_for_processing { "performance.glsl_for_processing.v2" } |
static const char * | rs2::configurations::performance::glsl_for_rendering { "performance.glsl_for_rendering.v2" } |
static const ImVec4 | green = from_rgba(0x20, 0xe0, 0x20, 0xff, true) |
static const ImVec4 | greenish = from_rgba(67, 163, 97, 255) |
static const ImVec4 | grey { 0.5f,0.5f,0.5f,1.f } |
static const textual_icon | rs2::textual_icons::grid { u8"\uf1cb" } |
static const char * | rs2::configurations::viewer::ground_truth_r { "viewer_model.ground_truth_r" } |
static const ImVec4 | header_color = from_rgba(62, 77, 89, 255) |
static const ImVec4 | header_window_bg = from_rgba(36, 44, 54, 0xff) |
static const char * | rs2::configurations::window::height { "window.height" } |
static const char * | rs2::configurations::viewer::hwlogger_xml { "viewer_model.hwlogger_xml" } |
static const textual_icon | rs2::textual_icons::info_circle { u8"\uf05a" } |
static const char * | rs2::configurations::viewer::is_3d_view { "viewer_model.is_3d_view" } |
static const char * | rs2::configurations::window::is_fullscreen { "window.is_fullscreen" } |
static const char * | rs2::configurations::viewer::is_measuring { "viewer_model.is_measuring" } |
static const char * | rs2::configurations::viewer::last_calib_notice { "viewer_model.last_calib_notice" } |
static const char * | rs2::configurations::viewer::last_ip { "viewer_model.last_ip" } |
static const ImVec4 | light_blue = from_rgba(0, 174, 239, 255, true) |
static const ImVec4 | light_grey = from_rgba(0xc3, 0xd5, 0xe5, 0xff, true) |
static const ImVec4 | light_red = from_rgba(255, 146, 154, 255, true) |
static const textual_icon | rs2::textual_icons::link { u8"\uf08e" } |
static const textual_icon | rs2::textual_icons::lock { u8"\uf023" } |
static const char * | rs2::configurations::viewer::log_filename { "viewer_model.log_filename" } |
static const char * | rs2::configurations::viewer::log_severity { "viewer_model.log_severity" } |
static const char * | rs2::configurations::viewer::log_to_console { "viewer_model.log_to_console" } |
static const char * | rs2::configurations::viewer::log_to_file { "viewer_model.log_to_file" } |
static const textual_icon | rs2::textual_icons::mail { u8"\uF01C" } |
static const char * | rs2::configurations::window::maximized { "window.maximized" } |
static const textual_icon | rs2::textual_icons::measure { u8"\uf545" } |
static const char * | rs2::configurations::ply::mesh { "ply.mesh" } |
static const textual_icon | rs2::textual_icons::metadata { u8"\uF0AE" } |
static const char * | rs2::configurations::viewer::metric_system { "viewer_model.metric_system" } |
static const textual_icon | rs2::textual_icons::minus { u8"\uf068" } |
static const char * | rs2::configurations::performance::msaa_samples { "performance.msaa_samples" } |
static const char * | rs2::configurations::performance::occlusion_invalidation { "performance.occlusion_invalidation" } |
static const ImVec4 | orange = from_rgba(255, 157, 0, 255, true) |
static const char * | rs2::configurations::viewer::output_open { "viewer_model.output_open" } |
static const textual_icon | rs2::textual_icons::pause { u8"\uf04c" } |
static const textual_icon | rs2::textual_icons::play { u8"\uf04b" } |
static const textual_icon | rs2::textual_icons::plus_circle { u8"\uf055" } |
static const char * | rs2::configurations::window::position_x { "window.position_x" } |
static const char * | rs2::configurations::window::position_y { "window.position_y" } |
static const char * | rs2::configurations::viewer::post_processing { "viewer_model.post_processing" } |
static const textual_icon | rs2::textual_icons::question_mark { u8"\uf059" } |
static const char * | rs2::configurations::update::recommend_calibration { "update.recommend_calibration" } |
static const char * | rs2::configurations::update::recommend_updates { "update.recommend_updates" } |
static const ImVec4 | red = from_rgba(233, 0, 0, 255, true) |
static const ImVec4 | redish = from_rgba(255, 46, 54, 255, true) |
static const textual_icon | rs2::textual_icons::refresh { u8"\uf021" } |
static const ImVec4 | regular_blue = from_rgba(0, 115, 200, 255, true) |
static const textual_icon | rs2::textual_icons::repeat { u8"\uf0e2" } |
static const char * | rs2::configurations::window::saved_pos { "window.saved_pos" } |
static const char * | rs2::configurations::window::saved_size { "window.saved_size" } |
static const ImVec4 | scrollbar_bg = from_rgba(14, 17, 20, 255) |
static const ImVec4 | scrollbar_grab = from_rgba(54, 66, 67, 255) |
static const char * | rs2::configurations::viewer::sdk_version { "viewer_model.sdk_version" } |
static const char * | rs2::configurations::viewer::search_term { "viewer_model.search_term" } |
static const textual_icon | rs2::textual_icons::see_less { u8"\uf070" } |
static const ImVec4 | sensor_bg = from_rgba(36, 44, 51, 0xff) |
static const ImVec4 | sensor_header_light_blue = from_rgba(80, 99, 115, 0xff) |
constexpr const char * | rs2::server_versions_db_url = "https://librealsense.intel.com/Releases/rs_versions_db.json" |
static const char * | rs2::configurations::viewer::settings_tab { "viewer_model.settings_tab" } |
static const char * | rs2::configurations::viewer::shading_mode { "viewer_model.shading_mode" } |
static const textual_icon | rs2::textual_icons::shopping_cart { u8"\uf07a" } |
static const char * | rs2::configurations::performance::show_fps { "performance.show_fps" } |
static const char * | rs2::configurations::viewer::show_map_ruler { "viewer_model.show_map_ruler" } |
static const char * | rs2::configurations::performance::show_skybox { "performance.show_skybox" } |
static const char * | rs2::configurations::viewer::show_stream_details { "viewer_model.show_stream_details" } |
static const textual_icon | rs2::textual_icons::square { u8"\uf0c8" } |
static const textual_icon | rs2::textual_icons::square_o { u8"\uf096" } |
static const textual_icon | rs2::textual_icons::step_backward { u8"\uf048" } |
static const textual_icon | rs2::textual_icons::step_forward { u8"\uf051" } |
static const textual_icon | rs2::textual_icons::stop { u8"\uf04d" } |
static const char * | rs2::configurations::update::sw_updates_official_server { "update.sw_update_official_server" } |
static const char * | rs2::configurations::update::sw_updates_url { "update.sw_update_url" } |
static const char * | rs2::configurations::viewer::target_height_r { "viewer_model.target_height_r" } |
static const char * | rs2::configurations::viewer::target_width_r { "viewer_model.target_width_r" } |
static const textual_icon | rs2::textual_icons::throphy { u8"\uF091" } |
static const textual_icon | rs2::textual_icons::times { u8"\uf00d" } |
static const ImVec4 | title_color = from_rgba(27, 33, 38, 255) |
static const textual_icon | rs2::textual_icons::toggle_off { u8"\uf204" } |
static const textual_icon | rs2::textual_icons::toggle_on { u8"\uf205" } |
static const ImVec4 | transparent = from_rgba(0, 0, 0, 0, true) |
static const textual_icon | rs2::textual_icons::unlock { u8"\uf09c" } |
static const textual_icon | rs2::textual_icons::upload { u8"\uf093" } |
static const textual_icon | rs2::textual_icons::usb_type { u8"\uf287" } |
static const char * | rs2::configurations::ply::use_normals { "ply.normals" } |
static const textual_icon | rs2::textual_icons::video_camera { u8"\uf03d" } |
static const char * | rs2::configurations::performance::vsync { "performance.vsync" } |
static const ImVec4 | white = from_rgba(0xff, 0xff, 0xff, 0xff, true) |
static const char * | rs2::configurations::window::width { "window.width" } |
static const textual_icon | rs2::textual_icons::window_maximize { u8"\uf2d0" } |
static const textual_icon | rs2::textual_icons::window_restore { u8"\uf2d2" } |
static const ImVec4 | yellow = from_rgba(229, 195, 101, 255, true) |
static const ImVec4 | yellowish = from_rgba(255, 253, 191, 255, true) |
#define GLFW_INCLUDE_GLU |
Definition at line 12 of file model-views.h.
Definition at line 77 of file model-views.h.
Definition at line 107 of file model-views.cpp.
Definition at line 68 of file model-views.h.
Definition at line 116 of file model-views.cpp.
Definition at line 72 of file model-views.h.
Definition at line 42 of file model-views.h.
Definition at line 43 of file model-views.h.
Definition at line 55 of file model-views.h.
Definition at line 49 of file model-views.h.
Definition at line 54 of file model-views.h.
Definition at line 63 of file model-views.h.
Definition at line 41 of file model-views.h.
Definition at line 59 of file model-views.h.
Definition at line 62 of file model-views.h.
Definition at line 65 of file model-views.h.
|
static |
Definition at line 48 of file model-views.h.
Definition at line 57 of file model-views.h.
Definition at line 56 of file model-views.h.
Definition at line 38 of file model-views.h.
Definition at line 40 of file model-views.h.
Definition at line 53 of file model-views.h.
Definition at line 66 of file model-views.h.
Definition at line 64 of file model-views.h.
Definition at line 52 of file model-views.h.
Definition at line 39 of file model-views.h.
Definition at line 46 of file model-views.h.
Definition at line 47 of file model-views.h.
Definition at line 51 of file model-views.h.
Definition at line 50 of file model-views.h.
Definition at line 58 of file model-views.h.
Definition at line 44 of file model-views.h.
Definition at line 45 of file model-views.h.
Definition at line 60 of file model-views.h.
Definition at line 61 of file model-views.h.