Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
tm-info.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2017 Intel Corporation. All Rights Reserved.
3 #pragma once
4 
5 #include <memory>
6 #include <vector>
7 
8 #include "../context.h"
9 #include "tm-device.h"
10 
11 namespace perc
12 {
13  class TrackingManager;
14  class TrackingDevice;
15 }
16 
17 namespace librealsense
18 {
19  class tm2_info : public device_info
20  {
21  public:
22  tm2_info(std::shared_ptr<perc::TrackingManager> manager, perc::TrackingDevice* dev, std::shared_ptr<context> ctx);
23  std::shared_ptr<device_interface> create(std::shared_ptr<context> ctx, bool register_device_notifications) const override;
25 
26  static std::vector<std::shared_ptr<device_info>> pick_tm2_devices(
27  std::shared_ptr<context> ctx,
28  std::shared_ptr<perc::TrackingManager> manager,
29  const std::vector<perc::TrackingDevice*>& tm_devices);
30  private:
31  std::shared_ptr<perc::TrackingManager> _manager;
32  perc::TrackingDevice* _dev;
33  };
34 }
tm2_info(std::shared_ptr< perc::TrackingManager > manager, perc::TrackingDevice *dev, std::shared_ptr< context > ctx)
Definition: algo.h:16
platform::backend_device_group get_device_data() const override
static std::vector< std::shared_ptr< device_info > > pick_tm2_devices(std::shared_ptr< context > ctx, std::shared_ptr< perc::TrackingManager > manager, const std::vector< perc::TrackingDevice *> &tm_devices)
Definition: context.h:46
std::shared_ptr< device_interface > create(std::shared_ptr< context > ctx, bool register_device_notifications) const override
Definition: tm-info.h:11
Definition: tm-info.h:19