You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

80 lines
2.1 KiB

#ifndef KERNELINPUTFETCHER_H
#define KERNELINPUTFETCHER_H
#include <QObject>
#include "model/backendImageProcessor/dtoInternal/BipInput.h"
#include "model/backendImageProcessor/dtoInternal/KernelInput.h"
#include "model/databaseManager/type/EDatabaseRequest.h"
class KernelInputFetcher : public QObject
{
Q_OBJECT
private:
KernelInput_t _kernelInput;
BipInput_t _bipInput;
bool _success;
QList<QVariant> _valueList;
void getKernelsConstantData();
void getKernelsInputRelatedData(BipInput_t input);
void updateGrayMapBParameters(BipInput_t input);
void updateGrayMapMParameters(BipInput_t input);
void updateTintMapBParameters(BipInput_t input);
bool tintMapBSelectorHasChanged(BipInput_t input);
void updateTintMapMParameters(BipInput_t input);
bool tintMapMSelectorHasChanged(BipInput_t input);
void updateDynamicContrastBParameters(BipInput_t input);
void updateDynamicContrastMParameters(BipInput_t input);
void updateEnhanceBParameters(BipInput_t input);
void updateEnhanceMParameters(BipInput_t input);
void updateRejectBParameters(BipInput_t input);
void updateRejectMParameters(BipInput_t input);
void updateSriParameters(BipInput_t input);
void updatePersistParameters(BipInput_t input);
void updateFrameFilterParameters(BipInput_t input);
void updateScanConvParameters(BipInput_t input);
void updateCriParameters(BipInput_t input);
void updateImageSizeParameters(BipInput_t input);
void getSriAlgorithmConstantData();
QList<int> getGrayMapAlgorithmData(int grayMapSelector);
QList<QList<int> > getTintMapAlgorithmData(int tintMapSelector);
void getEnhanceAlgorithmConstantData();
void getCriFilterAlgorithmConstantData();
void getDynamicContrastAlgorithmConstantData();
void getSysParamsData();
template<typename T>
T translateDatabaseData(const QList<QVariant> result);
public:
KernelInputFetcher();
void newBipInput(BipInput_t input);
KernelInput_t getKernelInput();
void init();
void setRequestResult(bool success, QList<QVariant> valueList);
signals:
void requestDataFromDatabase(EDatabaseRequest::eDatabaseRequest request,
const QList<QVariant> args);
};
#endif //KERNELINPUTFETCHER_H