comparison Framework/Radiography/RadiographySceneReader.cpp @ 658:63982c8c294a

merge am-dev -> default
author Alain Mazy <alain@mazy.be>
date Tue, 14 May 2019 18:39:50 +0200
parents 200f7e1d57d1 8d66efecd91c
children d2c0e347ddc2
comparison
equal deleted inserted replaced
656:002d9562c8f5 658:63982c8c294a
234 234
235 geometry.SetAngle(jsonLayer["angle"].asDouble()); 235 geometry.SetAngle(jsonLayer["angle"].asDouble());
236 geometry.SetResizeable(jsonLayer["isResizable"].asBool()); 236 geometry.SetResizeable(jsonLayer["isResizable"].asBool());
237 geometry.SetPan(jsonLayer["pan"]["x"].asDouble(), jsonLayer["pan"]["y"].asDouble()); 237 geometry.SetPan(jsonLayer["pan"]["x"].asDouble(), jsonLayer["pan"]["y"].asDouble());
238 geometry.SetPixelSpacing(jsonLayer["pixelSpacing"]["x"].asDouble(), jsonLayer["pixelSpacing"]["y"].asDouble()); 238 geometry.SetPixelSpacing(jsonLayer["pixelSpacing"]["x"].asDouble(), jsonLayer["pixelSpacing"]["y"].asDouble());
239
240 // these fields were introduced later -> they might not exist
241 if (jsonLayer.isMember("flipVertical"))
242 {
243 geometry.SetFlipVertical(jsonLayer["flipVertical"].asBool());
244 }
245 if (jsonLayer.isMember("flipHorizontal"))
246 {
247 geometry.SetFlipHorizontal(jsonLayer["flipHorizontal"].asBool());
248 }
249
239 } 250 }
240 } 251 }