Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographySceneReader.cpp @ 629:8d66efecd91c am-dev
rename
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 08 May 2019 16:38:25 +0200 |
parents | fd9b9d993fc7 |
children | 63982c8c294a |
comparison
equal
deleted
inserted
replaced
628:84af39146e76 | 629:8d66efecd91c |
---|---|
234 geometry.SetResizeable(jsonLayer["isResizable"].asBool()); | 234 geometry.SetResizeable(jsonLayer["isResizable"].asBool()); |
235 geometry.SetPan(jsonLayer["pan"]["x"].asDouble(), jsonLayer["pan"]["y"].asDouble()); | 235 geometry.SetPan(jsonLayer["pan"]["x"].asDouble(), jsonLayer["pan"]["y"].asDouble()); |
236 geometry.SetPixelSpacing(jsonLayer["pixelSpacing"]["x"].asDouble(), jsonLayer["pixelSpacing"]["y"].asDouble()); | 236 geometry.SetPixelSpacing(jsonLayer["pixelSpacing"]["x"].asDouble(), jsonLayer["pixelSpacing"]["y"].asDouble()); |
237 | 237 |
238 // these fields were introduced later -> they might not exist | 238 // these fields were introduced later -> they might not exist |
239 if (jsonLayer.isMember("verticalFlip")) | 239 if (jsonLayer.isMember("flipVertical")) |
240 { | 240 { |
241 geometry.SetVerticalFlip(jsonLayer["verticalFlip"].asBool()); | 241 geometry.SetFlipVertical(jsonLayer["flipVertical"].asBool()); |
242 } | 242 } |
243 if (jsonLayer.isMember("horizontalFlip")) | 243 if (jsonLayer.isMember("flipHorizontal")) |
244 { | 244 { |
245 geometry.SetHorizontalFlip(jsonLayer["horizontalFlip"].asBool()); | 245 geometry.SetFlipHorizontal(jsonLayer["flipHorizontal"].asBool()); |
246 } | 246 } |
247 | 247 |
248 } | 248 } |
249 } | 249 } |