RealSenseContext.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RealSenseTypes.h"
4 #include "RealSenseContext.generated.h"
5 
6 UCLASS(ClassGroup="RealSense", BlueprintType)
7 class REALSENSE_API URealSenseContext : public UObject
8 {
9  GENERATED_UCLASS_BODY()
10  friend class FRealSensePlugin;
11 
12 public:
13 
14  virtual ~URealSenseContext();
15  struct rs2_context* GetHandle();
16 
17  UFUNCTION(Category="RealSense", BlueprintCallable)
18  static URealSenseContext* GetRealSense();
19 
20  UFUNCTION(Category="RealSense", BlueprintCallable)
21  void QueryDevices();
22 
23  UFUNCTION(Category="RealSense", BlueprintCallable)
24  class URealSenseDevice* GetDeviceById(int Id);
25 
26  UFUNCTION(Category="RealSense", BlueprintCallable)
27  class URealSenseDevice* FindDeviceBySerial(FString Serial);
28 
29  UPROPERTY(Category="RealSense", BlueprintReadOnly, VisibleAnywhere)
30  TArray<class URealSenseDevice*> Devices;
31 
32 private:
33 
34  void SetHandle(struct rs2_context* Handle);
35  class URealSenseDevice* NewDevice(struct rs2_device* Handle, const TCHAR* Name);
36 
37  struct rs2_context* RsContext = nullptr;
38  FCriticalSection DevicesMx;
39 };
Definition: api.h:28


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:39