Namespaces | |
configurations | |
depth_quality | |
gl | |
http | |
internal | |
sw_update | |
textual_icons | |
tools | |
Typedefs | |
typedef std::vector< uint8_t > | calibration_table |
using | color = std::array< float, 3 > |
using | colored_cube = std::array< std::pair< face, color >, 6 > |
typedef std::vector< std::unique_ptr< device_model > > | device_models_list |
using | face = std::array< float3, 4 > |
using | invoker = std::function< void(std::function< void()>)> |
using | plane_3d = std::array< float3, 4 > |
typedef std::map< int, rect > | streams_layout |
using | tracked_point = std::pair< rs2_vector, unsigned int > |
Enumerations | |
enum | file_dialog_mode { open_file = (1 << 0), save_file = (1 << 1) } |
enum | firmware_update_ui_state { RS2_FWU_STATE_INITIAL_PROMPT = 0, RS2_FWU_STATE_IN_PROGRESS = 1, RS2_FWU_STATE_COMPLETE = 2, RS2_FWU_STATE_FAILED = 3 } |
enum | shader_type { shader_type::vertex, shader_type::fragment } |
enum | special_folder { user_desktop, user_documents, user_pictures, user_videos, temp_folder, app_data } |
enum | vbo_type { vbo_type::array_buffer, vbo_type::element_array_buffer } |
Functions | |
ImVec4 | alpha (const ImVec4 &v, float a) |
std::string | api_version_to_string (int version) |
bool | big_button (bool *status, ux_window &win, int x, int y, const char *icon, const char *label, bool dropdown, bool enabled, const char *description, ImVec4 text_color=light_grey) |
void | bin_file_from_bytes (const std::string &filename, const std::vector< uint8_t > bytes) |
std::vector< uint8_t > | bytes_from_bin_file (const std::string &filename) |
float | clamp (float x, float min, float max) |
rs2_pose | correct_tm2_pose (const rs2_pose &pose) |
std::map< int, std::vector< uint8_t > > | create_default_fw_table () |
option_model | create_option_mode (rs2_option opt, std::shared_ptr< options > options, const std::string &opt_base_label, bool *options_invalidated, std::string &error_message) |
option_model | create_option_model (rs2_option opt, const std::string &opt_base_label, subdevice_model *model, std::shared_ptr< options > options, bool *options_invalidated, std::string &error_message) |
vec3d | cross (const vec3d &a, const vec3d &b) |
float3 | cross (const float3 &a, const float3 &b) |
bool | directory_exists (const char *dir) |
float | dot (const rs2::float2 &a, const rs2::float2 &b) |
bool | draw_combo_box (const std::string &id, const std::vector< std::string > &device_names, int &new_index) |
void | draw_rect (const rect &r, int line_width) |
void | draw_text (int x, int y, const char *text) |
void | enable_rolling_log_file (unsigned max_size) |
bool | ends_with (const std::string &s, const std::string &suffix) |
std::string | error_to_string (const error &e) |
float | evaluate_layout (const std::map< int, rect > &l) |
float | evaluate_plane (const plane &plane, const float3 &point) |
void | export_frame (const std::string &fname, std::unique_ptr< rs2::filter > exporter, notifications_model &ns, frame data, bool notify) |
const char * | file_dialog_open (file_dialog_mode flags, const char *filters, const char *default_path, const char *default_name) |
bool | frame_metadata_to_csv (const std::string &filename, rs2::frame frame) |
bool | fw_version_less_than (std::string fw_version, std::string min_fw_version) |
std::vector< int > | fw_version_to_int_vec (std::string fw_version) |
std::map< int, rect > | generate_layout (const rect &r, int top_bar_height, size_t factor, const std::set< stream_model * > &active_streams, std::map< stream_model *, int > &stream_index) |
std::string | get_available_firmware_version (int product_line) |
std::vector< std::string > | get_device_info (const device &dev, bool include_location) |
std::pair< std::string, std::string > | get_device_name (const device &dev) |
std::string | get_device_sensor_name (subdevice_model *sub) |
std::vector< std::pair< std::string, std::string > > | get_devices_names (const device_list &list) |
std::string | get_file_name (const std::string &path) |
std::string | get_folder_path (special_folder f) |
rect | get_monitor_rect (GLFWmonitor *monitor) |
std::string | get_os_name () |
std::vector< const char * > | get_string_pointers (const std::vector< std::string > &vec) |
std::tuple< uint8_t, uint8_t, uint8_t > | get_texcolor (video_frame texture, texture_coordinate texcoords) |
std::string | get_timestamped_file_name () |
rect | get_window_rect (GLFWwindow *window) |
void | hyperlink (ux_window &window, const char *title, const char *link) |
matrix4 | identity_matrix () |
void | imgui_easy_theming (ImFont *&font_14, ImFont *&font_18, ImFont *&monofont) |
bool | is_debug () |
bool | is_integer (float f) |
bool | is_rasterizeable (rs2_format format) |
bool | is_recommended_fw_available (std::string id) |
bool | is_upgradeable (const std::string &curr, const std::string &available) |
bool | is_valid (const plane_3d &p) |
float | lerp (float a, float b, float t) |
float3 | lerp (const float3 &a, const float3 &b, float t) |
rs2::float2 | lerp (const rs2::float2 &a, const rs2::float2 &b, float t) |
float3 | lerp (const std::array< float3, 4 > &rect, const float2 &p) |
void | log (rs2_log_severity severity, const char *message) |
template<typename S > | |
void | log_to_callback (rs2_log_severity min_severity, S callback) |
void | log_to_console (rs2_log_severity min_severity) |
void | log_to_file (rs2_log_severity min_severity, const char *file_path=nullptr) |
obj_mesh | make_grid (int a, int b) |
void GLAPIENTRY | MessageCallback (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam) |
bool | motion_data_to_csv (const std::string &filename, rs2::frame frame) |
template<typename T > | |
T | non_negative (const T &input) |
template<typename T > | |
T | normalizeT (const T &in_val, const T &min, const T &max) |
void | open_issue (std::string body) |
void | open_issue (const device_models_list &devices) |
void | open_url (const char *url) |
float3 | operator* (const float3 &a, float t) |
float | operator* (const float3 &a, const float3 &b) |
float2 | operator* (float a, float2 b) |
matrix4 | operator* (const matrix4 &a, const matrix4 &b) |
float4 | operator* (const matrix4 &a, const float4 &b) |
vec3d | operator+ (const vec3d &a, const vec3d &b) |
float3 | operator+ (const float3 &a, const float3 &b) |
vec3d | operator- (const vec3d &a, const vec3d &b) |
float3 | operator- (const float3 &a, const float3 &b) |
float2 | operator- (float2 a, float2 b) |
float3 | operator/ (const float3 &a, float t) |
std::ostream & | operator<< (std::ostream &os, const textual_icon &i) |
static std::ostream & | operator<< (std::ostream &os, stream_profile const &sp) |
bool | operator== (const plane &lhs, const plane &rhs) |
bool | operator== (const sensor &lhs, const sensor &rhs) |
void | outline_rect (const rect &r) |
std::vector< int > | parse_fw_version (const std::string &fw) |
int | parse_product_line (std::string id) |
int | pick_scale_factor (GLFWwindow *window) |
bool | pose_data_to_csv (const std::string &filename, rs2::frame frame) |
void | prepare_config_file () |
template<class T > | |
void | push_back_if_not_exists (std::vector< T > &vec, T value) |
std::vector< uint8_t > | read_fw_file (std::string file_path) |
void | release_context_ref (rs2_context *Handle) |
void | reset_logger () |
rs2_sensor_mode | resolution_from_width_height (int width, int height) |
bool | restore_processing_block (const char *name, std::shared_ptr< rs2::processing_block > pb, bool enable=true) |
RS2_ERROR_CLASS (recoverable_error, error) | |
RS2_ERROR_CLASS (unrecoverable_error, error) | |
RS2_ERROR_CLASS (camera_disconnected_error, unrecoverable_error) | |
RS2_ERROR_CLASS (backend_error, unrecoverable_error) | |
RS2_ERROR_CLASS (device_in_recovery_mode_error, unrecoverable_error) | |
RS2_ERROR_CLASS (invalid_value_error, recoverable_error) | |
RS2_ERROR_CLASS (wrong_api_call_sequence_error, recoverable_error) | |
RS2_ERROR_CLASS (not_implemented_error, recoverable_error) | |
template<typename T > | |
std::string | safe_call (T t) |
ImVec4 | saturate (const ImVec4 &a, float f) |
bool | save_frame_meta_data (const std::string &filename, rs2::frame frame) |
bool | save_frame_raw_data (const std::string &filename, rs2::frame frame) |
void | save_processing_block_to_config_file (const char *name, std::shared_ptr< rs2::processing_block > pb, bool enable) |
int | save_to_png (const char *filename, size_t pixel_width, size_t pixels_height, size_t bytes_per_pixel, const void *raster_data, size_t stride_bytes) |
std::shared_ptr< sensor > | sensor_from_frame (frame f) |
float | single_wave (float x) |
float | smoothstep (float x, float min, float max) |
template<class T > | |
void | sort_together (std::vector< T > &vec, std::vector< std::string > &names) |
std::vector< std::string > | split_string (std::string &input, char delim) |
bool | starts_with (const std::string &s, const std::string &prefix) |
bool | status_dialog (const std::string &title, const std::string &process_topic_text, const std::string &process_status_text, bool enable_close, ux_window &window) |
std::vector< plane_3d > | subdivide (const plane_3d &rect, int parts=4) |
matrix4 | tm2_pose_to_world_transformation (const rs2_pose &pose) |
float | to_rad (float deg) |
float2 | translate_3d_to_2d (float3 point, matrix4 p, matrix4 v, matrix4 f, int32_t vp[4]) |
std::string | truncate_string (const std::string &str, size_t width) |
template<typename T > | |
T | unnormalizeT (const T &in_val, const T &min, const T &max) |
std::string | url_encode (const std::string &value) |
template<typename T > | |
bool | val_in_range (const T &val, const std::initializer_list< T > &list) |
bool | 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 float | FEET_TO_METER = 0.3048f |
constexpr const char * | server_versions_db_url = "https://librealsense.intel.com/Releases/rs_versions_db.json" |
typedef std::vector<uint8_t> rs2::calibration_table |
Definition at line 285 of file rs_device.hpp.
using rs2::color = typedef std::array<float, 3> |
Definition at line 449 of file model-views.h.
using rs2::colored_cube = typedef std::array<std::pair<face, color>, 6> |
Definition at line 451 of file model-views.h.
typedef std::vector<std::unique_ptr<device_model> > rs2::device_models_list |
Definition at line 96 of file model-views.h.
using rs2::face = typedef std::array<float3, 4> |
Definition at line 450 of file model-views.h.
using rs2::invoker = typedef std::function<void(std::function<void()>)> |
Definition at line 109 of file notifications.h.
using rs2::plane_3d = typedef std::array<float3, 4> |
Definition at line 217 of file rendering.h.
typedef std::map<int, rect> rs2::streams_layout |
Definition at line 304 of file model-views.h.
using rs2::tracked_point = typedef std::pair<rs2_vector, unsigned int> |
Definition at line 452 of file model-views.h.
Enumerator | |
---|---|
RS2_FWU_STATE_INITIAL_PROMPT | |
RS2_FWU_STATE_IN_PROGRESS | |
RS2_FWU_STATE_COMPLETE | |
RS2_FWU_STATE_FAILED |
Definition at line 36 of file fw-update-helper.cpp.
|
strong |
enum rs2::special_folder |
|
strong |
Definition at line 244 of file notifications.h.
|
inline |
Definition at line 1590 of file rendering.h.
bool rs2::big_button | ( | bool * | status, |
ux_window & | win, | ||
int | x, | ||
int | y, | ||
const char * | icon, | ||
const char * | label, | ||
bool | dropdown, | ||
bool | enabled, | ||
const char * | description, | ||
ImVec4 | text_color = light_grey |
||
) |
Definition at line 306 of file viewer.cpp.
void rs2::bin_file_from_bytes | ( | const std::string & | filename, |
const std::vector< uint8_t > | bytes | ||
) |
Definition at line 180 of file model-views.cpp.
std::vector<uint8_t> rs2::bytes_from_bin_file | ( | const std::string & | filename | ) |
Definition at line 157 of file model-views.cpp.
|
inline |
Definition at line 103 of file rendering.h.
Definition at line 463 of file rendering.h.
std::map< int, std::vector< uint8_t > > rs2::create_default_fw_table | ( | ) |
Definition at line 67 of file fw-update-helper.cpp.
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 | ||
) |
option_model rs2::create_option_model | ( | rs2_option | opt, |
const std::string & | opt_base_label, | ||
subdevice_model * | model, | ||
std::shared_ptr< options > | options, | ||
bool * | options_invalidated, | ||
std::string & | error_message | ||
) |
Definition at line 515 of file model-views.cpp.
Definition at line 32 of file rs_export.hpp.
Definition at line 153 of file rendering.h.
|
inline |
Definition at line 200 of file rendering.h.
bool rs2::draw_combo_box | ( | const std::string & | id, |
const std::vector< std::string > & | device_names, | ||
int & | new_index | ||
) |
Definition at line 2533 of file model-views.cpp.
Definition at line 2254 of file model-views.cpp.
|
inline |
Definition at line 717 of file rendering.h.
bool rs2::ends_with | ( | const std::string & | s, |
const std::string & | suffix | ||
) |
|
inline |
Definition at line 1583 of file rendering.h.
float rs2::evaluate_layout | ( | const std::map< int, rect > & | l | ) |
Definition at line 1284 of file viewer.cpp.
Definition at line 158 of file rendering.h.
void rs2::export_frame | ( | const std::string & | fname, |
std::unique_ptr< rs2::filter > | exporter, | ||
notifications_model & | ns, | ||
frame | data, | ||
bool | notify | ||
) |
Definition at line 376 of file model-views.cpp.
const char * rs2::file_dialog_open | ( | file_dialog_mode | flags, |
const char * | filters, | ||
const char * | default_path, | ||
const char * | default_name | ||
) |
bool rs2::frame_metadata_to_csv | ( | const std::string & | filename, |
rs2::frame | frame | ||
) |
Definition at line 407 of file model-views.cpp.
bool rs2::fw_version_less_than | ( | std::string | fw_version, |
std::string | min_fw_version | ||
) |
Definition at line 6187 of file model-views.cpp.
std::vector<int> rs2::fw_version_to_int_vec | ( | std::string | fw_version | ) |
Definition at line 6171 of file model-views.cpp.
std::map<int, rect> rs2::generate_layout | ( | const rect & | r, |
int | top_bar_height, | ||
size_t | factor, | ||
const std::set< stream_model * > & | active_streams, | ||
std::map< stream_model *, int > & | stream_index | ||
) |
Definition at line 1248 of file viewer.cpp.
std::string rs2::get_available_firmware_version | ( | int | product_line | ) |
Definition at line 59 of file fw-update-helper.cpp.
std::vector< std::string > rs2::get_device_info | ( | const device & | dev, |
bool | include_location | ||
) |
Definition at line 4533 of file model-views.cpp.
std::pair< std::string, std::string > rs2::get_device_name | ( | const device & | dev | ) |
Definition at line 3683 of file model-views.cpp.
std::string rs2::get_device_sensor_name | ( | subdevice_model * | sub | ) |
Definition at line 933 of file model-views.cpp.
std::vector< std::pair< std::string, std::string > > rs2::get_devices_names | ( | const device_list & | list | ) |
Definition at line 4556 of file model-views.cpp.
std::string rs2::get_file_name | ( | const std::string & | path | ) |
std::string rs2::get_folder_path | ( | special_folder | f | ) |
rect rs2::get_monitor_rect | ( | GLFWmonitor * | monitor | ) |
std::string rs2::get_os_name | ( | ) |
std::vector<const char*> rs2::get_string_pointers | ( | const std::vector< std::string > & | vec | ) |
Definition at line 508 of file model-views.cpp.
std::tuple<uint8_t, uint8_t, uint8_t> rs2::get_texcolor | ( | video_frame | texture, |
texture_coordinate | texcoords | ||
) |
Definition at line 365 of file model-views.cpp.
std::string rs2::get_timestamped_file_name | ( | ) |
rect rs2::get_window_rect | ( | GLFWwindow * | window | ) |
Definition at line 319 of file model-views.cpp.
|
inline |
Definition at line 1631 of file rendering.h.
Definition at line 188 of file model-views.cpp.
|
inline |
Definition at line 1571 of file rendering.h.
|
inline |
Definition at line 1609 of file rendering.h.
bool rs2::is_recommended_fw_available | ( | std::string | id | ) |
Definition at line 44 of file fw-update-helper.cpp.
bool rs2::is_upgradeable | ( | const std::string & | curr, |
const std::string & | available | ||
) |
Definition at line 115 of file fw-update-helper.cpp.
|
inline |
Definition at line 243 of file rendering.h.
|
inline |
Definition at line 122 of file rendering.h.
Definition at line 183 of file rendering.h.
|
inline |
Definition at line 205 of file rendering.h.
|
inline |
Definition at line 210 of file rendering.h.
|
inline |
|
inline |
|
inline |
|
inline |
void GLAPIENTRY rs2::MessageCallback | ( | GLenum | source, |
GLenum | type, | ||
GLuint | id, | ||
GLenum | severity, | ||
GLsizei | length, | ||
const GLchar * | message, | ||
const void * | userParam | ||
) |
Definition at line 31 of file ux-window.cpp.
bool rs2::motion_data_to_csv | ( | const std::string & | filename, |
rs2::frame | frame | ||
) |
Definition at line 441 of file model-views.cpp.
T rs2::non_negative | ( | const T & | input | ) |
Definition at line 30 of file viewer.cpp.
T rs2::normalizeT | ( | const T & | in_val, |
const T & | min, | ||
const T & | max | ||
) |
Definition at line 484 of file rendering.h.
void rs2::open_issue | ( | std::string | body | ) |
Definition at line 331 of file model-views.cpp.
void rs2::open_issue | ( | const device_models_list & | devices | ) |
Definition at line 337 of file model-views.cpp.
Definition at line 163 of file rendering.h.
Definition at line 238 of file rendering.h.
Definition at line 267 of file rendering.h.
Definition at line 412 of file rendering.h.
Definition at line 430 of file rendering.h.
Definition at line 30 of file rs_export.hpp.
Definition at line 173 of file rendering.h.
Definition at line 31 of file rs_export.hpp.
Definition at line 178 of file rendering.h.
Definition at line 262 of file rendering.h.
Definition at line 168 of file rendering.h.
|
inline |
Definition at line 118 of file model-views.h.
|
static |
Definition at line 152 of file ac-trigger.cpp.
Definition at line 134 of file rendering.h.
Definition at line 363 of file rs_sensor.hpp.
Definition at line 2235 of file model-views.cpp.
std::vector< int > rs2::parse_fw_version | ( | const std::string & | fw | ) |
Definition at line 100 of file fw-update-helper.cpp.
int rs2::parse_product_line | ( | std::string | id | ) |
Definition at line 51 of file fw-update-helper.cpp.
int rs2::pick_scale_factor | ( | GLFWwindow * | window | ) |
bool rs2::pose_data_to_csv | ( | const std::string & | filename, |
rs2::frame | frame | ||
) |
Definition at line 468 of file model-views.cpp.
void rs2::prepare_config_file | ( | ) |
Definition at line 47 of file ux-window.cpp.
void rs2::push_back_if_not_exists | ( | std::vector< T > & | vec, |
T | value | ||
) |
Definition at line 293 of file model-views.h.
std::vector<uint8_t> rs2::read_fw_file | ( | std::string | file_path | ) |
Definition at line 1125 of file viewer.cpp.
|
inline |
Definition at line 12 of file RealSenseNative.h.
rs2_sensor_mode rs2::resolution_from_width_height | ( | int | width, |
int | height | ||
) |
Definition at line 46 of file model-views.cpp.
bool rs2::restore_processing_block | ( | const char * | name, |
std::shared_ptr< rs2::processing_block > | pb, | ||
bool | enable = true |
||
) |
Definition at line 287 of file model-views.cpp.
rs2::RS2_ERROR_CLASS | ( | recoverable_error | , |
error | |||
) |
rs2::RS2_ERROR_CLASS | ( | unrecoverable_error | , |
error | |||
) |
rs2::RS2_ERROR_CLASS | ( | camera_disconnected_error | , |
unrecoverable_error | |||
) |
rs2::RS2_ERROR_CLASS | ( | backend_error | , |
unrecoverable_error | |||
) |
rs2::RS2_ERROR_CLASS | ( | device_in_recovery_mode_error | , |
unrecoverable_error | |||
) |
rs2::RS2_ERROR_CLASS | ( | invalid_value_error | , |
recoverable_error | |||
) |
rs2::RS2_ERROR_CLASS | ( | wrong_api_call_sequence_error | , |
recoverable_error | |||
) |
rs2::RS2_ERROR_CLASS | ( | not_implemented_error | , |
recoverable_error | |||
) |
std::string rs2::safe_call | ( | T | t | ) |
Definition at line 136 of file model-views.cpp.
Definition at line 239 of file notifications.h.
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 | ||
) |
Definition at line 391 of file model-views.cpp.
void rs2::save_processing_block_to_config_file | ( | const char * | name, |
std::shared_ptr< rs2::processing_block > | pb, | ||
bool | enable | ||
) |
Definition at line 270 of file model-views.cpp.
Definition at line 357 of file rs_sensor.hpp.
|
inline |
Definition at line 1643 of file rendering.h.
|
inline |
Definition at line 108 of file rendering.h.
void rs2::sort_together | ( | std::vector< T > & | vec, |
std::vector< std::string > & | names | ||
) |
Definition at line 274 of file model-views.h.
std::vector< std::string > rs2::split_string | ( | std::string & | input, |
char | delim | ||
) |
bool rs2::starts_with | ( | const std::string & | s, |
const std::string & | prefix | ||
) |
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 | ||
) |
Definition at line 4649 of file model-views.cpp.
Definition at line 219 of file rendering.h.
Definition at line 441 of file rendering.h.
|
inline |
Definition at line 1626 of file rendering.h.
|
inline |
Definition at line 1650 of file rendering.h.
std::string rs2::truncate_string | ( | const std::string & | str, |
size_t | width | ||
) |
T rs2::unnormalizeT | ( | const T & | in_val, |
const T & | min, | ||
const T & | max | ||
) |
Definition at line 491 of file rendering.h.
std::string rs2::url_encode | ( | const std::string & | value | ) |
bool rs2::val_in_range | ( | const T & | val, |
const std::initializer_list< T > & | list | ||
) |
Definition at line 1599 of file rendering.h.
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 | ||
) |
Definition at line 4575 of file model-views.cpp.
|
static |
Definition at line 123 of file model-views.h.
constexpr const char* rs2::server_versions_db_url = "https://librealsense.intel.com/Releases/rs_versions_db.json" |
Definition at line 84 of file model-views.h.