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()
|
double ConfigManager::GetEmissivity()
|
||||||
{
|
{
|
||||||
qDebug() << "ConfigManager::GetEmissivity";
|
qDebug() << "ConfigManager::GetEmissivity";
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ class ConfigManager: public QObject
|
|||||||
{
|
{
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
Q_PROPERTY(bool recording READ GetRecordingState WRITE SetRecordingState)
|
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)
|
Q_PROPERTY(double emissivity READ GetEmissivity WRITE SetEmissivity)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -16,16 +17,20 @@ public:
|
|||||||
public slots:
|
public slots:
|
||||||
bool GetRecordingState();
|
bool GetRecordingState();
|
||||||
void SetRecordingState(bool enable);
|
void SetRecordingState(bool enable);
|
||||||
|
int GetFrameRate();
|
||||||
|
void SetFrameRate(int frame_rate);
|
||||||
double GetEmissivity();
|
double GetEmissivity();
|
||||||
void SetEmissivity(double emissivity);
|
void SetEmissivity(double emissivity);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void NewRecordingState(bool enable);
|
void NewRecordingState(bool enable);
|
||||||
|
void NewFrameRate(int frame_rate);
|
||||||
void NewEmissivity(double emissivity);
|
void NewEmissivity(double emissivity);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool recording = false;
|
bool recording = false;
|
||||||
double emissivity = 0.7;
|
int frame_rate = 120;
|
||||||
|
double emissivity = 0.95;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user