12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #pragma once
- #include "ui_toolinterface.h"
- #include <QDialog>
- #include "HalconCpp.h"
- using namespace HalconCpp;
- // namespace Ui {
- // Q_OBJECT
- // class ToolInterface;
- // }
- class ToolInterface : public QDialog
- {
- Q_OBJECT
- public:
- explicit ToolInterface(QWidget *parent = 0);
- virtual ~ToolInterface();
- virtual bool Serialized(QDataStream& ar, bool bIsOut);
- virtual bool setValue(HObject);
- virtual HObject GetResult();
- virtual QString ShowParameter();
- virtual int Execute();
- signals:
- void updateParameter(QString);
- private:
- Ui::ToolInterface ui;
- public:
- HObject m_InImage;
- HObject m_OutImage;
- };
- typedef struct LinkCtrl
- {
- int ToolID;
- int nUi;
- bool isrun;
- QString ToolName;
- ToolInterface *p_dlg;
- LinkCtrl()
- {
- isrun = true;
- ToolID = -1;
- nUi = -1;
- ToolName.isEmpty();
- p_dlg = nullptr;
- }
- }LINKCTRL;
|