Skip to content

v0.2.52..v0.2.53 changeset EuclideanDistanceExtractor.h

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EuclideanDistanceExtractor.h b/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EuclideanDistanceExtractor.h
index bc51881..75d8734 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EuclideanDistanceExtractor.h
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/extractors/EuclideanDistanceExtractor.h
@@ -22,19 +22,24 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef EUCLIDEANDISTANCEEXTRACTOR_H
 #define EUCLIDEANDISTANCEEXTRACTOR_H
 
+// Hoot
 #include <hoot/core/algorithms/extractors/AbstractDistanceExtractor.h>
+#include <hoot/core/util/Configurable.h>
 
 namespace hoot
 {
 
-class EuclideanDistanceExtractor : public AbstractDistanceExtractor
+class EuclideanDistanceExtractor : public AbstractDistanceExtractor, public Configurable
 {
 public:
+
+  EuclideanDistanceExtractor();
+
   static std::string className() { return "hoot::EuclideanDistanceExtractor"; }
 
   virtual double distance(const OsmMap& map, const std::shared_ptr<const Element>& target,
@@ -44,6 +49,15 @@ public:
 
   virtual QString getDescription() const
   { return "Calculates the Euclidean distance between two features"; }
+
+  /**
+   * @see Configurable
+   */
+  virtual void setConfiguration(const Settings& conf);
+
+private:
+
+  bool _requireAreaForPolygonConversion;
 };
 
 }
Clone this wiki locally