Public Types | Public Member Functions | Public Attributes | List of all members
rs2::autocalib_notification_model Struct Reference

#include <on-chip-calib.h>

Inheritance diagram for rs2::autocalib_notification_model:
Inheritance graph
[legend]

Public Types

enum  auto_calib_ui_state {
  RS2_CALIB_STATE_INITIAL_PROMPT, RS2_CALIB_STATE_FAILED, RS2_CALIB_STATE_COMPLETE, RS2_CALIB_STATE_CALIB_IN_PROCESS,
  RS2_CALIB_STATE_CALIB_COMPLETE, RS2_CALIB_STATE_TARE_INPUT, RS2_CALIB_STATE_TARE_INPUT_ADVANCED, RS2_CALIB_STATE_SELF_INPUT,
  RS2_CALIB_STATE_GET_TARE_GROUND_TRUTH, RS2_CALIB_STATE_GET_TARE_GROUND_TRUTH_IN_PROCESS, RS2_CALIB_STATE_GET_TARE_GROUND_TRUTH_COMPLETE, RS2_CALIB_STATE_GET_TARE_GROUND_TRUTH_FAILED
}
 

Public Member Functions

 autocalib_notification_model (std::string name, std::shared_ptr< on_chip_calib_manager > manager, bool expaned)
 
int calc_height () override
 
void dismiss (bool snooze) override
 
void draw_content (ux_window &win, int x, int y, float t, std::string &error_message) override
 
void draw_dismiss (ux_window &win, int x, int y) override
 
void draw_expanded (ux_window &win, std::string &error_message) override
 
void draw_intrinsic_extrinsic (int x, int y)
 
on_chip_calib_managerget_manager ()
 
void set_color_scheme (float t) const override
 
- Public Member Functions inherited from rs2::process_notification_model
void draw_pre_effect (int x, int y) override
 
void draw_progress_bar (ux_window &win, int w)
 
 process_notification_model (std::shared_ptr< process_manager > manager)
 
- Public Member Functions inherited from rs2::notification_model
void delay (int days)
 
std::function< void()> draw (ux_window &win, int w, int y, std::shared_ptr< notification_model > &selected, std::string &error_message)
 
void draw_text (const char *msg, int x, int y, int h)
 
double get_age_in_ms (bool total=false) const
 
virtual int get_max_lifetime_ms () const
 
std::string get_title ()
 
bool interacted () const
 
void invoke (std::function< void()> action)
 
template<class dst_type >
bool is ()
 
bool is_delayed () const
 
 notification_model ()
 
 notification_model (const notification_data &n)
 
void unset_color_scheme () const
 

Public Attributes

std::string _error_message = ""
 
bool use_new_calib = true
 
- Public Attributes inherited from rs2::process_notification_model
progress_bar _progress_bar
 
std::shared_ptr< process_managerupdate_manager = nullptr
 
int update_state = 0
 
int update_state_prev = 0
 
- Public Attributes inherited from rs2::notification_model
bool animating = false
 
rs2_notification_category category
 
int count = 1
 
std::chrono::system_clock::time_point created_time
 
std::function< void()> custom_action
 
std::string delay_id = ""
 
bool dismissed = false
 
single_consumer_queue< std::function< void()> > dispatch_queue
 
bool enable_click = false
 
bool enable_complex_dismiss = false
 
bool enable_dismiss = true
 
bool enable_expand = true
 
bool expanded = false
 
bool forced = false
 
int height = 40
 
int index = 0
 
std::chrono::system_clock::time_point last_interacted
 
std::chrono::system_clock::time_point last_moved
 
float last_x
 
float last_y
 
int max_stack = 3
 
std::string message
 
bool pinned = false
 
rs2_log_severity severity = RS2_LOG_SEVERITY_NONE
 
bool snoozed = false
 
int stack_offset = 4
 
double timestamp = 0.0
 
bool to_close = false
 
bool visible = true
 
int width = 320
 

Detailed Description

Definition at line 132 of file on-chip-calib.h.

Member Enumeration Documentation

Enumerator
RS2_CALIB_STATE_INITIAL_PROMPT 
RS2_CALIB_STATE_FAILED 
RS2_CALIB_STATE_COMPLETE 
RS2_CALIB_STATE_CALIB_IN_PROCESS 
RS2_CALIB_STATE_CALIB_COMPLETE 
RS2_CALIB_STATE_TARE_INPUT 
RS2_CALIB_STATE_TARE_INPUT_ADVANCED 
RS2_CALIB_STATE_SELF_INPUT 
RS2_CALIB_STATE_GET_TARE_GROUND_TRUTH 
RS2_CALIB_STATE_GET_TARE_GROUND_TRUTH_IN_PROCESS 
RS2_CALIB_STATE_GET_TARE_GROUND_TRUTH_COMPLETE 
RS2_CALIB_STATE_GET_TARE_GROUND_TRUTH_FAILED 

Definition at line 134 of file on-chip-calib.h.

Constructor & Destructor Documentation

rs2::autocalib_notification_model::autocalib_notification_model ( std::string  name,
std::shared_ptr< on_chip_calib_manager manager,
bool  expaned 
)

Definition at line 1797 of file on-chip-calib.cpp.

Member Function Documentation

int rs2::autocalib_notification_model::calc_height ( )
overridevirtual

Reimplemented from rs2::notification_model.

Definition at line 1754 of file on-chip-calib.cpp.

void rs2::autocalib_notification_model::dismiss ( bool  snooze)
overridevirtual

Reimplemented from rs2::notification_model.

Definition at line 1662 of file on-chip-calib.cpp.

void rs2::autocalib_notification_model::draw_content ( ux_window win,
int  x,
int  y,
float  t,
std::string error_message 
)
overridevirtual

Reimplemented from rs2::notification_model.

Definition at line 740 of file on-chip-calib.cpp.

void rs2::autocalib_notification_model::draw_dismiss ( ux_window win,
int  x,
int  y 
)
overridevirtual

Reimplemented from rs2::notification_model.

Definition at line 676 of file on-chip-calib.cpp.

void rs2::autocalib_notification_model::draw_expanded ( ux_window win,
std::string error_message 
)
overridevirtual

Reimplemented from rs2::notification_model.

Definition at line 1678 of file on-chip-calib.cpp.

void rs2::autocalib_notification_model::draw_intrinsic_extrinsic ( int  x,
int  y 
)

Definition at line 708 of file on-chip-calib.cpp.

on_chip_calib_manager& rs2::autocalib_notification_model::get_manager ( )
inline

Definition at line 153 of file on-chip-calib.h.

void rs2::autocalib_notification_model::set_color_scheme ( float  t) const
overridevirtual

Reimplemented from rs2::notification_model.

Definition at line 1772 of file on-chip-calib.cpp.

Member Data Documentation

std::string rs2::autocalib_notification_model::_error_message = ""

Definition at line 166 of file on-chip-calib.h.

bool rs2::autocalib_notification_model::use_new_calib = true

Definition at line 165 of file on-chip-calib.h.


The documentation for this struct 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:40