Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
rs2::stream_dashboard Class Referenceabstract

#include <output-model.h>

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

Public Member Functions

void add_frame (rs2::frame f)
 
virtual void clear (bool full=false)
 
void close ()
 
bool closing () const
 
virtual void draw (ux_window &win, rect r)=0
 
virtual int get_height () const
 
std::string get_name () const
 
 stream_dashboard (std::string name, int size)
 
virtual ~stream_dashboard ()
 

Protected Member Functions

void add_point (float x, float y)
 
void draw_dashboard (ux_window &win, rect &r)
 
virtual void process_frame (rs2::frame f)=0
 
template<class T >
read_shared_data (std::function< T()> action)
 
void write_shared_data (std::function< void()> action)
 

Private Member Functions

void thread_function ()
 

Private Attributes

std::mutex m
 
std::string name
 
rs2::frame_queue q
 
std::atomic< int > stop { false }
 
std::thread t
 
bool to_close = false
 
std::vector< std::pair< float, float > > xy
 

Detailed Description

Definition at line 18 of file output-model.h.

Constructor & Destructor Documentation

rs2::stream_dashboard::stream_dashboard ( std::string  name,
int  size 
)
inline

Definition at line 21 of file output-model.h.

virtual rs2::stream_dashboard::~stream_dashboard ( )
inlinevirtual

Definition at line 22 of file output-model.h.

Member Function Documentation

void rs2::stream_dashboard::add_frame ( rs2::frame  f)
inline

Definition at line 30 of file output-model.h.

void rs2::stream_dashboard::add_point ( float  x,
float  y 
)
inlineprotected

Definition at line 58 of file output-model.h.

virtual void rs2::stream_dashboard::clear ( bool  full = false)
inlinevirtual

Reimplemented in rs2::frame_drops_dashboard.

Definition at line 36 of file output-model.h.

void rs2::stream_dashboard::close ( )
inline

Definition at line 38 of file output-model.h.

bool rs2::stream_dashboard::closing ( ) const
inline

Definition at line 39 of file output-model.h.

virtual void rs2::stream_dashboard::draw ( ux_window win,
rect  r 
)
pure virtual

Implemented in rs2::frame_drops_dashboard.

void stream_dashboard::draw_dashboard ( ux_window win,
rect r 
)
protected

Definition at line 949 of file output-model.cpp.

virtual int rs2::stream_dashboard::get_height ( ) const
inlinevirtual

Reimplemented in rs2::frame_drops_dashboard.

Definition at line 34 of file output-model.h.

std::string rs2::stream_dashboard::get_name ( ) const
inline

Definition at line 28 of file output-model.h.

virtual void rs2::stream_dashboard::process_frame ( rs2::frame  f)
protectedpure virtual

Implemented in rs2::frame_drops_dashboard.

template<class T >
T rs2::stream_dashboard::read_shared_data ( std::function< T()>  action)
inlineprotected

Definition at line 51 of file output-model.h.

void rs2::stream_dashboard::thread_function ( )
inlineprivate

Definition at line 63 of file output-model.h.

void rs2::stream_dashboard::write_shared_data ( std::function< void()>  action)
inlineprotected

Definition at line 44 of file output-model.h.

Member Data Documentation

std::mutex rs2::stream_dashboard::m
private

Definition at line 74 of file output-model.h.

std::string rs2::stream_dashboard::name
private

Definition at line 72 of file output-model.h.

rs2::frame_queue rs2::stream_dashboard::q
private

Definition at line 73 of file output-model.h.

std::atomic<int> rs2::stream_dashboard::stop { false }
private

Definition at line 75 of file output-model.h.

std::thread rs2::stream_dashboard::t
private

Definition at line 76 of file output-model.h.

bool rs2::stream_dashboard::to_close = false
private

Definition at line 78 of file output-model.h.

std::vector<std::pair<float, float> > rs2::stream_dashboard::xy
private

Definition at line 77 of file output-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