Guest User

Untitled

a guest
Apr 7th, 2011
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. class inputSource {
  3. protected:
  4. double xPos;
  5. double yPos;
  6. double zPos;
  7.  
  8. double rawX;
  9. double rawY;
  10.  
  11. public:
  12. virtual double getIrX() = 0; // Pure virtual functions
  13. virtual double getIrY() = 0;
  14. virtual double getIrZ() = 0;
  15.  
  16. virtual double getRawX() = 0;
  17. virtual double getRawY() = 0;
  18.  
  19. void setIrX(double);
  20. void setIrY(double);
  21. void setIrZ(double);
  22.  
  23. virtual void calcXYZ() = 0;
  24. };
  25.  
  26. class irSource : public inputSource {
  27. public:
  28. double getIrX();
  29. double getIrY();
  30. double getIrZ();
  31.  
  32. double getRawX();
  33. double getRawY();
  34.  
  35. void setRawX(double rawX);
  36. void setRawY(double rawY);
  37.  
  38. void calcXYZ();
  39. };
  40.  
  41. class keyboardSource : public inputSource {
  42. public:
  43. double getIrX();
  44. double getIrY();
  45. double getIrZ();
  46.  
  47. void calcXYZ();
  48. };
  49.  
  50. class cameraSource : public inputSource {
  51. public:
  52. cameraSource();
  53. ~cameraSource();
  54.  
  55. double getRawX();
  56. double getRawY();
  57.  
  58. void setRawX(double rawX);
  59. void setRawY(double rawY);
  60.  
  61. double getIrX();
  62. double getIrY();
  63. double getIrZ();
  64.  
  65. void calcXYZ();
  66. };
RAW Paste Data