Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/SlicesSorter.h @ 648:1088d4c4d78c
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 13 May 2019 17:19:04 +0200 |
parents | 6af3099ed8da |
children | 970949ff868a |
comparison
equal
deleted
inserted
replaced
647:6af3099ed8da | 648:1088d4c4d78c |
---|---|
39 Slices slices_; | 39 Slices slices_; |
40 bool hasNormal_; | 40 bool hasNormal_; |
41 | 41 |
42 const SliceWithDepth& GetSlice(size_t i) const; | 42 const SliceWithDepth& GetSlice(size_t i) const; |
43 | 43 |
44 void SetNormal(const Vector& normal); | |
45 | |
46 void SortInternal(); | |
47 | |
48 void FilterNormal(const Vector& normal); | |
49 | |
50 bool SelectNormal(Vector& normal) const; | |
51 | |
44 public: | 52 public: |
45 SlicesSorter() : hasNormal_(false) | 53 SlicesSorter() : hasNormal_(false) |
46 { | 54 { |
47 } | 55 } |
48 | 56 |
69 const CoordinateSystem3D& GetSliceGeometry(size_t i) const; | 77 const CoordinateSystem3D& GetSliceGeometry(size_t i) const; |
70 | 78 |
71 bool HasSlicePayload(size_t i) const; | 79 bool HasSlicePayload(size_t i) const; |
72 | 80 |
73 const Orthanc::IDynamicObject& GetSlicePayload(size_t i) const; | 81 const Orthanc::IDynamicObject& GetSlicePayload(size_t i) const; |
82 | |
83 bool Sort(); | |
74 | 84 |
75 void SetNormal(const Vector& normal); | |
76 | |
77 void Sort(); | |
78 | |
79 void FilterNormal(const Vector& normal); | |
80 | |
81 bool SelectNormal(Vector& normal) const; | |
82 | |
83 bool LookupClosestSlice(size_t& index, | 85 bool LookupClosestSlice(size_t& index, |
84 double& distance, | 86 double& distance, |
85 const CoordinateSystem3D& slice) const; | 87 const CoordinateSystem3D& slice) const; |
86 }; | 88 }; |
87 } | 89 } |