Add FrameRate Config
This commit is contained in:
@@ -33,6 +33,21 @@ void ConfigManager::SetRecordingState(bool enable)
|
||||
}
|
||||
}
|
||||
|
||||
int ConfigManager::GetFrameRate()
|
||||
{
|
||||
qDebug() << "ConfigManager::GetFrameRate";
|
||||
return this->frame_rate;
|
||||
}
|
||||
|
||||
void ConfigManager::SetFrameRate(int frame_rate)
|
||||
{
|
||||
qDebug() << "ConfigManager::SetFrameRate";
|
||||
if (this->frame_rate != frame_rate) {
|
||||
this->frame_rate = frame_rate;
|
||||
emit NewFrameRate(this->frame_rate);
|
||||
}
|
||||
}
|
||||
|
||||
double ConfigManager::GetEmissivity()
|
||||
{
|
||||
qDebug() << "ConfigManager::GetEmissivity";
|
||||
|
||||
@@ -7,6 +7,7 @@ class ConfigManager: public QObject
|
||||
{
|
||||
Q_OBJECT;
|
||||
Q_PROPERTY(bool recording READ GetRecordingState WRITE SetRecordingState)
|
||||
Q_PROPERTY(int frame_rate READ GetFrameRate WRITE SetFrameRate)
|
||||
Q_PROPERTY(double emissivity READ GetEmissivity WRITE SetEmissivity)
|
||||
|
||||
public:
|
||||
@@ -16,16 +17,20 @@ public:
|
||||
public slots:
|
||||
bool GetRecordingState();
|
||||
void SetRecordingState(bool enable);
|
||||
int GetFrameRate();
|
||||
void SetFrameRate(int frame_rate);
|
||||
double GetEmissivity();
|
||||
void SetEmissivity(double emissivity);
|
||||
|
||||
signals:
|
||||
void NewRecordingState(bool enable);
|
||||
void NewFrameRate(int frame_rate);
|
||||
void NewEmissivity(double emissivity);
|
||||
|
||||
private:
|
||||
bool recording = false;
|
||||
double emissivity = 0.7;
|
||||
int frame_rate = 120;
|
||||
double emissivity = 0.95;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user