diff Framework/Toolbox/DicomStructureSet.h @ 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.h	Tue May 28 10:39:42 2019 +0200
+++ b/Framework/Toolbox/DicomStructureSet.h	Tue May 28 12:26:16 2019 +0200
@@ -135,13 +135,13 @@
     Structure& GetStructure(size_t index);
   
     bool ProjectStructure(std::vector< std::vector<PolygonPoint> >& polygons,
-                          Structure& structure,
-                          const CoordinateSystem3D& slice);
+                          const Structure& structure,
+                          const CoordinateSystem3D& slice) const;
 
   public:
     DicomStructureSet(const OrthancPlugins::FullOrthancDataset& instance);
 
-    size_t GetStructureCount() const
+    size_t GetStructuresCount() const
     {
       return structures_.size();
     }
@@ -172,7 +172,7 @@
 
     bool ProjectStructure(std::vector< std::vector<PolygonPoint> >& polygons,
                           size_t index,
-                          const CoordinateSystem3D& slice)
+                          const CoordinateSystem3D& slice) const
     {
       return ProjectStructure(polygons, GetStructure(index), slice);
     }