forked from CodElecCz/CameraUIv1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCameraParam.h
69 lines (57 loc) · 2.36 KB
/
CameraParam.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef CAMERAPARAM_H
#define CAMERAPARAM_H
#include <QWidget>
#include <QDockWidget>
#include <pylon/PylonIncludes.h>
namespace Ui {
class CameraParam;
}
class CameraParam : public QWidget
{
Q_OBJECT
public:
explicit CameraParam(QWidget *parent = nullptr, Pylon::VersionInfo info = Pylon::Sfnc_2_0_0);
~CameraParam();
void resetValues();
void setEnableCotrols(bool status);
void setWidth(int val, int min, int max, int inc);
void setHeight(int val, int min, int max, int inc);
void setOffsetX(int val, int min, int max, int inc);
void setOffsetY(int val, int min, int max, int inc);
void setExposure(int val, int min, int max, int inc);
void setPixelFormat(QString val, QStringList enumFeatureList);
void setTestImageSelector(QString val, QStringList enumFeatureList);
void setCameraName(QString name);
void setResolution(int width, int height) { m_width = width; m_height = height; }
void setDeviceInfo(Pylon::VersionInfo info) { m_DeviceSFNCVersion = info; }
private:
QString getCameraName();
private slots:
void on_spinBox_Height_editingFinished();
void on_scrollBar_Height_sliderReleased();
void on_spinBox_Width_editingFinished();
void on_scrollBar_Width_sliderReleased();
void on_spinBox_OffsetX_editingFinished();
void on_scrollBar_OffsetX_sliderReleased();
void on_spinBox_OffsetY_editingFinished();
void on_scrollBar_OffsetY_sliderReleased();
void on_spinBox_Exposure_editingFinished();
void on_scrollBar_Exposure_sliderReleased();
void on_comboBox_PixelFormat_currentIndexChanged(const QString &arg1);
void on_comboBox_TestImageSelector_currentIndexChanged(const QString &arg1);
void on_saveButton_pressed();
void on_loadButton_pressed();
signals:
void addTrace(QString text, QColor color = QColor("black"));
void setFloatValue(QString cameraName, QString nodeName, int value);
void setIntergerValue(QString cameraName, QString nodeName, int value);
void setStringValue(QString cameraName, QString nodeName, QString value);
void saveParameters(QString cameraName);
void loadParameters(QString cameraName);
private:
Ui::CameraParam *ui;
Pylon::VersionInfo m_DeviceSFNCVersion;
int m_width;
int m_height;
};
#endif // CAMERAPARAM_H