| 
    Time-of-Flight Library(ToF) 3.4.0
    
   | 
             | 
 
The main interface to the depth cameras. More...
#include <camera.hpp>
 Inheritance diagram for chronoptics::tof::Camera:Public Member Functions | |
| Camera (tof_camera_t ptr=nullptr) | |
| Construct from pointer.  More... | |
| void | start () | 
| Start streaming of the camera.  More... | |
| void | stop () | 
| Stop streaming of the camera.  More... | |
| bool | is_streaming () const | 
| Check whether the camera is streaming.  More... | |
| bool | is_connected () const | 
| Check whether the camera is still connected.  More... | |
| std::vector< Stream > | get_stream_list () const | 
| Get the different output streams the camera can provide.  More... | |
| void | set_stream_list (const std::vector< Stream > &streams) | 
| Set the streams that you want to get from the camera.  More... | |
| bool | is_stream_list_set () const | 
| Check whether the stream list is set.  More... | |
| std::vector< Stream > | get_set_stream_list () | 
| Get the stream list that is set on the camera.  More... | |
| ProcessingConfig | get_process_config () const | 
| Get the processing config of the camera.  More... | |
| void | set_process_config (ProcessingConfig &config) | 
| Set the processing config of the camera.  More... | |
| bool | has_frames () const | 
| Check if the camera has frames available.  More... | |
| std::vector< Data > | get_frames () | 
| Get data frames from camera.  More... | |
| void | clear_buffer () | 
| Clear the circular buffer used to store frames.  More... | |
| size_t | get_buffer_size () const | 
| Get the circular buffer size.  More... | |
| void | set_buffer_size (size_t size) | 
| Set the circular buffer size.  More... | |
| CameraConfig | get_camera_config () const | 
| Get the currently active camera config.  More... | |
| const char * | get_serial () const | 
| Get the serial number of the current camera.  More... | |
| Calibration | get_calibration () const | 
| Get calibration from the camera.  More... | |
| size_t | get_user_pointer_capacity () const | 
| Get the amount of user pointers that can be stored.  More... | |
| void | set_user_pointer_capacity (size_t capacity) | 
| Set the amount of user pointers that can be stored.  More... | |
| void | add_user_pointer (uint8_t *pointer, size_t capacity, user_pointer_destructed_fn &callback, FrameType frame_type) | 
| Add a pointer that will be filled with the specified data type.  More... | |
| void | add_user_pointer (uint8_t *pointer, size_t capacity, tof_user_pointer_destructed_t callback, void *callback_user_data, FrameType frame_type) | 
| Add a pointer that will be filled with the specified data type.  More... | |
| void | clear_user_pointers () | 
| Clear all user pointers in memory.  More... | |
The main interface to the depth cameras.
Definition at line 17 of file camera.hpp.
      
  | 
  inline | 
Construct from pointer.
Definition at line 20 of file camera.hpp.
      
  | 
  inline | 
Add a pointer that will be filled with the specified data type.
This method allows you to fill data straight into your own data type without any additional copying.
| pointer | The pointer to the data to write into | 
| capacity | The amount of data the pointer can hold | 
| callback | Callback that will be called when pointer is no longer in use | 
| callback_user_data | User data that will be passed back when the function pointer is called | 
| frame_type | The frame type that will be filled into the pointer | 
Definition at line 216 of file camera.hpp.
      
  | 
  inline | 
Add a pointer that will be filled with the specified data type.
This method allows you to fill data straight into your own data type without any additional copying.
| pointer | The pointer to the data to write into | 
| capacity | The amount of data the pointer can hold | 
| callback | Callback that will be called when pointer is no longer in use | 
| frame_type | The frame type that will be filled into the pointer | 
Definition at line 202 of file camera.hpp.
      
  | 
  inline | 
Clear the circular buffer used to store frames.
Definition at line 132 of file camera.hpp.
      
  | 
  inline | 
Clear all user pointers in memory.
Definition at line 222 of file camera.hpp.
      
  | 
  inline | 
Get the circular buffer size.
Definition at line 140 of file camera.hpp.
      
  | 
  inline | 
      
  | 
  inline | 
Get the currently active camera config.
Definition at line 155 of file camera.hpp.
      
  | 
  inline | 
      
  | 
  inline | 
Get the processing config of the camera.
Definition at line 95 of file camera.hpp.
      
  | 
  inline | 
Get the serial number of the current camera.
Definition at line 165 of file camera.hpp.
      
  | 
  inline | 
Get the stream list that is set on the camera.
Definition at line 81 of file camera.hpp.
      
  | 
  inline | 
Get the different output streams the camera can provide.
Definition at line 53 of file camera.hpp.
      
  | 
  inline | 
Get the amount of user pointers that can be stored.
Definition at line 182 of file camera.hpp.
      
  | 
  inline | 
Check if the camera has frames available.
Definition at line 112 of file camera.hpp.
      
  | 
  inline | 
Check whether the camera is still connected.
Definition at line 46 of file camera.hpp.
      
  | 
  inline | 
Check whether the stream list is set.
Definition at line 74 of file camera.hpp.
      
  | 
  inline | 
Check whether the camera is streaming.
Definition at line 39 of file camera.hpp.
      
  | 
  inline | 
Set the circular buffer size.
| size | The maximum number of sets of frames that is stored before the oldest is overwritten | 
Definition at line 148 of file camera.hpp.
      
  | 
  inline | 
Set the processing config of the camera.
| config | The processing config | 
Definition at line 105 of file camera.hpp.
      
  | 
  inline | 
Set the streams that you want to get from the camera.
| streams | The wanted streams | 
Definition at line 67 of file camera.hpp.
      
  | 
  inline | 
Set the amount of user pointers that can be stored.
| capacity | The capacity | 
Definition at line 189 of file camera.hpp.
      
  | 
  inline | 
Start streaming of the camera.
Definition at line 26 of file camera.hpp.
      
  | 
  inline | 
Stop streaming of the camera.
Definition at line 32 of file camera.hpp.