added first version of LINT to the editor

fixed issue with incorrect stairs
This commit is contained in:
2017-03-20 14:45:11 +01:00
parent 7ac8e7bac2
commit e774a66f34
9 changed files with 78 additions and 6 deletions

View File

@@ -113,17 +113,21 @@ public:
pen.setColor(QColor(255,0,0));
p.setPen(pen);
// LINT
// LINT disconnected start
if (i == 0) {
if (quad.p1.z != floor->getStartingZ()) {
p.drawLine(quad.p1, quad.p2);
}
} else if (i == (int) parts.size() - 1) {
}
// LINT disconnected end
if (i == (int) parts.size() - 1) {
if (quad.p3.z != floor->getEndingZ()) {
p.drawLine(quad.p3, quad.p4);
}
}
// LINT disconnected within
if (i > 0) {
if (quads[i-1].p4.z != quads[i-0].p1.z) {
p.drawLine(quad.p1, quad.p2);

View File

@@ -73,6 +73,7 @@ public:
// load the indoor-map using the given XML-file
im = Floorplan::Reader::readFromFile(file);
Floorplan::LINT::assertOK(im);
root = new MMRoot(nullptr, im);
root->addListener(this);