new helper methods

improved elememt-selection
changed some parameters
show length for selected obstacles/doors
minor fixes
This commit is contained in:
2017-01-05 09:41:47 +01:00
parent 535e410ae9
commit 2297a76c53
17 changed files with 160 additions and 56 deletions

View File

@@ -9,6 +9,8 @@
#include <Indoor/geo/BBox2.h>
#include <Indoor/geo/Line2.h>
#include "ClickDist.h"
/**
* represents one drawable, selectable, editable, ...
* element shown within the MapView2D
@@ -29,7 +31,7 @@ public:
virtual BBox2 getBoundingBox() const = 0;
/** get the element's minimal distance (nearest whatsoever) to the given point */
virtual float getMinDistanceXY(const Point2 p) const = 0;
virtual ClickDist getMinDistanceXY(const Point2 p) const = 0;
/** repaint me */
virtual void paint(Painter& p) = 0;