| 533 | namespace mitk |
| 534 | { |
| 535 | void to_json(nlohmann::json& j, const LevelWindow& lw) |
| 536 | { |
| 537 | j = nlohmann::json{ |
| 538 | {"Fixed", lw.IsFixed()}, |
| 539 | {"IsFloatingImage", lw.IsFloatingValues()}, |
| 540 | {"CurrentSettings", { |
| 541 | {"Level", lw.GetLevel()}, |
| 542 | {"Window", lw.GetWindow()}}}, |
| 543 | {"DefaultSettings", { |
| 544 | {"Level", lw.GetDefaultLevel()}, |
| 545 | {"Window", lw.GetDefaultWindow()}}}, |
| 546 | {"CurrentRange", { |
| 547 | {"Min", lw.GetRangeMin()}, |
| 548 | {"Max", lw.GetRangeMax()}}}}; |
| 549 | } |
| 550 | |
| 551 | void from_json(const nlohmann::json& j, LevelWindow& lw) |
| 552 | { |
nothing calls this directly
no test coverage detected