comparison Framework/Radiography/RadiographySceneWriter.cpp @ 1196:a5f2a6b04a31

RadiographyScene: windowing is now only applied to the Dicom layer
author Alain Mazy <alain@mazy.be>
date Wed, 27 Nov 2019 17:51:33 +0100
parents c6a36ecd641d
children a34ba19d2060
comparison
equal deleted inserted replaced
1191:c6a36ecd641d 1196:a5f2a6b04a31
95 pngWriter.WriteToMemory(pngContent, alpha); 95 pngWriter.WriteToMemory(pngContent, alpha);
96 96
97 Orthanc::Toolbox::EncodeDataUriScheme(pngContentBase64, "image/png", pngContent); 97 Orthanc::Toolbox::EncodeDataUriScheme(pngContentBase64, "image/png", pngContent);
98 output["content"] = pngContentBase64; 98 output["content"] = pngContentBase64;
99 output["foreground"] = layer.GetForegroundValue(); 99 output["foreground"] = layer.GetForegroundValue();
100 output["isUsingWindowing"] = layer.IsUsingWindowing();
101 } 100 }
102 101
103 void RadiographySceneWriter::WriteLayer(Json::Value& output, const RadiographyLayer& layer) 102 void RadiographySceneWriter::WriteLayer(Json::Value& output, const RadiographyLayer& layer)
104 { 103 {
105 const RadiographyLayer::Geometry& geometry = layer.GetGeometry(); 104 const RadiographyLayer::Geometry& geometry = layer.GetGeometry();