#ifndef _H_QPARAMDLG_H_ #define _H_QPARAMDLG_H_ #include #include "ui_QParamDlg.h" #include "lpbengine.h" #include "lpdesigner.h" #include "DsgRoiDlg.h" enum EM_ParamDialogType { PARAM_IN = 0, PARAM_OUT }; class QParamDlg : public QDialog { Q_OBJECT public: QParamDlg(QWidget *parent = Q_NULLPTR); ~QParamDlg(); bool Initialize(IDetectorEngine* lpDE, IDetectorTask* lpTask, IDetectorAlgorithm* lpAlgo, EM_ParamDialogType type); bool InitGraphView(); void CleanUp(); PLP_ALGORITHM_PARAM ShowParamDlg(PLP_ALGORITHM_PARAM pParam); int GetTypeIndex(AlgoParamType type); void InitValueCtrl(AlgoParamType type, PLP_ALGORITHM_PARAM pParam); QVariant GetCtrlValue(AlgoParamType type); public slots: bool OnOk(); bool OnCancel(); bool OnChangeParamType(); bool OnChangeAlgo(); bool OnShowRoiDlg(); private: Ui::QParamDlg ui; // CDsgRoiDlg m_tRoiDlg; IDetectorEngine* m_pDE{ nullptr }; IDetectorTask* m_pTask{ nullptr }; IDetectorAlgorithm* m_pAlgo{ nullptr }; EM_ParamDialogType m_type; LP_DETECTOR_ROI_DATA m_tRoiData; AlgoParamType _ParamType{ LP_INT }; //QComboBox m_valueCombox; }; #endif