DynthresholdTool.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pragma once
  2. #include <QDialog>
  3. #include <QDebug>
  4. #include <QListView>
  5. #include <QLineEdit>
  6. #include "ui_DynthresholdTool.h"
  7. #include "../toolinterface.h"
  8. #include "HalconCpp.h"
  9. using namespace HalconCpp;
  10. namespace Ui {
  11. class dynthreshold;
  12. }
  13. class dynthreshold : public ToolInterface
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit dynthreshold(QWidget *parent = 0);
  18. ~dynthreshold();
  19. virtual bool Serialized(QDataStream& ar, bool bIsOut);
  20. virtual QString ShowParameter();
  21. virtual int Execute();
  22. signals:
  23. // void updateParameter(QString);
  24. private slots:
  25. void on_comboBox_currentIndexChanged(int index);
  26. void on_BTN_Add1_clicked();
  27. void on_BTN_Sub1_clicked();
  28. void on_BTN_Add2_clicked();
  29. void on_BTN_Sub2_clicked();
  30. void on_BTN_Add3_clicked();
  31. void on_BTN_Sub3_clicked();
  32. void on_lineEdit_width_editingFinished();
  33. void on_lineEdit_height_editingFinished();
  34. void on_lineEdit_offset_editingFinished();
  35. private:
  36. Ui::dynthreshold *ui;
  37. int m_nWidth;
  38. int m_nHeight;
  39. int m_nOffset;
  40. int m_nType = 0;
  41. };