/* * © Copyright 2014 – Urheberrechtshinweis * Alle Rechte vorbehalten / All Rights Reserved * * Programmcode ist urheberrechtlich geschuetzt. * Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner. * Keine Verwendung ohne explizite Genehmigung. * (vgl. § 106 ff UrhG / § 97 UrhG) */ #ifndef MV2DELEMENTFLOOROBSTACLELINE_H #define MV2DELEMENTFLOOROBSTACLELINE_H #include "MV2DElement.h" #include "HasMoveableNodes.h" #include class MV2DElementFloorObstacleLine : public MV2DElement, public HasMoveableNodes { private: Floorplan::Floor* f; Floorplan::FloorObstacleLine* fo; public: /** ctor */ MV2DElementFloorObstacleLine(Floorplan::Floor* f, Floorplan::FloorObstacleLine* fo); /** get the element's 3D bounding box */ BBox2 getBoundingBox() const override; /** get the element's minimal distance (nearest whatsoever) to the given point */ ClickDist getMinDistanceXY(const Point2 p) const override; /** repaint me */ void paint(Painter& p) override; void onFocus() override; void onUnfocus() override; virtual std::vector getMoveableNodes() const override; void onNodeMove(MapView2D* v, const int userIdx, const Point2 newPos) override; void onNodeMoved(MapView2D* v, const int userIdx, const Point2 newPos); }; #endif // MV2DELEMENTFLOOROBSTACLELINE_H