blobpartitionrectangle.h 903 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include <QDialog>
  3. #include <QDebug>
  4. #include <QListView>
  5. #include "../toolinterface.h"
  6. #include "HalconCpp.h"
  7. using namespace HalconCpp;
  8. namespace Ui {
  9. class BlobPartitionRectangle;
  10. }
  11. class BlobPartitionRectangle : public ToolInterface
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit BlobPartitionRectangle(QWidget *parent = 0, ToolDialogImpl* p = nullptr);
  16. ~BlobPartitionRectangle();
  17. virtual bool Serialized(QDataStream& ar, bool bIsOut);
  18. virtual QString ShowParameter();
  19. virtual int Execute();
  20. private slots:
  21. void on_BTN_Add1_clicked();
  22. void on_BTN_Sub1_clicked();
  23. void on_BTN_Add2_clicked();
  24. void on_BTN_Sub2_clicked();
  25. void on_lineEdit_width_editingFinished();
  26. void on_lineEdit_height_editingFinished();
  27. void on_comboBox_index_currentIndexChanged(int index);
  28. private:
  29. Ui::BlobPartitionRectangle *ui;
  30. int m_nWidth;
  31. int m_nHeight;
  32. };