Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Public Member Functions | Protected Attributes | List of all members
librealsense::depth_sensor_snapshot Class Reference

#include <streaming.h>

Inheritance diagram for librealsense::depth_sensor_snapshot:
librealsense::depth_sensor librealsense::extension_snapshot librealsense::recordable< depth_sensor > librealsense::depth_stereo_sensor_snapshot

Public Member Functions

 depth_sensor_snapshot (float depth_units)
 
float get_depth_scale () const override
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
void create_snapshot (std::shared_ptr< depth_sensor > &snapshot) const override
 
void enable_recording (std::function< void(const depth_sensor &)> recording_function) override
 
- Public Member Functions inherited from librealsense::depth_sensor
virtual ~depth_sensor ()=default
 
- Public Member Functions inherited from librealsense::recordable< depth_sensor >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::extension_snapshot
virtual ~extension_snapshot ()=default
 

Protected Attributes

float m_depth_units
 

Constructor & Destructor Documentation

◆ depth_sensor_snapshot()

librealsense::depth_sensor_snapshot::depth_sensor_snapshot ( float  depth_units)
inline

Member Function Documentation

◆ create_snapshot()

void librealsense::depth_sensor_snapshot::create_snapshot ( std::shared_ptr< depth_sensor > &  snapshot) const
inlineoverridevirtual

Create a snapshot of the deriving extension. A snapshot of T is a reflection of the state and memory of T at the time of the call

Implements librealsense::recordable< depth_sensor >.

◆ enable_recording()

void librealsense::depth_sensor_snapshot::enable_recording ( std::function< void(const depth_sensor &)>  recording_function)
inlineoverridevirtual

Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves

Implements librealsense::recordable< depth_sensor >.

◆ get_depth_scale()

float librealsense::depth_sensor_snapshot::get_depth_scale ( ) const
inlineoverridevirtual

◆ update()

void librealsense::depth_sensor_snapshot::update ( std::shared_ptr< extension_snapshot ext)
inlineoverridevirtual

Member Data Documentation

◆ m_depth_units

float librealsense::depth_sensor_snapshot::m_depth_units
protected

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