comparison Framework/Radiography/RadiographySceneWriter.cpp @ 1195:bdc6837d5917 broker

integration mainline->broker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 27 Nov 2019 14:34:34 +0100
parents 681f339d6f85
children a34ba19d2060
comparison
equal deleted inserted replaced
1189:09fc591d8ff9 1195:bdc6837d5917
60 60
61 void RadiographySceneWriter::WriteLayer(Json::Value& output, const RadiographyTextLayer& layer) 61 void RadiographySceneWriter::WriteLayer(Json::Value& output, const RadiographyTextLayer& layer)
62 { 62 {
63 output["type"] = "text"; 63 output["type"] = "text";
64 output["text"] = layer.GetText(); 64 output["text"] = layer.GetText();
65 output["fontName"] = layer.GetFontName(); 65 output["fontSize"] = static_cast<unsigned int>(layer.GetFontSize());
66 output["foreground"] = layer.GetForeground();
66 } 67 }
67 68
68 void RadiographySceneWriter::WriteLayer(Json::Value& output, const RadiographyMaskLayer& layer) 69 void RadiographySceneWriter::WriteLayer(Json::Value& output, const RadiographyMaskLayer& layer)
69 { 70 {
70 output["type"] = "mask"; 71 output["type"] = "mask";