v0.2.48..v0.2.49 changeset ParallelWayCriterion.h
Garret Voltz edited this page Oct 2, 2019
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/ParallelWayCriterion.h b/hoot-core/src/main/cpp/hoot/core/criterion/ParallelWayCriterion.h
index 29b0170..e49fda6 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/ParallelWayCriterion.h
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/ParallelWayCriterion.h
@@ -34,14 +34,14 @@
// Hoot
#include <hoot/core/elements/OsmMap.h>
#include <hoot/core/util/Units.h>
-#include <hoot/core/criterion/ElementCriterion.h>
+#include <hoot/core/criterion/GeometryTypeCriterion.h>
namespace hoot
{
class Way;
-class ParallelWayCriterion : public ElementCriterion
+class ParallelWayCriterion : public GeometryTypeCriterion
{
public:
@@ -65,6 +65,13 @@ public:
virtual QString getDescription() const
{ return "Identifies ways that are parallel to each other"; }
+ virtual GeometryType getGeometryType() const
+ { return GeometryType::Line; }
+
+ virtual QString toString() const override
+ { return QString::fromStdString(className()).remove("hoot::"); }
+
+
private:
ConstOsmMapPtr _map;