123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #pragma once
- #include <string>
- #include <minwindef.h>
- #include "ResDataObject.h"
- #include "CCOS.Dev.IODevice.hpp"
- #include "CCOS.Dev.IODevice.Detail.hpp"
- namespace CCOS::Dev::Detail::Mechanical
- {
- //-----------------------------------------------------------------------------
- // Collimator
- //-----------------------------------------------------------------------------
- namespace nsDev = CCOS::Dev;
- static const char* MechanicalUnitType = "{A6C288B9-8C4F-3A6C-9C5F-12345A0F7284}";
- class MechanicalDevice : public IODeviceDetail
- {
- using super = IODeviceDetail;
- protected:
- std::shared_ptr <CCOS::Dev::IOEventCenter> m_EventCenter;
- unsigned int m_Grid;
- unsigned int m_Mammo_AE;
- unsigned int m_Mammo_FT;
- unsigned int m_Mammo_PressureState;
- unsigned int m_Mammo_CompPressureDEC;
- unsigned int m_Mammo_Depress;
- float m_Mammo_MechAngle;
- float m_Mammo_MechHeight;
- float m_Mammo_PressureValue;
- float m_Mammo_AGD;
- float m_Mammo_MAG;
- void FireNotify(string key, unsigned int value);
- void FireNotify(string key, float value);
- public:
- MechanicalDevice(std::shared_ptr <CCOS::Dev::IOEventCenter> EventCenter);
- ~MechanicalDevice();
- virtual std::string GetGUID() const override;
- virtual bool Prepare();
- virtual void Register();
- RET_STATUS JSSetGrid(std::string in, std::string& out);
- RET_STATUS JSSetAutoTracking(std::string in, std::string& out);
- RET_STATUS JSGetTomoResults(std::string in, std::string& out);
- RET_STATUS JSGetGrid(std::string& out);
- RET_STATUS JSGetMammo_AE(std::string& out);
- RET_STATUS JSGetMammo_FT(std::string& out);
- RET_STATUS JSGetMammo_PressureState(std::string& out);
- RET_STATUS JSGetMammo_CompPressureDEC(std::string& out);
- RET_STATUS JSGetMammo_Depress(std::string& out);
- RET_STATUS JSGetMammo_MechAngle(std::string& out);
- RET_STATUS JSGetMammo_MechHeight(std::string& out);
- RET_STATUS JSGetMammo_PressureValue(std::string& out);
- RET_STATUS JSGetMammo_AGD(std::string& out);
- RET_STATUS JSGetMammo_MAG(std::string& out);
- virtual RET_STATUS GetTomoResults(ResDataObject& resultAngle, ResDataObject& resultHeight);
- virtual RET_STATUS SetGrid(unsigned int GridType);
- virtual RET_STATUS SetAutoTracking(unsigned int nAutoTracking);
- void UpdateGrid(unsigned int Value);
- void UpdateMammo_AE(unsigned int Value);
- void UpdateMammo_FT(unsigned int Value);
- void UpdateMammo_PressureState(unsigned int Value);
- void UpdateMammo_CompPressureDEC(unsigned int Value);
- void UpdateMammo_Depress(unsigned int Value);
- void UpdateMammo_MechAngle(float Value);
- void UpdateMammo_MechHeight(float Value);
- void UpdateMammo_PressureValue(float Value);
- void UpdateMammo_AGD(float Value);
- void UpdateMammo_MAG(float Value);
- };
- }
|