#ifndef MV2DELEMENTELEVATOR_H #define MV2DELEMENTELEVATOR_H #include "MV2DElement.h" #include "HasMoveableNodes.h" #include class MV2DElementElevator : public MV2DElement, public HasMoveableNodes { private: Floorplan::IndoorMap* map; Floorplan::Floor* floor; Floorplan::Elevator* elevator; public: /** ctor with the AP to render/edit */ MV2DElementElevator(Floorplan::IndoorMap* map, Floorplan::Floor* floor, Floorplan::Elevator* elevator); 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; virtual std::vector getMoveableNodes() const override; virtual void onNodeMove(MapView2D* v, const int userIdx, const Point2 newPos) override; void onNodeMoved(MapView2D* v, const int userIdx, const Point2 newPos) override; virtual void onFocus() override; virtual void onUnfocus() override; }; #endif // MV2DELEMENTELEVATOR_H