ThresholdTool.h 694 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include <QDialog>
  3. #include <QDebug>
  4. #include "ui_thresholdtool.h"
  5. #include "../toolinterface.h"
  6. #include "HalconCpp.h"
  7. using namespace HalconCpp;
  8. namespace Ui {
  9. class ThresholdTool;
  10. }
  11. class ThresholdTool : public ToolInterface
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit ThresholdTool(QWidget *parent = 0);
  16. ~ThresholdTool();
  17. virtual bool Serialized(QDataStream& ar, bool bIsOut);
  18. virtual QString ShowParameter();
  19. virtual int Execute();
  20. private slots:
  21. void on_horizontalSlidermax_valueChanged(int value);
  22. void on_horizontalSlidermin_valueChanged(int value);
  23. void on_checkBox_clicked();
  24. private:
  25. Ui::ThresholdTool *ui;
  26. int Min;
  27. int Max;
  28. };