#ifndef KERNELINPUTFETCHER_H #define KERNELINPUTFETCHER_H #include #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 _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 getGrayMapAlgorithmData(int grayMapSelector); QList > getTintMapAlgorithmData(int tintMapSelector); void getEnhanceAlgorithmConstantData(); void getCriFilterAlgorithmConstantData(); void getDynamicContrastAlgorithmConstantData(); void getSysParamsData(); template T translateDatabaseData(const QList result); public: KernelInputFetcher(); void newBipInput(BipInput_t input); KernelInput_t getKernelInput(); void init(); void setRequestResult(bool success, QList valueList); signals: void requestDataFromDatabase(EDatabaseRequest::eDatabaseRequest request, const QList args); }; #endif //KERNELINPUTFETCHER_H