1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #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;
- 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);
- protected:
- std::shared_ptr <CCOS::Dev::IOEventCenter> m_EventCenter;
- 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);
- };
- }
|