Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographySceneWriter.cpp @ 488:aede9b042cb7 am-touch-events
now using ImageProcessing::FillPolygon
author | am@osimis.io |
---|---|
date | Tue, 19 Feb 2019 11:40:14 +0100 |
parents | 159a465e27bd |
children | fd9b9d993fc7 |
comparison
equal
deleted
inserted
replaced
487:e4febcef669e | 488:aede9b042cb7 |
---|---|
61 { | 61 { |
62 output["type"] = "mask"; | 62 output["type"] = "mask"; |
63 output["instanceId"] = layer.GetInstanceId(); // the dicom layer it's being linked to | 63 output["instanceId"] = layer.GetInstanceId(); // the dicom layer it's being linked to |
64 output["foreground"] = layer.GetForeground(); | 64 output["foreground"] = layer.GetForeground(); |
65 output["corners"] = Json::arrayValue; | 65 output["corners"] = Json::arrayValue; |
66 const std::vector<MaskPoint>& corners = layer.GetCorners(); | 66 const std::vector<Orthanc::ImageProcessing::ImagePoint>& corners = layer.GetCorners(); |
67 for (size_t i = 0; i < corners.size(); i++) | 67 for (size_t i = 0; i < corners.size(); i++) |
68 { | 68 { |
69 Json::Value corner; | 69 Json::Value corner; |
70 corner["x"] = corners[i].x; | 70 corner["x"] = corners[i].GetX(); |
71 corner["y"] = corners[i].y; | 71 corner["y"] = corners[i].GetY(); |
72 output["corners"].append(corner); | 72 output["corners"].append(corner); |
73 } | 73 } |
74 } | 74 } |
75 | 75 |
76 void RadiographySceneWriter::WriteLayer(Json::Value& output, const RadiographyAlphaLayer& layer) | 76 void RadiographySceneWriter::WriteLayer(Json::Value& output, const RadiographyAlphaLayer& layer) |