Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
rs2 Namespace Reference

Namespaces

 configurations
 
 depth_quality
 
 gl
 
 http
 
 internal
 
 sw_update
 
 textual_icons
 
 tools
 

Classes

class  align
 
class  animated
 
class  asynchronous_syncer
 
class  auto_calibrated_device
 
struct  autocalib_notification_model
 
class  cah_model
 
class  calibrated_device
 
class  calibrated_sensor
 
class  calibration_change_callback
 
class  calibration_change_device
 
class  calibration_model
 
class  color_map
 
class  color_sensor
 
class  colorizer
 
class  config
 
class  config_file
 
class  config_value
 
class  context
 
class  context_ref
 
class  debug_protocol
 
class  debug_stream_sensor
 
class  decimation_filter
 
class  depth_frame
 
class  depth_huffman_decoder
 
class  depth_sensor
 
class  depth_stereo_sensor
 
class  device
 
class  device_calibration
 
class  device_changes
 
class  device_hub
 
class  device_list
 
class  device_model
 
class  devices_changed_callback
 
class  disparity_frame
 
class  disparity_transform
 
class  error
 
class  error_ref
 
class  event_information
 
class  export_manager
 
struct  export_model
 
struct  export_notification_model
 
class  fbo
 
class  filter
 
class  filter_interface
 
class  firmware_log_message
 
class  firmware_log_parsed_message
 
class  firmware_logger
 
class  firmware_update_manager
 
class  fisheye_sensor
 
struct  float2
 
struct  float3
 
struct  float4
 
class  fps_calc
 
class  frame
 
class  frame_callback
 
class  frame_drops_dashboard
 
struct  frame_metadata
 
class  frame_processor_callback
 
class  frame_queue
 
class  frame_queues
 
class  frame_source
 
class  frameset
 
class  frameset_allocator
 
struct  fw_update_notification_model
 
class  hdr_merge
 
class  hole_filling_filter
 
struct  int3
 
struct  interest_point
 
class  log_callback
 
class  log_message
 
struct  matrix4
 
class  max_usable_range_sensor
 
class  measurement
 
struct  measurement_state
 
class  metadata_helper
 
struct  metadata_warning_model
 
class  mock_context
 
class  motion_frame
 
class  motion_sensor
 
class  motion_stream_profile
 
struct  mouse_info
 
class  net_device
 
class  notification
 
class  notification_data
 
struct  notification_model
 
class  notifications_callback
 
struct  notifications_model
 
struct  obj_mesh
 
class  on_chip_calib_manager
 
class  option_model
 
struct  option_range
 
class  options
 
class  output_model
 
class  pipeline
 
class  pipeline_profile
 
struct  plane
 
class  playback
 
class  pointcloud
 
class  points
 
struct  popup
 
class  pose_frame
 
class  pose_sensor
 
class  pose_stream_profile
 
class  post_processing_block_model
 
class  post_processing_filters
 
class  press_button_model
 
class  process_manager
 
struct  process_notification_model
 
class  processing_block
 
class  processing_block_model
 
struct  progress_bar
 
class  rates_printer
 
class  recorder
 
class  recording_context
 
struct  rect
 
class  rect_calculator
 
class  reflectivity
 
struct  region_of_interest
 
class  roi_sensor
 
class  save_single_frameset
 
class  save_to_ply
 
class  sensor
 
class  sequence_id_filter
 
class  serializable_device
 
class  shader
 
class  shader_program
 
class  software_device
 
class  software_device_destruction_callback
 
class  software_sensor
 
class  spatial_filter
 
class  splash_screen_shader
 
class  status_changed_callback
 
class  stream_dashboard
 
class  stream_model
 
class  stream_profile
 
class  subdevice_model
 
struct  subdevice_ui_selection
 
struct  sw_recommended_update_alert_model
 
class  syncer
 
class  syncer_model
 
class  temporal_event
 
class  temporal_filter
 
class  terminal_parser
 
struct  textual_icon
 
class  texture_2d_shader
 
class  texture_buffer
 
struct  texture_coordinate
 
class  texture_visualizer
 
class  threshold_filter
 
class  tm2
 
class  tm2_model
 
struct  to_string
 
class  units_transform
 
class  updatable
 
class  update_device
 
class  update_progress_callback
 
class  updates_model
 
class  ux_window
 
class  vao
 
class  vbo
 
struct  vec3d
 
struct  version_upgrade_model
 
struct  vertex
 
class  video_frame
 
class  video_stream_profile
 
class  viewer_model
 
class  viewer_ui_traits
 
class  visualizer_2d
 
class  wheel_odometer
 
class  yuy_decoder
 
class  zero_order_invalidation
 

