| 83 | } |
| 84 | |
| 85 | RenderData::SpeedColorMode speedColorModeFromString(const std::string& value) { |
| 86 | if (value == "gradient_classic") { |
| 87 | return RenderData::SpeedColorMode::GradientClassic; |
| 88 | } |
| 89 | if (value == "gradient_turbo") { |
| 90 | return RenderData::SpeedColorMode::GradientTurbo; |
| 91 | } |
| 92 | return RenderData::SpeedColorMode::AtomColor; |
| 93 | } |
| 94 | |
| 95 | std::string integratorFromString(const std::string& value) { |
| 96 | return Integrator::registry().find(value) != nullptr ? value : "verlet"; |