comparison Framework/Radiography/RadiographySceneReader.cpp @ 1024:9889c819db01

fix
author Alain Mazy <alain@mazy.be>
date Fri, 04 Oct 2019 17:47:13 +0200
parents 1e80a925323a
children d7887f88710f f417a0ae282b
comparison
equal deleted inserted replaced
1023:701f36c28193 1024:9889c819db01
230 void RadiographySceneBuilder::ReadDicomLayerGeometry(RadiographyLayer::Geometry& geometry, const Json::Value& input) 230 void RadiographySceneBuilder::ReadDicomLayerGeometry(RadiographyLayer::Geometry& geometry, const Json::Value& input)
231 { 231 {
232 for(size_t layerIndex = 0; layerIndex < input["layers"].size(); layerIndex++) 232 for(size_t layerIndex = 0; layerIndex < input["layers"].size(); layerIndex++)
233 { 233 {
234 const Json::Value& jsonLayer = input["layers"][(int)layerIndex]; 234 const Json::Value& jsonLayer = input["layers"][(int)layerIndex];
235 RadiographyLayer::Geometry geometry;
236 if (jsonLayer["type"].asString() == "dicom") 235 if (jsonLayer["type"].asString() == "dicom")
237 { 236 {
238 ReadLayerGeometry(geometry, jsonLayer); 237 ReadLayerGeometry(geometry, jsonLayer);
239 return; 238 return;
240 } 239 }