Typedefs

typedef std::vector< uint8_tcalibration_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, rectstreams_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_tbytes_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, rectgenerate_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::stringget_device_info (const device &dev, bool include_location)
 
std::pair< std::string, std::stringget_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_tget_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 >
non_negative (const T &input)
 
template<typename 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_tread_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< sensorsensor_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::stringsplit_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_3dsubdivide (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 >
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 Documentation

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.

Enumeration Type Documentation

Enumerator
open_file 
save_file 

Definition at line 39 of file os.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.

enum rs2::shader_type
strong
Enumerator
vertex 
fragment 

Definition at line 28 of file opengl3.h.

Enumerator
user_desktop 
user_documents 
user_pictures 
user_videos 
temp_folder 
app_data 

Definition at line 51 of file os.h.

enum rs2::vbo_type
strong
Enumerator
array_buffer 
element_array_buffer 

Definition at line 98 of file opengl3.h.

Function Documentation

ImVec4 rs2::alpha ( const ImVec4 v,
float  a 
)
inline

Definition at line 244 of file notifications.h.

std::string rs2::api_version_to_string ( int  version)
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.

float rs2::clamp ( float  x,
float  min,
float  max 
)
inline

Definition at line 103 of file rendering.h.

rs2_pose rs2::correct_tm2_pose ( const rs2_pose pose)
inline

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.

vec3d rs2::cross ( const vec3d a,
const vec3d b 
)
inline

Definition at line 32 of file rs_export.hpp.

float3 rs2::cross ( const float3 a,
const float3 b 
)
inline

Definition at line 153 of file rendering.h.

bool rs2::directory_exists ( const char *  dir)

Definition at line 157 of file os.cpp.

float rs2::dot ( const rs2::float2 a,
const rs2::float2 b 
)
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.

void rs2::draw_rect ( const rect r,
int  line_width 
)

Definition at line 2254 of file model-views.cpp.

void rs2::draw_text ( int  x,
int  y,
const char *  text 
)
inline

Definition at line 717 of file rendering.h.

void rs2::enable_rolling_log_file ( unsigned  max_size)
inline

Definition at line 47 of file rs.hpp.

bool rs2::ends_with ( const std::string s,
const std::string suffix 
)

Definition at line 335 of file os.cpp.

std::string rs2::error_to_string ( const error e)
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.

float rs2::evaluate_plane ( const plane plane,
const float3 point 
)
inline

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 
)

Definition at line 169 of file os.cpp.

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)

Definition at line 224 of file os.cpp.

std::string rs2::get_folder_path ( special_folder  f)

Definition at line 247 of file os.cpp.

rect rs2::get_monitor_rect ( GLFWmonitor monitor)

Definition at line 107 of file os.cpp.

std::string rs2::get_os_name ( )

Definition at line 351 of file os.cpp.

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 ( )

Definition at line 237 of file os.cpp.

rect rs2::get_window_rect ( GLFWwindow window)

Definition at line 95 of file os.cpp.

void rs2::hyperlink ( ux_window window,
const char *  title,
const char *  link 
)

Definition at line 319 of file model-views.cpp.

matrix4 rs2::identity_matrix ( )
inline

Definition at line 1631 of file rendering.h.

void rs2::imgui_easy_theming ( ImFont *&  font_14,
ImFont *&  font_18,
ImFont *&  monofont 
)

Definition at line 188 of file model-views.cpp.

bool rs2::is_debug ( )

Definition at line 368 of file os.cpp.

bool rs2::is_integer ( float  f)
inline

Definition at line 1571 of file rendering.h.

bool rs2::is_rasterizeable ( rs2_format  format)
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.

bool rs2::is_valid ( const plane_3d p)
inline

Definition at line 243 of file rendering.h.

float rs2::lerp ( float  a,
float  b,
float  t 
)
inline

Definition at line 122 of file rendering.h.

float3 rs2::lerp ( const float3 a,
const float3 b,
float  t 
)
inline

Definition at line 183 of file rendering.h.

rs2::float2 rs2::lerp ( const rs2::float2 a,
const rs2::float2 b,
float  t 
)
inline

Definition at line 205 of file rendering.h.

float3 rs2::lerp ( const std::array< float3, 4 > &  rect,
const float2 p 
)
inline

Definition at line 210 of file rendering.h.

void rs2::log ( rs2_log_severity  severity,
const char *  message 
)
inline

Definition at line 149 of file rs.hpp.

template<typename S >
void rs2::log_to_callback ( rs2_log_severity  min_severity,
callback 
)
inline

Definition at line 139 of file rs.hpp.

void rs2::log_to_console ( rs2_log_severity  min_severity)
inline

