diff 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
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/SortedFrames.h	Thu Nov 12 16:57:15 2020 +0100
+++ b/OrthancStone/Sources/Toolbox/SortedFrames.h	Thu Nov 12 19:27:08 2020 +0100
@@ -58,6 +58,8 @@
       {
         return frameNumber_;
       }
+
+      double ComputeDistance(const Vector& p) const;
     };
 
 
@@ -147,5 +149,9 @@
                      unsigned int frameNumber) const;
 
     void Sort();
+
+    bool FindClosestFrame(size_t& frameIndex,
+                          const Vector& point,
+                          double maximumDistance) const;
   };
 }