Skip to content

v0.2.55..v0.2.56 changeset MaximalSublineMatcher.h

Garret Voltz edited this page Aug 14, 2020 · 3 revisions
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/subline-matching/MaximalSublineMatcher.h b/hoot-core/src/main/cpp/hoot/core/algorithms/subline-matching/MaximalSublineMatcher.h
index c024be7..df4bb4c 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/subline-matching/MaximalSublineMatcher.h
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/subline-matching/MaximalSublineMatcher.h
@@ -43,6 +43,7 @@ public:
   static std::string className() { return "hoot::MaximalSublineMatcher"; }
 
   MaximalSublineMatcher();
+  virtual ~MaximalSublineMatcher() = default;
 
   /**
    * @param maxRelevantDistance This value is set on a per match basis because it tends to vary
@@ -58,6 +59,8 @@ public:
   virtual void setMinSplitSize(Meters minSplitSize) override { _minSplitSize = minSplitSize; }
   virtual void setHeadingDelta(Meters /*headingDelta*/) override {}
 
+  void setMaxRecursionComplexity(int maxRecursions) { _maxRecursionComplexity = maxRecursions; }
+
   virtual QString getDescription() const
   { return "Matches lines based on the longest matching subline found"; }
 
@@ -65,6 +68,9 @@ private:
 
   Radians _maxAngle;
   Meters _minSplitSize;
+
+  // See MaximalSubline::__maxRecursionComplexity
+  int _maxRecursionComplexity;
 };
 
 }
Clone this wiki locally