#include <Sensor.hpp>
|
typedef std::function< void(std::shared_ptr< Frame > frame)> | FrameCallback |
| Callback function for frame data.
|
|
Definition at line 24 of file Sensor.hpp.
◆ FrameCallback
Callback function for frame data.
- Parameters
-
Definition at line 31 of file Sensor.hpp.
◆ Sensor() [1/3]
ob::Sensor::Sensor |
( |
ob_sensor_t * | impl | ) |
|
|
inlineexplicit |
◆ Sensor() [2/3]
ob::Sensor::Sensor |
( |
Sensor && | sensor | ) |
|
|
inlinenoexcept |
◆ Sensor() [3/3]
ob::Sensor::Sensor |
( |
const Sensor & | sensor | ) |
|
|
delete |
◆ ~Sensor()
virtual ob::Sensor::~Sensor |
( |
| ) |
|
|
inlinevirtualnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ getType()
Get the sensor type.
- Returns
- OBSensorType The sensor type.
Definition at line 69 of file Sensor.hpp.
Referenced by type().
◆ getStreamProfileList()
Get the list of stream profiles.
- Returns
- std::shared_ptr<StreamProfileList> The stream profile list.
Definition at line 81 of file Sensor.hpp.
◆ createRecommendedFilters()
std::vector< std::shared_ptr< Filter > > ob::Sensor::createRecommendedFilters |
( |
| ) |
const |
|
inline |
◆ start()
Open a frame data stream and set up a callback.
- Parameters
-
streamProfile | The stream configuration. |
callback | The callback to set when frame data arrives. |
Definition at line 116 of file Sensor.hpp.
◆ stop()
void ob::Sensor::stop |
( |
| ) |
const |
|
inline |
◆ switchProfile()
void ob::Sensor::switchProfile |
( |
std::shared_ptr< StreamProfile > | streamProfile | ) |
|
|
inline |
Dynamically switch resolutions.
- Parameters
-
streamProfile | The resolution to switch to. |
Definition at line 137 of file Sensor.hpp.
◆ type()
◆ getRecommendedFilters()
std::vector< std::shared_ptr< Filter > > ob::Sensor::getRecommendedFilters |
( |
| ) |
const |
|
inline |
◆ impl_
ob_sensor_t* ob::Sensor::impl_ |
|
protected |
◆ callback_
The documentation for this class was generated from the following file:
- C:/Users/hzcyf/Projects/openorbbecsdkgroup/OpenOrbbecSDK/include/libobsensor/hpp/Sensor.hpp