Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
rs2::depth_quality::metric_plot Class Reference

#include <depth-quality-model.h>

Inheritance diagram for rs2::depth_quality::metric_plot:
Inheritance graph
[legend]

Public Types

enum  range { GREEN_RANGE, YELLOW_RANGE, RED_RANGE, MAX_RANGE }
 

Public Member Functions

void add_value (float val)
 
void enable (bool enable)
 
bool enabled () const
 
std::string get_name ()
 
range get_range (float val) const
 
 metric_plot (const std::string &name, float min, float max, const std::string &units, const std::string &description, const bool with_plane_fit)
 
void render (ux_window &win)
 
bool requires_plane_fit () const
 
std::shared_ptr< metric_plotset (range r, float from, float to)
 
void visible (bool is_visible)
 
 ~metric_plot ()
 

Private Member Functions

bool has_trend (bool positive)
 

Private Attributes

std::string _description
 
bool _enabled
 
size_t _first_idx
 
std::string _id
 
size_t _idx
 
std::string _label
 
std::mutex _m
 
float _max
 
float _min
 
utilities::time::stopwatch _model_timer
 
std::string _name
 
temporal_event _persistent_visibility
 
const bool _requires_plane_fit
 
std::array< double, SIZE_timestamps
 
temporal_event _trending_down
 
temporal_event _trending_up
 
std::string _units
 
std::array< float, SIZE_vals
 
float2 ranges [MAX_RANGE]
 

Static Private Attributes

static const size_t SIZE = 200
 

Friends

class metrics_model
 

Detailed Description

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

Member Enumeration Documentation

Enumerator
GREEN_RANGE 
YELLOW_RANGE 
RED_RANGE 
MAX_RANGE 

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

Constructor & Destructor Documentation

rs2::depth_quality::metric_plot::metric_plot ( const std::string name,
float  min,
float  max,
const std::string units,
const std::string description,
const bool  with_plane_fit 
)
inline

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

rs2::depth_quality::metric_plot::~metric_plot ( )
inline

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

Member Function Documentation

void rs2::depth_quality::metric_plot::add_value ( float  val)
inline

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

void rs2::depth_quality::metric_plot::enable ( bool  enable)
inline

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

bool rs2::depth_quality::metric_plot::enabled ( void  ) const
inline

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

std::string rs2::depth_quality::metric_plot::get_name ( )
inline

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

range rs2::depth_quality::metric_plot::get_range ( float  val) const
inline

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

bool rs2::depth_quality::metric_plot::has_trend ( bool  positive)
private

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

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

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

bool rs2::depth_quality::metric_plot::requires_plane_fit ( ) const
inline

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

std::shared_ptr<metric_plot> rs2::depth_quality::metric_plot::set ( range  r,
float  from,
float  to 
)
inline

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

void rs2::depth_quality::metric_plot::visible ( bool  is_visible)
inline

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

Friends And Related Function Documentation

friend class metrics_model
friend

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

Member Data Documentation

std::string rs2::depth_quality::metric_plot::_description
private

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

bool rs2::depth_quality::metric_plot::_enabled
private

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

size_t rs2::depth_quality::metric_plot::_first_idx
private

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

std::string rs2::depth_quality::metric_plot::_id
private

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

size_t rs2::depth_quality::metric_plot::_idx
private

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

std::string rs2::depth_quality::metric_plot::_label
private

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

std::mutex rs2::depth_quality::metric_plot::_m
private

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

float rs2::depth_quality::metric_plot::_max
private

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

float rs2::depth_quality::metric_plot::_min
private

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

utilities::time::stopwatch rs2::depth_quality::metric_plot::_model_timer
private

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

std::string rs2::depth_quality::metric_plot::_name
private

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

temporal_event rs2::depth_quality::metric_plot::_persistent_visibility
private

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

const bool rs2::depth_quality::metric_plot::_requires_plane_fit
private

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

std::array<double, SIZE> rs2::depth_quality::metric_plot::_timestamps
private

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

temporal_event rs2::depth_quality::metric_plot::_trending_down
private

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

temporal_event rs2::depth_quality::metric_plot::_trending_up
private

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

std::string rs2::depth_quality::metric_plot::_units
private

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

std::array<float, SIZE> rs2::depth_quality::metric_plot::_vals
private

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

float2 rs2::depth_quality::metric_plot::ranges[MAX_RANGE]
private

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

const size_t rs2::depth_quality::metric_plot::SIZE = 200
staticprivate

Definition at line 204 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