45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
#ifndef MV2DELEMENTFLOOROBSTACLECIRCLE_H
|
|
#define MV2DELEMENTFLOOROBSTACLECIRCLE_H
|
|
|
|
#include "MV2DElement.h"
|
|
#include "MapViewElementHelper.h"
|
|
|
|
#include <Indoor/floorplan/v2/Floorplan.h>
|
|
|
|
class MV2DElementFloorObstacleCircle : public MV2DElement, public HasMoveableNodes {
|
|
|
|
private:
|
|
|
|
int selPoint = -1;
|
|
Floorplan::FloorObstacleCircle* c;
|
|
|
|
public:
|
|
|
|
/** ctor */
|
|
MV2DElementFloorObstacleCircle(Floorplan::FloorObstacleCircle* c);
|
|
|
|
/** 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;
|
|
|
|
//std::vector<Point2> getSelPoints() const;
|
|
|
|
virtual std::vector<MoveableNode> 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 // MV2DELEMENTFLOOROBSTACLECIRCLE_H
|