added support for pillars
minor fixes new 3D models
This commit is contained in:
@@ -32,8 +32,6 @@ public:
|
||||
return MapElementHelper::getLineDistanceXY(fo->from, fo->to, p);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** repaint me */
|
||||
void paint(Painter& p) override {
|
||||
|
||||
@@ -58,7 +56,6 @@ public:
|
||||
// reset the old pen
|
||||
p.setPen(pen);
|
||||
|
||||
|
||||
// available endpoints
|
||||
if (hasFocus()) {
|
||||
|
||||
@@ -76,38 +73,8 @@ public:
|
||||
p.drawCircle_px(fo->to, 3);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// void paintDoor(Painter& p) {
|
||||
|
||||
// QPen pen;
|
||||
// pen.setColor(QColor(0.5,0.5,0.5));
|
||||
// pen.setStyle(Qt::PenStyle::DotLine);
|
||||
// p.setPenBrush(pen, Qt::NoBrush);
|
||||
|
||||
|
||||
// // opening indicator
|
||||
// const float open = M_PI / 4;
|
||||
// const float len = (fo->to - fo->from).length();
|
||||
// const float angle1 = std::atan2(fo->to.y-fo->from.y, fo->to.x-fo->from.x);
|
||||
// const float angle2 = angle1 + open;
|
||||
// const Point2 pOpen = Point2( std::cos(angle2) * len, std::sin(angle2) * len ) + fo->from;
|
||||
|
||||
// p.drawLine(fo->from, fo->to);
|
||||
// p.drawLine(fo->from, pOpen);
|
||||
|
||||
// p.drawArc(fo->from, len, angle1, open);
|
||||
// //p.drawLine(fo->to, pOpen);
|
||||
|
||||
// // obstacle length
|
||||
// p.setPenBrush(Qt::black, Qt::NoBrush);
|
||||
// p.drawLength(fo->from, fo->to, fo->from.getDistance(fo->to));
|
||||
|
||||
// }
|
||||
|
||||
void onFocus() override {
|
||||
;
|
||||
}
|
||||
@@ -135,7 +102,6 @@ public:
|
||||
emit v->onElementChange(this);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // MV2DELEMENTFLOOROBSTACLELINE_H
|
||||
|
||||
Reference in New Issue
Block a user