15 auto func = QString(
"function ColorMap(v)\n"
31 return QString(err.
what());
39 return Qt::transparent;
43 return QColor(res.get<std::string>(0).c_str());
45 return Qt::transparent;
50 static std::map<QString, ColorMap::Ptr> colormaps;
60 colormap_text.insert(it.first, it.second->script());
62 settings.setValue(
"ColorMapLibrary", colormap_text);
72 for (
const auto& key : colormap_text.keys())
74 QString
script = colormap_text[key].toString();
75 auto colormap = std::make_shared<ColorMap>();
76 auto res = colormap->setScrip(
script);