Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/DicomStructureSet.h @ 132:35c2b85836ce wasm
fix rtstruct projections
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 17 Nov 2017 18:01:31 +0100 |
parents | 3e6163a53b16 |
children | e2fe9352f240 |
comparison
equal
deleted
inserted
replaced
131:3e6163a53b16 | 132:35c2b85836ce |
---|---|
55 } | 55 } |
56 }; | 56 }; |
57 | 57 |
58 typedef std::map<std::string, ReferencedSlice> ReferencedSlices; | 58 typedef std::map<std::string, ReferencedSlice> ReferencedSlices; |
59 | 59 |
60 typedef std::list<Vector> Points; | 60 typedef std::vector<Vector> Points; |
61 | 61 |
62 class Polygon | 62 class Polygon |
63 { | 63 { |
64 private: | 64 private: |
65 std::string sopInstanceUid_; | 65 std::string sopInstanceUid_; |
75 public: | 75 public: |
76 Polygon(const std::string& sopInstanceUid) : | 76 Polygon(const std::string& sopInstanceUid) : |
77 sopInstanceUid_(sopInstanceUid), | 77 sopInstanceUid_(sopInstanceUid), |
78 hasSlice_(false) | 78 hasSlice_(false) |
79 { | 79 { |
80 } | |
81 | |
82 void Reserve(size_t n) | |
83 { | |
84 points_.reserve(n); | |
80 } | 85 } |
81 | 86 |
82 void AddPoint(const Vector& v); | 87 void AddPoint(const Vector& v); |
83 | 88 |
84 bool UpdateReferencedSlice(const ReferencedSlices& slices); | 89 bool UpdateReferencedSlice(const ReferencedSlices& slices); |