EmphasizeTool.h 798 B

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