Intel® RealSense™ Cross Platform API  2.13.0
Intel Realsense Cross-platform API
Public Member Functions | Friends | List of all members
rs2::software_sensor Class Reference

#include <rs_internal.hpp>

Inheritance diagram for rs2::software_sensor:
rs2::sensor rs2::options

Public Member Functions

stream_profile add_video_stream (rs2_video_stream video_stream)
 
void on_video_frame (rs2_software_video_frame frame)
 
void add_read_only_option (rs2_option option, float val)
 
void set_read_only_option (rs2_option option, float val)
 
- Public Member Functions inherited from rs2::sensor
void open (const stream_profile &profile) const
 
bool supports (rs2_camera_info info) const
 
const char * get_info (rs2_camera_info info) const
 
void open (const std::vector< stream_profile > &profiles) const
 
void close () const
 
template<class T >
void start (T callback) const
 
void stop () const
 
template<class T >
void set_notifications_callback (T callback) const
 
std::vector< stream_profileget_stream_profiles () const
 
sensoroperator= (const std::shared_ptr< rs2_sensor > other)
 
sensoroperator= (const sensor &other)
 
 sensor ()
 
 operator bool () const
 
const std::shared_ptr< rs2_sensor > & get () const
 
template<class T >
bool is () const
 
template<class T >
as () const
 
bool supports (rs2_option option) const
 
- Public Member Functions inherited from rs2::options
bool supports (rs2_option option) const
 
const char * get_option_description (rs2_option option) const
 
const char * get_option_value_description (rs2_option option, float val) const
 
float get_option (rs2_option option) const
 
option_range get_option_range (rs2_option option) const
 
void set_option (rs2_option option, float value) const
 
bool is_option_read_only (rs2_option option) const
 
optionsoperator= (const options &other)
 
virtual ~options ()=default
 

Friends

class software_device
 

Additional Inherited Members

- Protected Member Functions inherited from rs2::sensor
 sensor (std::shared_ptr< rs2_sensor > dev)
 
- Protected Member Functions inherited from rs2::options
 options (rs2_options *o=nullptr)
 
template<class T >
optionsoperator= (const T &dev)
 
 options (const options &other)
 
- Protected Attributes inherited from rs2::sensor
friend context
 
friend device_list
 
friend device
 
friend device_base
 
friend roi_sensor
 
std::shared_ptr< rs2_sensor_sensor
 

Member Function Documentation

◆ add_read_only_option()

void rs2::software_sensor::add_read_only_option ( rs2_option  option,
float  val 
)
inline

Register option that will be supported by the sensor

Parameters
[in]optionthe option
[in]valthe initial value

◆ add_video_stream()

stream_profile rs2::software_sensor::add_video_stream ( rs2_video_stream  video_stream)
inline

Add video stream to software sensor

Parameters
[in]video_streamall the parameters that required to defind video stream

◆ on_video_frame()

void rs2::software_sensor::on_video_frame ( rs2_software_video_frame  frame)
inline

Inject frame into the sensor

Parameters
[in]frameall the parameters that required to define video frame

◆ set_read_only_option()

void rs2::software_sensor::set_read_only_option ( rs2_option  option,
float  val 
)
inline

Update value of registered option

Parameters
[in]optionthe option
[in]valthe initial value

Friends And Related Function Documentation

◆ software_device

friend class software_device
friend

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