split line(old) and wall(new)
added new walling started working on windows
This commit is contained in:
45
mapview/2D/MV2DElementFloorObstacleWall.h
Normal file
45
mapview/2D/MV2DElementFloorObstacleWall.h
Normal file
@@ -0,0 +1,45 @@
|
||||
#ifndef MV2DELEMENTFLOOROBSTACLEWALL_H
|
||||
#define MV2DELEMENTFLOOROBSTACLEWALL_H
|
||||
|
||||
|
||||
#include "MV2DElement.h"
|
||||
#include "HasMoveableNodes.h"
|
||||
|
||||
#include <Indoor/floorplan/v2/Floorplan.h>
|
||||
|
||||
class MV2DElementFloorObstacleWall : public MV2DElement, public HasMoveableNodes {
|
||||
|
||||
private:
|
||||
|
||||
Floorplan::Floor* f;
|
||||
Floorplan::FloorObstacleWall* fo;
|
||||
|
||||
public:
|
||||
|
||||
/** ctor */
|
||||
MV2DElementFloorObstacleWall(Floorplan::Floor* f, Floorplan::FloorObstacleWall* 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<MoveableNode> getMoveableNodes() const override;
|
||||
|
||||
void onNodeMove(MapView2D* v, const int userIdx, const Point2 newPos) override;
|
||||
|
||||
void onNodeMoved(MapView2D* v, const int userIdx, const Point2 newPos);
|
||||
|
||||
bool keyPressEvent(MapView2D* v, QKeyEvent* e) override;
|
||||
|
||||
};
|
||||
|
||||
#endif // MV2DELEMENTFLOOROBSTACLEWALL_H
|
||||
Reference in New Issue
Block a user