Definition at line 19 of file rs.hpp.

void rs2::log_to_file ( rs2_log_severity  min_severity,
const char *  file_path = nullptr 
)
inline

Definition at line 26 of file rs.hpp.

obj_mesh rs2::make_grid ( int  a,
int  b 
)
inline

Definition at line 272 of file opengl3.h.

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.

template<typename T >
T rs2::non_negative ( const T &  input)

Definition at line 30 of file viewer.cpp.

template<typename T >
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.

void rs2::open_url ( const char *  url)

Definition at line 58 of file os.cpp.

float3 rs2::operator* ( const float3 a,
float  t 
)
inline

Definition at line 163 of file rendering.h.

float rs2::operator* ( const float3 a,
const float3 b 
)
inline

Definition at line 238 of file rendering.h.

float2 rs2::operator* ( float  a,
float2  b 
)
inline

Definition at line 267 of file rendering.h.

matrix4 rs2::operator* ( const matrix4 a,
const matrix4 b 
)
inline

Definition at line 412 of file rendering.h.

float4 rs2::operator* ( const matrix4 a,
const float4 b 
)
inline

Definition at line 430 of file rendering.h.

vec3d rs2::operator+ ( const vec3d a,
const vec3d b 
)
inline

Definition at line 30 of file rs_export.hpp.

float3 rs2::operator+ ( const float3 a,
const float3 b 
)
inline

Definition at line 173 of file rendering.h.

vec3d rs2::operator- ( const vec3d a,
const vec3d b 
)
inline

Definition at line 31 of file rs_export.hpp.

float3 rs2::operator- ( const float3 a,
const float3 b 
)
inline

Definition at line 178 of file rendering.h.

float2 rs2::operator- ( float2  a,
float2  b 
)
inline

Definition at line 262 of file rendering.h.

float3 rs2::operator/ ( const float3 a,
float  t 
)
inline

Definition at line 168 of file rendering.h.

std::ostream& rs2::operator<< ( std::ostream &  os,
const textual_icon i 
)
inline

Definition at line 118 of file model-views.h.

static std::ostream& rs2::operator<< ( std::ostream &  os,
stream_profile const &  sp 
)
static

Definition at line 152 of file ac-trigger.cpp.

bool rs2::operator== ( const plane lhs,
const plane rhs 
)
inline

Definition at line 134 of file rendering.h.

bool rs2::operator== ( const sensor lhs,
const sensor rhs 
)
inline

Definition at line 363 of file rs_sensor.hpp.

void rs2::outline_rect ( const rect r)

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)

Definition at line 119 of file os.cpp.

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.

template<class T >
void rs2::push_back_if_not_exists ( std::vector< T > &  vec,
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.

void rs2::release_context_ref ( rs2_context Handle)
inline

Definition at line 12 of file RealSenseNative.h.

void rs2::reset_logger ( )
inline

Definition at line 33 of file rs.hpp.

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   
)
template<typename T >
std::string rs2::safe_call ( t)

Definition at line 136 of file model-views.cpp.

ImVec4 rs2::saturate ( const ImVec4 a,
float  f 
)
inline

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.

int rs2::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 
)

Definition at line 217 of file os.cpp.

std::shared_ptr<sensor> rs2::sensor_from_frame ( frame  f)
inline

Definition at line 357 of file rs_sensor.hpp.

float rs2::single_wave ( float  x)
inline

Definition at line 1643 of file rendering.h.

float rs2::smoothstep ( float  x,
float  min,
float  max 
)
inline

Definition at line 108 of file rendering.h.

template<class T >
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 
)

Definition at line 79 of file os.cpp.

bool rs2::starts_with ( const std::string s,
const std::string prefix 
)

Definition at line 343 of file os.cpp.

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.

std::vector<plane_3d> rs2::subdivide ( const plane_3d rect,
int  parts = 4 
)
inline

Definition at line 219 of file rendering.h.

matrix4 rs2::tm2_pose_to_world_transformation ( const rs2_pose pose)
inline

Definition at line 441 of file rendering.h.

float rs2::to_rad ( float  deg)
inline

Definition at line 1626 of file rendering.h.

float2 rs2::translate_3d_to_2d ( float3  point,
matrix4  p,
matrix4  v,
matrix4  f,
int32_t  vp[4] 
)
inline

Definition at line 1650 of file rendering.h.

std::string rs2::truncate_string ( const std::string str,
size_t  width 
)

Definition at line 47 of file os.cpp.

template<typename T >
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)

Definition at line 381 of file os.cpp.

template<typename T >
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.

Variable Documentation

const float rs2::FEET_TO_METER = 0.3048f
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.



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