Public Member Functions | Public Attributes | List of all members
toggle Struct Reference

Public Member Functions

float dist_2d (const toggle &other) const
 
pixel get_pixel (rs2::depth_frame frm) const
 
void render (const window &app)
 
void render_circle (const window &app, float r)
 
 toggle ()
 
 toggle (float xl, float yl)
 

Public Attributes

bool selected = false
 
float x
 
float y
 

Detailed Description

Definition at line 25 of file rs-measure.cpp.

Constructor & Destructor Documentation

toggle::toggle ( )
inline

Definition at line 27 of file rs-measure.cpp.

toggle::toggle ( float  xl,
float  yl 
)
inline

Definition at line 28 of file rs-measure.cpp.

Member Function Documentation

float toggle::dist_2d ( const toggle other) const
inline

Definition at line 70 of file rs-measure.cpp.

pixel toggle::get_pixel ( rs2::depth_frame  frm) const
inline

Definition at line 34 of file rs-measure.cpp.

void toggle::render ( const window app)
inline

Definition at line 41 of file rs-measure.cpp.

void toggle::render_circle ( const window app,
float  r 
)
inline

Definition at line 50 of file rs-measure.cpp.

Member Data Documentation

bool toggle::selected = false

Definition at line 77 of file rs-measure.cpp.

float toggle::x

Definition at line 75 of file rs-measure.cpp.

float toggle::y

Definition at line 76 of file rs-measure.cpp.


The documentation for this struct was generated from the following file:


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