12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #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::Collimator
- {
- //-----------------------------------------------------------------------------
- // Collimator
- //-----------------------------------------------------------------------------
- namespace nsDev = CCOS::Dev;
- static const char* CollimatorUnitType = "{566EC9F1-CE5A-4B31-9D2A-E9E80B4CA0CC}";
- class CollimatorDevice : public IODeviceDetail
- {
- using super = IODeviceDetail;
- WORD m_nXSize;
- WORD m_nYSize;
- WORD m_nFilter;
- WORD m_nSID;
- WORD m_nAngle;
- WORD m_nMode;
- void FireNotify(string key, WORD value);
- protected:
- std::shared_ptr <CCOS::Dev::IOEventCenter> m_EventCenter;
- public:
- CollimatorDevice(std::shared_ptr <CCOS::Dev::IOEventCenter> EventCenter);
- ~CollimatorDevice();
- virtual std::string GetGUID() const override;
- virtual bool Prepare();
- virtual void Register();
- RET_STATUS JSSetStudyInfo(std::string in, std::string& out);
- RET_STATUS JSSetTechParamsInfo(std::string in, std::string& out);
- RET_STATUS JSSetCollimatorSize(std::string in, std::string& out);
- RET_STATUS JSSetCollimatorSID(std::string in, std::string& out);
- RET_STATUS JSSetCollimatorFilter(std::string in, std::string& out);
- RET_STATUS JSSetCollimatorAngle(std::string in, std::string& out);
- RET_STATUS JSSetCollimatorMode(std::string in, std::string& out);
- RET_STATUS JSGetCollimatorXSize(std::string& out);
- RET_STATUS JSGetCollimatorYSize(std::string& out);
- RET_STATUS JSGetCollimatorSID(std::string& out);
- RET_STATUS JSGetCollimatorFilter(std::string& out);
- RET_STATUS JSGetCollimatorAngle(std::string& out);
- RET_STATUS JSGetCollimatorMode(std::string& out);
- virtual RET_STATUS SetStudyInfo(ResDataObject& pParam);
- virtual RET_STATUS SetTechParamsInfo(ResDataObject& pParam);
- virtual RET_STATUS SetCollimatorSize(WORD xsize, WORD ysize);
- virtual RET_STATUS SetCollimatorSID(WORD sid);
- virtual RET_STATUS SetCollimatorFilter(WORD pParams);
- virtual RET_STATUS SetCollimatorAngle(WORD pParams);
- virtual RET_STATUS SetCollimatorMode(WORD pParams);
- RET_STATUS UpdateCollimatorXSize(WORD Param);
- RET_STATUS UpdateCollimatorYSize(WORD Param);
- RET_STATUS UpdateCollimatorSID(WORD Param);
- RET_STATUS UpdateCollimatorAngle(WORD Param);
- RET_STATUS UpdateCollimatorFilter(WORD Param);
- RET_STATUS UpdateCollimatorMode(WORD Param);
- };
- }
|