NewFrameEventArgs.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. namespace BBIWARG.Input.InputProviding
  3. {
  4. /// <summary>
  5. /// Encapsulates the arguments of the event that a new frame is available.
  6. /// </summary>
  7. public class NewFrameEventArgs : EventArgs
  8. {
  9. /// <summary>
  10. /// the id of the frame
  11. /// </summary>
  12. public int FrameID { get; private set; }
  13. /// <summary>
  14. /// the height of all images in the frame
  15. /// </summary>
  16. public int Height { get; private set; }
  17. /// <summary>
  18. /// pointer to the raw confidence data for the frame
  19. /// </summary>
  20. public IntPtr RawConfidenceData { get; private set; }
  21. /// <summary>
  22. /// pointer to the raw depth data for the frame
  23. /// </summary>
  24. public IntPtr RawDepthData { get; private set; }
  25. /// <summary>
  26. /// the with of all images in the frame
  27. /// </summary>
  28. public int Width { get; private set; }
  29. /// <summary>
  30. /// Constructs a NewFrameEventArgs.
  31. /// </summary>
  32. /// <param name="frameID">frame id</param>
  33. /// <param name="width">width of all images</param>
  34. /// <param name="height">height of all images</param>
  35. /// <param name="rawDepthData">pointer to raw depth data</param>
  36. /// <param name="rawConfidenceData">pointer to raw confidence data</param>
  37. public NewFrameEventArgs(int frameID, int width, int height, IntPtr rawDepthData, IntPtr rawConfidenceData)
  38. {
  39. FrameID = frameID;
  40. Width = width;
  41. Height = height;
  42. RawDepthData = rawDepthData;
  43. RawConfidenceData = rawConfidenceData;
  44. }
  45. }
  46. }