1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #pragma once
- #include <QDialog>
- #include <QDebug>
- #include <QListView>
- #include <QLineEdit>
- #include "ui_DynthresholdTool.h"
- #include "../toolinterface.h"
- #include "HalconCpp.h"
- using namespace HalconCpp;
- namespace Ui {
- class dynthreshold;
- }
- class dynthreshold : public ToolInterface
- {
- Q_OBJECT
- public:
- explicit dynthreshold(QWidget *parent = 0);
- ~dynthreshold();
- virtual bool Serialized(QDataStream& ar, bool bIsOut);
- virtual QString ShowParameter();
- virtual int Execute();
-
- signals:
- // void updateParameter(QString);
- private slots:
- void on_comboBox_currentIndexChanged(int index);
- void on_BTN_Add1_clicked();
- void on_BTN_Sub1_clicked();
- void on_BTN_Add2_clicked();
- void on_BTN_Sub2_clicked();
- void on_BTN_Add3_clicked();
- void on_BTN_Sub3_clicked();
- void on_lineEdit_width_editingFinished();
- void on_lineEdit_height_editingFinished();
- void on_lineEdit_offset_editingFinished();
- private:
- Ui::dynthreshold *ui;
- int m_nWidth;
- int m_nHeight;
- int m_nOffset;
- int m_nType = 0;
- };
|