#pragma once #include #include #include #include "../toolinterface.h" #include "HalconCpp.h" using namespace HalconCpp; namespace Ui { class BlobPartitionRectangle; } class BlobPartitionRectangle : public ToolInterface { Q_OBJECT public: explicit BlobPartitionRectangle(QWidget *parent = 0, ToolDialogImpl* p = nullptr); ~BlobPartitionRectangle(); virtual bool Serialized(QDataStream& ar, bool bIsOut); virtual QString ShowParameter(); virtual int Execute(); private slots: void on_BTN_Add1_clicked(); void on_BTN_Sub1_clicked(); void on_BTN_Add2_clicked(); void on_BTN_Sub2_clicked(); void on_lineEdit_width_editingFinished(); void on_lineEdit_height_editingFinished(); void on_comboBox_index_currentIndexChanged(int index); private: Ui::BlobPartitionRectangle *ui; int m_nWidth; int m_nHeight; };