Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Volumes/DicomStructureSetSlicer2.cpp @ 1895:14c8f339d480
removed redundant definitions Point2D, Point3D and Vector3D from DicomStructureSetUtils.h
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Jan 2022 14:51:55 +0100 |
parents | 7053b8a0aaec |
children |
comparison
equal
deleted
inserted
replaced
1894:438071a29f77 | 1895:14c8f339d480 |
---|---|
88 const DicomStructure2& structure = structureSet_->GetStructure(i); | 88 const DicomStructure2& structure = structureSet_->GetStructure(i); |
89 if (structure.IsValid()) | 89 if (structure.IsValid()) |
90 { | 90 { |
91 const Color& color = structure.GetColor(); | 91 const Color& color = structure.GetColor(); |
92 | 92 |
93 std::vector< std::pair<Point2D, Point2D> > segments; | 93 std::vector< std::pair<ScenePoint2D, ScenePoint2D> > segments; |
94 | 94 |
95 if (structure.Project(segments, cuttingPlane)) | 95 if (structure.Project(segments, cuttingPlane)) |
96 { | 96 { |
97 for (size_t j = 0; j < segments.size(); j++) | 97 for (size_t j = 0; j < segments.size(); j++) |
98 { | 98 { |
99 PolylineSceneLayer::Chain chain; | 99 PolylineSceneLayer::Chain chain; |
100 chain.resize(2); | 100 chain.resize(2); |
101 | 101 |
102 chain[0] = ScenePoint2D(segments[j].first.x, segments[j].first.y); | 102 chain[0] = ScenePoint2D(segments[j].first.GetX(), segments[j].first.GetY()); |
103 chain[1] = ScenePoint2D(segments[j].second.x, segments[j].second.y); | 103 chain[1] = ScenePoint2D(segments[j].second.GetX(), segments[j].second.GetY()); |
104 | 104 |
105 layer->AddChain(chain, false /* NOT closed */, color); | 105 layer->AddChain(chain, false /* NOT closed */, color); |
106 } | 106 } |
107 } | 107 } |
108 } | 108 } |