DeviceBase.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. 
  2. using SC.XR.Unity.Module_InputSystem;
  3. using System;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using UnityEngine;
  7. namespace SC.XR.Unity.Module_Device {
  8. public abstract class DeviceBase {
  9. [SerializeField]
  10. private XRType m_XRType = XRType.Other;
  11. public XRType XRType { get => m_XRType; }
  12. public List<InputDeviceType> SupportInputDevices;
  13. public string modelName;
  14. public int GreyAmount;
  15. /// <summary>
  16. /// One GreyCamera GreyCameraResolution
  17. /// (Weight,Height)
  18. /// </summary>
  19. public Vector2 GreyCameraResolution;
  20. public bool HasRGB;
  21. public Vector3 RGBRotationOffset;
  22. public Vector3 RGBPositionOffset;
  23. public abstract string MODEL {
  24. get;
  25. }
  26. /// <summary>
  27. /// SN
  28. /// </summary>
  29. public abstract string SN {
  30. get;
  31. }
  32. /// <summary>
  33. /// Release_Vesion
  34. /// </summary>
  35. public abstract string RELEASE_VERSION {
  36. get;
  37. }
  38. /// <summary>
  39. /// BatteryLevel
  40. /// </summary>
  41. public abstract int BatteryLevel {
  42. get;
  43. }
  44. public virtual void ShowInfo() {
  45. DebugMy.Log(" *** Device Info *** "
  46. + " XRType:" + XRType
  47. + " MODEL:" + MODEL
  48. + " SN:" + SN
  49. + " RELEASE_VERSION:" + RELEASE_VERSION
  50. + " BatteryLevel:" + BatteryLevel
  51. + " modelName:" + modelName
  52. + " GreyAmount:" + GreyAmount
  53. + " GreyCameraResolution:" + GreyCameraResolution
  54. + " HasRGB:" + HasRGB
  55. + " RGBRotationOffset:" + RGBRotationOffset
  56. + " RGBRotationOffset:" + RGBRotationOffset
  57. , this, true);
  58. }
  59. }
  60. }