|
OrbbecSDK 2.8.7
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
|
#include <Sensor.hpp>
Public Types | |
| typedef std::function< void(std::shared_ptr< Frame > frame)> | FrameCallback |
| Callback function for frame data. | |
Public Member Functions | |
| Sensor (ob_sensor_t *impl) | |
| Sensor (Sensor &&sensor) noexcept | |
| Sensor & | operator= (Sensor &&sensor) noexcept |
| Sensor (const Sensor &sensor)=delete | |
| Sensor & | operator= (const Sensor &sensor)=delete |
| virtual | ~Sensor () noexcept |
| OBSensorType | getType () const |
| Get the sensor type. | |
| std::shared_ptr< StreamProfileList > | getStreamProfileList () const |
| Get the list of stream profiles. | |
| std::vector< std::shared_ptr< Filter > > | createRecommendedFilters () const |
| Create a list of recommended filters for the sensor. | |
| void | start (std::shared_ptr< StreamProfile > streamProfile, FrameCallback callback) |
| Open a frame data stream and set up a callback. | |
| void | stop () const |
| Stop the stream. | |
| void | switchProfile (std::shared_ptr< StreamProfile > streamProfile) |
| Dynamically switch resolutions. | |
| OBSensorType | type () const |
| std::vector< std::shared_ptr< Filter > > | getRecommendedFilters () const |
Protected Attributes | |
| ob_sensor_t * | impl_ |
| FrameCallback | callback_ |
Definition at line 24 of file Sensor.hpp.
| typedef std::function<void(std::shared_ptr<Frame> frame)> ob::Sensor::FrameCallback |
Callback function for frame data.
| [in] | frame | The frame data. |
Definition at line 31 of file Sensor.hpp.
|
inlineexplicit |
Definition at line 38 of file Sensor.hpp.
Referenced by operator=(), operator=(), Sensor(), and Sensor().
|
inlinenoexcept |
Definition at line 40 of file Sensor.hpp.
|
delete |
|
inlinevirtualnoexcept |
Definition at line 58 of file Sensor.hpp.
Definition at line 44 of file Sensor.hpp.
|
inline |
Get the sensor type.
Definition at line 69 of file Sensor.hpp.
Referenced by type().
|
inline |
Get the list of stream profiles.
Definition at line 81 of file Sensor.hpp.
|
inline |
Create a list of recommended filters for the sensor.
Definition at line 93 of file Sensor.hpp.
Referenced by getRecommendedFilters().
|
inline |
Open a frame data stream and set up a callback.
| [in] | streamProfile | The stream configuration. |
| [in] | callback | The callback to set when frame data arrives. |
Definition at line 116 of file Sensor.hpp.
|
inline |
Stop the stream.
Definition at line 126 of file Sensor.hpp.
|
inline |
Dynamically switch resolutions.
| [in] | streamProfile | The resolution to switch to. |
Definition at line 137 of file Sensor.hpp.
|
inline |
Definition at line 151 of file Sensor.hpp.
Referenced by getType().
|
inline |
Definition at line 155 of file Sensor.hpp.
|
protected |
Definition at line 34 of file Sensor.hpp.
Referenced by createRecommendedFilters(), getStreamProfileList(), getType(), operator=(), Sensor(), start(), stop(), switchProfile(), and ~Sensor().
|
protected |
Definition at line 35 of file Sensor.hpp.
Referenced by start().