123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- #pragma once
- // 下列 ifdef 块是创建使从 DLL 导出更简单的
- // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 MECHV2_EXPORTS
- // 符号编译的。在使用此 DLL 的
- // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
- // MECHSTITCH_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
- // 符号视为是被导出的。
- #ifndef MECHSTITCH_EXPORTS
- #ifdef _WIN64
- #ifdef _DEBUG
- #pragma comment(lib, "MechStitchX64D.lib")
- #else
- #pragma comment(lib, "MechStitchX64.lib")
- #endif
- #else
- #ifdef _DEBUG
- #pragma comment(lib, "MechStitchD.lib")
- #else
- #pragma comment(lib, "MechStitch.lib")
- #endif
- #endif
- #endif
- #ifdef MECHSTITCH_EXPORTS
- #define MECHSTITCH_API __declspec(dllexport)
- #else
- #define MECHSTITCH_API __declspec(dllimport)
- #endif
- #include "LogicDevice.h"
- #include "DIOSLogicDeviceStructure.h"
- static const char* DiosMechGridType = "GridType";
- typedef enum _Dios_Mech_GridType
- {
- Grid_No,
- Grid_1150,
- Universal,
- Grid_1800,
- Grid_1000,
- Grid_3000,
- Grid_1500
- }MECH_GRIDTYPE;
- static const char* DiosMechGridState = "GridState";
- typedef enum _Dios_Mech_GridState
- {
- Grid_Noinformation,
- Grid_IN,
- Grid_IN_CHANGE,
- Grid_OUT,
- Grid_OUT_CHANGE
- }MECH_GRIDSTATE;
- static const char* DiosMechGridOrientation = "GridOrientation";
- typedef enum _Dios_Mech_GridOrientation
- {
- Grid_Vertical,
- Grid_Horizontal
- }MECH_GRIDORIENTATION;
- const int UP_TO_DOWN = 1;//拼接方向 上->下
- const int DOWN_TO_UP = 2;// 下->上
- class MECHSTITCH_API MechStitch : public LogicDevice
- {
- public:
- MechStitch();
- ~MechStitch();
- ResDataObject* m_pSyncData;
- virtual bool SYSTEM_CALL GetDeviceType(GUID &DevType);
- //get device resource
- virtual RET_STATUS SYSTEM_CALL GetDeviceResource(ResDataObject PARAM_OUT *pDeviceResource);
- //register system status
- virtual RET_STATUS SYSTEM_CALL GetSEQResource(ResDataObject PARAM_OUT *pDeviceStatus);
- //ResourceCommand Request In and Response Out
- virtual RET_STATUS SYSTEM_CALL Request(ResDataObject PARAM_IN *pRequest, ResDataObject PARAM_OUT *pResponse);
- //notify to lower layer
- virtual RET_STATUS SYSTEM_CALL CmdToLogicDev(ResDataObject PARAM_IN *pCmd);
- virtual int DATA_ACTION SetAutoTracking(int nAutoTracking);
- virtual RET_STATUS SetStudyInfo(ResDataObject PARAM_IN& pParam);
- virtual RET_STATUS SetTechParamsInfo(ResDataObject PARAM_IN& pParam);
- virtual RET_STATUS SetViewList(int ViewCount,const char* viewID[],const char* viewName[]);
- virtual RET_STATUS SelectViewInfo(const char* viewID, const char* viewName);
- virtual RET_STATUS SetGridType(MECH_GRIDTYPE GridType);
- virtual RET_STATUS SetSID(float value);
- virtual RET_STATUS SetSOD(float value);
- virtual RET_STATUS SetupStitching(ResDataObject PARAM_IN& pParam);
- virtual RET_STATUS AcceptStitchingImage();
- //notice the URS that the last acquired image is rejected by host. Keep current position.
- virtual RET_STATUS RejectStitchingImage();
- //Cancel stitching procedure.
- virtual RET_STATUS CancelStitching();
- //Note the URS that stitching is finished.
- virtual RET_STATUS CompleteStitching();
- //New extra view, request the positioner to move to a position to take an extra image.
- virtual RET_STATUS NewExtraView();
- virtual RET_STATUS RepeatStitching();
- RET_STATUS UpdateSID(float value);
- RET_STATUS UpdateSOD(float value);
- RET_STATUS UpdateGridType(MECH_GRIDTYPE value);
- RET_STATUS UpdateGridState(MECH_GRIDSTATE value);
- RET_STATUS UpdateGridOrientation(MECH_GRIDORIENTATION value);
- RET_STATUS UpdateViewID(int value);
- RET_STATUS UpdatePatientSize(int value);
- RET_STATUS UpdateCurrentImage(int value);
- RET_STATUS UpdateImageCount(int value);
- RET_STATUS UpdateStitchDirection(int nDriction);
- RET_STATUS UpdateMachineryReady(int state);
- virtual RET_STATUS DATA_ACTION GetTomoResults(ResDataObject &resultAngle, ResDataObject &resultHeight);
- };
|