RealSenseDevice.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RealSenseTypes.h"
4 #include "RealSenseDevice.generated.h"
5 
6 UCLASS(ClassGroup="RealSense", BlueprintType)
7 class REALSENSE_API URealSenseDevice : public UObject
8 {
9  GENERATED_UCLASS_BODY()
10  friend class URealSenseContext;
11  friend class ARealSenseInspector;
12  friend class FRealSenseInspectorCustomization;
13 
14 public:
15 
16  virtual ~URealSenseDevice();
17  struct rs2_device* GetHandle();
18 
19  UFUNCTION(Category = "RealSense", BlueprintCallable)
21 
22  UFUNCTION(Category="RealSense", BlueprintCallable)
23  TArray<FRealSenseStreamProfile> GetStreamProfiles(ERealSenseStreamType StreamType);
24 
25  UFUNCTION(Category="RealSense", BlueprintCallable)
26  bool SupportsProfile(FRealSenseStreamProfile Profile);
27 
28  UFUNCTION(Category="RealSense", BlueprintCallable)
29  bool LoadPreset(const FString& FileName);
30 
31  UFUNCTION(Category="RealSense", BlueprintCallable)
32  bool SavePreset(const FString& FileName);
33 
34  UPROPERTY(Category="RealSense", BlueprintReadOnly, VisibleAnywhere)
35  FString Name;
36 
37  UPROPERTY(Category="RealSense", BlueprintReadOnly, VisibleAnywhere)
38  FString Serial;
39 
40  UPROPERTY(Category="RealSense", BlueprintReadOnly, VisibleAnywhere)
41  TArray<class URealSenseSensor*> Sensors;
42 
43  static bool LoadPreset(struct rs2_device* Handle, const FString& FileName);
44  static bool SavePreset(struct rs2_device* Handle, const FString& FileName);
45 
46 private:
47 
48  void SetHandle(struct rs2_device* Handle);
49  class URealSenseSensor* NewSensor(struct rs2_sensor* Handle, const TCHAR* Name);
50  void QueryData();
51 
52  struct rs2_device* RsDevice = nullptr;
53 };
Definition: api.h:28
ERealSenseStreamType


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