IInputProvider.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using MathNet.Numerics.LinearAlgebra.Single;
  7. namespace bbiwarg.DataSource
  8. {
  9. interface IInputProvider
  10. {
  11. void init();
  12. void start();
  13. void stop();
  14. void updateFrame();
  15. void releaseFrame();
  16. float getFrameRate();
  17. float getHFOV();
  18. float getVFOV();
  19. bool isActive();
  20. DepthImage getDepthImage();
  21. ConfidenceImage getConfidenceImage();
  22. UVImage getUVImage();
  23. ColorImage getColorImage();
  24. /*
  25. * all handIndices have to be 1 or 2
  26. */
  27. bool isHandOpen(uint handIndex);
  28. Vector getPalmPosition3D(uint handIndex);
  29. Vector getPalmPosition2D(uint handIndex);
  30. Vector getTipPosition3D(uint handIndex);
  31. Vector getForearmPosition3D(uint handIndex);
  32. Vector getPalmNormal3D(uint handIndex);
  33. DetectionStatus[] getFingerStatus(uint handIndex);
  34. DetectionStatus getHandStatus(uint handIndex);
  35. Vector[] getFingerTipPositions3D(uint handIndex);
  36. Vector[] getFingerTipPositions2D(uint handIndex);
  37. HandSide getHandSide(uint handIndex);
  38. }
  39. }