62 lines
1.6 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include "CameraOperationThread.h"
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = nullptr);
~Widget();
public slots:
/* @brief在界面上显示图像
* @param[in] imgQImage图像
*
* @briefDiasplay an image on user interface
* @param[in] imgimage */
void onImageGrabbed(const QImage& img);
private slots:
/* @brief扫描相机按钮的槽函数
*
* @briefSlot function of probe push button. */
void on_pushButton_probe_clicked();
/* @brief打开/关闭相机按钮的槽函数
*
* @briefSlot function of open / close camera push button. */
void on_pushButton_openCamera_clicked();
/* @brief开始/停止采集按钮的槽函数
*
* @briefSlot function of start / stop acquisitio push button. */
void on_pushButton_startGrab_clicked();
/* @brief处理设备操作线程结束信号
* @param[in] nType操作类型
* @param[in] bSuccess是否成功
*
* @briefHandle control thread finish signal
* @param[in] nTypetype of control
* @param[in] bSuccesswhether success */
void onControlFinish(ITK_DEVICE_CONTROL_TYPE nType, bool bSuccess);
/* @brief处理选择采集卡配置的信号
*
* @briefSlot function of select grab config file. */
QString onSelectGrabConfig();
private:
Ui::Widget *ui;
DeviceControlThread* mCtrlThread;
};
#endif // WIDGET_H