48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
#include "ui_hyperImagerControl.h"
|
|
|
|
#include "AspectRatioLabel.h"
|
|
|
|
class QDoubleSlider;
|
|
|
|
class HyperImagerControl : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
HyperImagerControl(QWidget* parent = nullptr);
|
|
~HyperImagerControl();
|
|
|
|
AspectRatioLabel* imagerPictureLabel() const { return ui.imagerPictureLabel; }
|
|
|
|
void setFrameRate(double frameRate);
|
|
void setIntegrationTime(double integrationTime);
|
|
void setGain(double gain);
|
|
|
|
signals:
|
|
void framerateChanged(double framerate);
|
|
void integrationTimeChanged(double integrationTime);
|
|
void gainChanged(double gain);
|
|
|
|
private Q_SLOTS:
|
|
void onFramerateSpinBoxEditingFinished();
|
|
void onFramerateSliderChanged(double framerate);
|
|
void onFramerateSliderReleased();
|
|
void onIntegrationTimeSpinBoxEditingFinished();
|
|
void onIntegrationTimeSliderChanged(double integrationTime);
|
|
void onIntegrationTimeSliderReleased();
|
|
void onGainSpinBoxEditingFinished();
|
|
void onGainSliderChanged(double gain);
|
|
void onGainSliderReleased();
|
|
|
|
private:
|
|
void updateIntegrationTimeRange(double frameRate);
|
|
void updateFramerateRange(double integrationTime);
|
|
double m_frameRateLimit = 150;//相机的最大帧率限制为250fps
|
|
|
|
Ui::HyperImagerControl ui;
|
|
};
|