123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- #pragma once
- #include <string>
- #include "DIOS.Dev.IODevice.hpp"
- #include "DIOS.Dev.IODevice.Detail.hpp"
- #include "MECH.BasicMoulds.hpp"
- #include "DriverConfigInfo.tlh"
- #include "DriverConfigInfo.tli"
- #include "DIOSDICOMInfo.h"
- namespace nsDetail = DIOS::Dev::Detail;
- #ifndef DIOSDEVMECHDEVICEMOULD_EXPORTS
- #ifdef _WIN64
- #ifdef _DEBUG
- #pragma comment(lib, "DIOS.Dev.MECH.Mould64D.lib")
- #else
- #pragma comment(lib, "DIOS.Dev.MECH.Mould64.lib")
- #endif
- #else
- #ifdef _DEBUG
- #pragma comment(lib, "DIOS.Dev.MECH.MouldD.lib")
- #else
- #pragma comment(lib, "DIOS.Dev.MECH.MouldD.lib")
- #endif
- #endif
- #endif
- #ifdef DIOSDEVMECHDEVICEMOULD_EXPORTS
- #define _DIOSDEVMECHDEVICEMOULD_API __declspec(dllexport)
- #else
- #define _DIOSDEVMECHDEVICEMOULD_API __declspec(dllimport)
- #endif
- #pragma warning (disable:4251) // warning C4251: class “DIOS::Dev::Detail::Generator::DoseUnit”需要有 dll 接口由 class“DIOS::Dev::Detail::Generator::MECHMould”的客户端使用
- namespace DIOS::Dev::Detail::MECH
- {
- //-----------------------------------------------------------------------------
- // MECHUnit
- //-----------------------------------------------------------------------------
- class _DIOSDEVMECHDEVICEMOULD_API MECHUnit : public IOLogicUnit
- {
- public:
- MECHUnit() {};
- virtual ~MECHUnit() {};
- public:
- std::unique_ptr<PATIENTSIZEMould> m_PatientSize;
- std::unique_ptr<VIEWIDMould> m_ViewID;
- std::unique_ptr <POSITIONNUMBERMould> m_PostionNumber;
- std::unique_ptr<GRIDSTATEMould> m_GridState;
- std::unique_ptr<GRIDTYPEMould> m_GridType;
- std::unique_ptr<GRIDORIENTATIONMould> m_GridOrientation;
-
- std::unique_ptr<TIDMould> m_TID;
- std::unique_ptr<SIDMould> m_SID;
- std::unique_ptr<SODMould> m_SOD;
- std::unique_ptr<ENTRANCEMould> m_ENTRANCE;
-
- };
- //-----------------------------------------------------------------------------
- // MAMMOMECHUnit
- //-----------------------------------------------------------------------------
- class _DIOSDEVMECHDEVICEMOULD_API MAMMOMECHUnit : public IOLogicUnit
- {
- public:
- MAMMOMECHUnit() {};
- virtual ~MAMMOMECHUnit() {};
- public:
- std::unique_ptr<MAMMOGRIDMould> m_Mammo_Grid;
- std::unique_ptr<MAMMOAEMould> m_Mammo_AE;
- std::unique_ptr<MAMMOTHICKNESSMould> m_Mammo_Thickness;
- std::unique_ptr <MAMMOTUBEFILTERMould> m_Mammo_FT;
- std::unique_ptr<MAMMOPRESSDECMould> m_Mammo_CompPressureDEC;
- std::unique_ptr<MAMMODEPRESSMould> m_Mammo_Depress;
- std::unique_ptr<MAMMOANGLEMould> m_Mammo_MechAngle;
- std::unique_ptr<MAMMOHEIGHTMould> m_Mammo_MechHeight;
- std::unique_ptr<MAMMOPRESSVALMould> m_Mammo_PressureValue;
- std::unique_ptr<MAMMOAGDMould> m_Mammo_AGD;
- std::unique_ptr<MAMMOMAGMould> m_Mammo_MAG;
- };
- //-----------------------------------------------------------------------------
- // MECHMould
- //-----------------------------------------------------------------------------
- namespace nDev = DIOS::Dev;
- class _DIOSDEVMECHDEVICEMOULD_API MECHMould
- {
- public:
- MECHMould ();
- ~MECHMould ();
- protected:
- virtual void RegisterExamInfo(Dispatch* Dispatch);
- virtual void RegisterPostionNumber(Dispatch* Dispatch);
- virtual void RegisterGridControl(Dispatch* Dispatch);
- virtual void RegisterMotionControl(Dispatch* Dispatch);
- virtual void RegisterTOMOControl(Dispatch* Dispatch);
- virtual void RegisterMammoInfo(Dispatch* Dispatch);
- private:
- //caoxue
- nDev::RET_STATUS JSSetStudyInfo(std::string in, std::string& out);
- nDev::RET_STATUS JSSetViewList(std::string in, std::string& out);
- nDev::RET_STATUS JSSelectViewInfo(std::string in, std::string& out);
- nDev::RET_STATUS JSSetTechParamsInfo(std::string in, std::string& out);
- nDev::RET_STATUS JSSetPositonNumber(std::string in, std::string& out);
- nDev::RET_STATUS JSSetGridType(std::string in, std::string& out);
- nDev::RET_STATUS JSSetAutoTracking(std::string in, std::string& out);
- nDev::RET_STATUS JSSetSID(std::string in, std::string& out);
- nDev::RET_STATUS JSSetSOD(std::string in, std::string& out);
-
- nDev::RET_STATUS JSGetTomoResults(std::string in, std::string& out);
- protected:
- virtual nDev::RET_STATUS SetStudyInfo(STUDAY_INFO info)=0;
- virtual nDev::RET_STATUS SetViewList(int ViewCount, const char* viewID[], const char* viewName[]) = 0;
- virtual nDev::RET_STATUS SelectViewInfo(const char* viewID, const char* viewName) = 0;
- virtual nDev::RET_STATUS SetAutoTracking(int nAutoTracking) = 0;
- virtual nDev::RET_STATUS SetGridType(AttrKey::MECH_GRIDTYPE GridType) = 0;
- virtual nDev::RET_STATUS SetSID(float value) = 0;
- virtual nDev::RET_STATUS SetSOD(float value) = 0;
- virtual nDev::RET_STATUS SetPositonNumber(int pn) = 0;
- virtual nDev::RET_STATUS GetTomoResults(std::string& result) = 0;
- protected:
- MECHUnit m_MECHUnit;
- MAMMOMECHUnit m_MAMMOMECHUnit;
- };
- }
- namespace DIOS::Dev::Detail::MECH
- {
- class _DIOSDEVMECHDEVICEMOULD_API DriverMould : public DIOS::Dev::IODriver
- {
- public:
- DriverMould ();
- ~DriverMould ();
- virtual std::string GetGUID () const;
- protected:
- std::list <ConfigInfo> m_ConfigInfo;
- };
- }
|