Mercurial > hg > orthanc-stone
diff Framework/Toolbox/DicomStructureSet.cpp @ 794:04f518ebd132
LoaderStateMachine
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 28 May 2019 12:26:16 +0200 |
parents | 4fe4b221a31f |
children | 61ba4b504e9a |
line wrap: on
line diff
--- a/Framework/Toolbox/DicomStructureSet.cpp Tue May 28 10:39:42 2019 +0200 +++ b/Framework/Toolbox/DicomStructureSet.cpp Tue May 28 12:26:16 2019 +0200 @@ -678,8 +678,8 @@ bool DicomStructureSet::ProjectStructure(std::vector< std::vector<PolygonPoint> >& polygons, - Structure& structure, - const CoordinateSystem3D& slice) + const Structure& structure, + const CoordinateSystem3D& slice) const { polygons.clear(); @@ -690,7 +690,7 @@ { // This is an axial projection - for (Polygons::iterator polygon = structure.polygons_.begin(); + for (Polygons::const_iterator polygon = structure.polygons_.begin(); polygon != structure.polygons_.end(); ++polygon) { if (polygon->IsOnSlice(slice)) @@ -716,7 +716,7 @@ // Sagittal or coronal projection std::vector<BoostPolygon> projected; - for (Polygons::iterator polygon = structure.polygons_.begin(); + for (Polygons::const_iterator polygon = structure.polygons_.begin(); polygon != structure.polygons_.end(); ++polygon) { double x1, y1, x2, y2;