implement states for components_autoselect and ledMAppingType via json (#344)

This commit is contained in:
redPanther
2016-12-20 19:55:54 +01:00
committed by GitHub
parent c5e0299c55
commit 0414e3c860
5 changed files with 20 additions and 5 deletions

View File

@@ -76,6 +76,14 @@ int ImageProcessor::mappingTypeToInt(QString mappingType)
return 0;
}
QString ImageProcessor::mappingTypeToStr(int mappingType)
{
if (mappingType == 1 )
return "unicolor_mean";
return "mulicolor_mean";
}
bool ImageProcessor::getScanParameters(size_t led, double &hscanBegin, double &hscanEnd, double &vscanBegin, double &vscanEnd) const
{
if (led < _ledString.leds().size())