comparison OrthancStone/Sources/Toolbox/SortedFrames.h @ 1648:4a43106bc122

cross-hair starts to work
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 12 Nov 2020 19:27:08 +0100
parents bc7bd8ee13f8
children 9ac2a65d4172
comparison
equal deleted inserted replaced
1647:adff3cd78775 1648:4a43106bc122
56 56
57 unsigned int GetFrameNumberInInstance() const 57 unsigned int GetFrameNumberInInstance() const
58 { 58 {
59 return frameNumber_; 59 return frameNumber_;
60 } 60 }
61
62 double ComputeDistance(const Vector& p) const;
61 }; 63 };
62 64
63 65
64 // Maps "SOPInstanceUID" to an index in "instances_" 66 // Maps "SOPInstanceUID" to an index in "instances_"
65 typedef std::map<std::string, size_t> InstancesIndex; 67 typedef std::map<std::string, size_t> InstancesIndex;
145 bool LookupFrame(size_t& frameIndex, 147 bool LookupFrame(size_t& frameIndex,
146 const std::string& sopInstanceUid, 148 const std::string& sopInstanceUid,
147 unsigned int frameNumber) const; 149 unsigned int frameNumber) const;
148 150
149 void Sort(); 151 void Sort();
152
153 bool FindClosestFrame(size_t& frameIndex,
154 const Vector& point,
155 double maximumDistance) const;
150 }; 156 };
151 } 157 }