Public Member Functions | Private Member Functions | Private Attributes | List of all members
rs2::depth_quality::tool_model Class Reference

#include <depth-quality-model.h>

Public Member Functions

void draw_guides (ux_window &win, const rect &viewer_rect, bool distance_guide, bool orientation_guide)
 
bool draw_instructions (ux_window &win, const rect &viewer_rect, bool &distance, bool &orientation)
 
rs2::device get_active_device (void) const
 
float get_depth_scale () const
 
std::shared_ptr< metric_plotmake_metric (const std::string &name, float min, float max, bool plane_fit, const std::string &units, const std::string &description)
 
void on_frame (callback_type callback)
 
void render (ux_window &win)
 
void reset (ux_window &win)
 
bool start (ux_window &win)
 
 tool_model (rs2::context &ctx)
 
void update_configuration ()
 

Private Member Functions

std::string capture_description ()
 

Private Attributes

temporal_event _angle_alert
 
rs2::context_ctx
 
std::map< int, temporal_event_depth_scale_events
 
std::shared_ptr< subdevice_model_depth_sensor_model
 
bool _device_in_use = false
 
std::shared_ptr< device_model_device_model
 
std::string _error_message
 
bool _first_frame = true
 
int _ground_truth = 0
 
rs2::points _last_points
 
texture_buffer_last_texture
 
float _max_angle
 
float _max_dist
 
metrics_model _metrics_model
 
float _min_dist
 
std::mutex _mutex
 
pipeline _pipe
 
int _roi_combo_index = 2
 
temporal_event _roi_located
 
float _roi_percent = 0.4f
 
temporal_event _skew_down
 
temporal_event _skew_left
 
temporal_event _skew_right
 
temporal_event _skew_up
 
temporal_event _too_close
 
temporal_event _too_far
 
utilities::time::periodic_timer _update_readonly_options_timer
 
bool _use_ground_truth = false
 
viewer_model _viewer_model
 

Detailed Description

Definition at line 353 of file depth-quality-model.h.

Constructor & Destructor Documentation

rs2::depth_quality::tool_model::tool_model ( rs2::context ctx)

Definition at line 14 of file depth-quality-model.cpp.

Member Function Documentation

std::string rs2::depth_quality::tool_model::capture_description ( )
private

Definition at line 1122 of file depth-quality-model.cpp.

void rs2::depth_quality::tool_model::draw_guides ( ux_window win,
const rect viewer_rect,
bool  distance_guide,
bool  orientation_guide 
)

Definition at line 263 of file depth-quality-model.cpp.

bool rs2::depth_quality::tool_model::draw_instructions ( ux_window win,
const rect viewer_rect,
bool &  distance,
bool &  orientation 
)

Definition at line 170 of file depth-quality-model.cpp.

rs2::device rs2::depth_quality::tool_model::get_active_device ( void  ) const

Definition at line 1109 of file depth-quality-model.cpp.

float rs2::depth_quality::tool_model::get_depth_scale ( ) const
inline

Definition at line 377 of file depth-quality-model.h.

std::shared_ptr< metric_plot > rs2::depth_quality::tool_model::make_metric ( const std::string name,
float  min,
float  max,
bool  plane_fit,
const std::string units,
const std::string description 
)

Definition at line 1098 of file depth-quality-model.cpp.

void rs2::depth_quality::tool_model::on_frame ( callback_type  callback)
inline

Definition at line 375 of file depth-quality-model.h.

void rs2::depth_quality::tool_model::render ( ux_window win)

Definition at line 449 of file depth-quality-model.cpp.

void rs2::depth_quality::tool_model::reset ( ux_window win)

Definition at line 983 of file depth-quality-model.cpp.

bool rs2::depth_quality::tool_model::start ( ux_window win)

Definition at line 42 of file depth-quality-model.cpp.

void rs2::depth_quality::tool_model::update_configuration ( )

Definition at line 870 of file depth-quality-model.cpp.

Member Data Documentation

temporal_event rs2::depth_quality::tool_model::_angle_alert
private

Definition at line 407 of file depth-quality-model.h.

rs2::context& rs2::depth_quality::tool_model::_ctx
private

Definition at line 384 of file depth-quality-model.h.

std::map<int, temporal_event> rs2::depth_quality::tool_model::_depth_scale_events
private

Definition at line 408 of file depth-quality-model.h.

std::shared_ptr<subdevice_model> rs2::depth_quality::tool_model::_depth_sensor_model
private

Definition at line 390 of file depth-quality-model.h.

bool rs2::depth_quality::tool_model::_device_in_use = false
private

Definition at line 395 of file depth-quality-model.h.

std::shared_ptr<device_model> rs2::depth_quality::tool_model::_device_model
private

Definition at line 386 of file depth-quality-model.h.

std::string rs2::depth_quality::tool_model::_error_message
private

Definition at line 392 of file depth-quality-model.h.

bool rs2::depth_quality::tool_model::_first_frame = true
private

Definition at line 393 of file depth-quality-model.h.

int rs2::depth_quality::tool_model::_ground_truth = 0
private

Definition at line 414 of file depth-quality-model.h.

rs2::points rs2::depth_quality::tool_model::_last_points
private

Definition at line 388 of file depth-quality-model.h.

texture_buffer* rs2::depth_quality::tool_model::_last_texture
private

Definition at line 389 of file depth-quality-model.h.

float rs2::depth_quality::tool_model::_max_angle
private

Definition at line 410 of file depth-quality-model.h.

float rs2::depth_quality::tool_model::_max_dist
private

Definition at line 410 of file depth-quality-model.h.

metrics_model rs2::depth_quality::tool_model::_metrics_model
private

Definition at line 391 of file depth-quality-model.h.

float rs2::depth_quality::tool_model::_min_dist
private

Definition at line 410 of file depth-quality-model.h.

std::mutex rs2::depth_quality::tool_model::_mutex
private

Definition at line 411 of file depth-quality-model.h.

pipeline rs2::depth_quality::tool_model::_pipe
private

Definition at line 385 of file depth-quality-model.h.

int rs2::depth_quality::tool_model::_roi_combo_index = 2
private

Definition at line 398 of file depth-quality-model.h.

temporal_event rs2::depth_quality::tool_model::_roi_located
private

Definition at line 399 of file depth-quality-model.h.

float rs2::depth_quality::tool_model::_roi_percent = 0.4f
private

Definition at line 397 of file depth-quality-model.h.

temporal_event rs2::depth_quality::tool_model::_skew_down
private

Definition at line 406 of file depth-quality-model.h.

temporal_event rs2::depth_quality::tool_model::_skew_left
private

Definition at line 403 of file depth-quality-model.h.

temporal_event rs2::depth_quality::tool_model::_skew_right
private

Definition at line 404 of file depth-quality-model.h.

temporal_event rs2::depth_quality::tool_model::_skew_up
private

Definition at line 405 of file depth-quality-model.h.

temporal_event rs2::depth_quality::tool_model::_too_close
private

Definition at line 402 of file depth-quality-model.h.

temporal_event rs2::depth_quality::tool_model::_too_far
private

Definition at line 401 of file depth-quality-model.h.

utilities::time::periodic_timer rs2::depth_quality::tool_model::_update_readonly_options_timer
private

Definition at line 394 of file depth-quality-model.h.

bool rs2::depth_quality::tool_model::_use_ground_truth = false
private

Definition at line 413 of file depth-quality-model.h.

viewer_model rs2::depth_quality::tool_model::_viewer_model
private

Definition at line 387 of file depth-quality-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