comparison Framework/Radiography/RadiographySceneWriter.cpp @ 1190:f417a0ae282b

wip: TextLayer with new fonts
author Alain Mazy <alain@mazy.be>
date Tue, 26 Nov 2019 15:27:48 +0100
parents cfb4d39065a4
children c6a36ecd641d 91d86144fb79
comparison
equal deleted inserted replaced
1184:848dcba80d81 1190:f417a0ae282b
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"] = 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";