CCOS.Dev.MechanicalMoudle.hpp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #pragma once
  2. #include <string>
  3. #include "ResDataObject.h"
  4. #include "CCOS.Dev.IODevice.hpp"
  5. #include "CCOS.Dev.IODevice.Detail.hpp"
  6. namespace CCOS::Dev::Detail::Mechanical
  7. {
  8. //-----------------------------------------------------------------------------
  9. // Collimator
  10. //-----------------------------------------------------------------------------
  11. namespace nsDev = CCOS::Dev;
  12. static const char* MechanicalUnitType = "{A6C288B9-8C4F-3A6C-9C5F-12345A0F7284}";
  13. class MechanicalDevice : public IODeviceDetail
  14. {
  15. using super = IODeviceDetail;
  16. void FireNotify(string key, unsigned int value);
  17. void FireNotify(string key, float value);
  18. void FireNotify(string key, string value);
  19. protected:
  20. std::shared_ptr <CCOS::Dev::IOEventCenter> m_EventCenter;
  21. unsigned int m_Grid;
  22. unsigned int m_Mammo_AE;
  23. unsigned int m_Mammo_FT;
  24. unsigned int m_Mammo_PressureState;
  25. unsigned int m_Mammo_CompPressureDEC;
  26. unsigned int m_Mammo_Depress;
  27. float m_Mammo_MechAngle;
  28. float m_Mammo_MechSecAngle;
  29. float m_Mammo_MechHeight;
  30. float m_Mammo_PressureValue;
  31. float m_Mammo_AGD;
  32. float m_Mammo_MAG;
  33. string m_Mammo_CompressPaddle; //压迫板信息(主要是尺寸,目前不确定)
  34. public:
  35. MechanicalDevice(std::shared_ptr <CCOS::Dev::IOEventCenter> EventCenter);
  36. ~MechanicalDevice();
  37. virtual std::string GetGUID() const override;
  38. virtual bool Prepare();
  39. virtual void Register();
  40. RET_STATUS JSSetGrid(std::string in, std::string& out);
  41. RET_STATUS JSSetAutoTracking(std::string in, std::string& out);
  42. RET_STATUS JSGetTomoResults(std::string in, std::string& out);
  43. RET_STATUS JSGetGrid(std::string& out);
  44. RET_STATUS JSGetMammo_AE(std::string& out);
  45. RET_STATUS JSGetMammo_FT(std::string& out);
  46. RET_STATUS JSGetMammo_PressureState(std::string& out);
  47. RET_STATUS JSGetMammo_CompPressureDEC(std::string& out);
  48. RET_STATUS JSGetMammo_Depress(std::string& out);
  49. RET_STATUS JSGetMammo_MechAngle(std::string& out);
  50. RET_STATUS JSGetMammo_MechSecAngle(std::string& out);
  51. RET_STATUS JSGetMammo_MechHeight(std::string& out);
  52. RET_STATUS JSGetMammo_PressureValue(std::string& out);
  53. RET_STATUS JSGetMammo_AGD(std::string& out);
  54. RET_STATUS JSGetMammo_MAG(std::string& out);
  55. RET_STATUS JSGetMammo_CompressPaddle(std::string& out);
  56. virtual RET_STATUS GetTomoResults(ResDataObject& resultAngle, ResDataObject& resultHeight);
  57. virtual RET_STATUS SetGrid(unsigned int GridType);
  58. virtual RET_STATUS SetAutoTracking(unsigned int nAutoTracking);
  59. void UpdateGrid(unsigned int Value);
  60. void UpdateMammo_AE(unsigned int Value);
  61. void UpdateMammo_FT(unsigned int Value);
  62. void UpdateMammo_PressureState(unsigned int Value);
  63. void UpdateMammo_CompPressureDEC(unsigned int Value);
  64. void UpdateMammo_Depress(unsigned int Value);
  65. void UpdateMammo_MechAngle(float Value);
  66. void UpdateMammo_MechSecAngle(float Value);
  67. void UpdateMammo_MechHeight(float Value);
  68. void UpdateMammo_PressureValue(float Value);
  69. void UpdateMammo_AGD(float Value);
  70. void UpdateMammo_MAG(float Value);
  71. void UpdateMammo_CompressPaddle(std::string Value);
  72. void ReportMessageToDicom();
  73. };
  74. }