changed 3D rendering

added pan/zoom gesture
This commit is contained in:
2018-02-04 17:02:14 +01:00
parent 3b62f23c0e
commit 076c0e9157
32 changed files with 446 additions and 484 deletions

View File

@@ -82,11 +82,21 @@ protected:
if (tmp.pol) {delete tmp.pol;}
tmp.pol = new Polygon();
// all to-be-added polygons (filter!)
for (Floorplan::FloorOutlinePolygon* poly : polys) {
if (!include(poly)) {continue;}
switch (poly->method) {
case Floorplan::OutlineMethod::ADD: tmp.pol->add(poly->poly); break;
case Floorplan::OutlineMethod::REMOVE: break;
default: throw 1;
}
}
// all to-be-removed polygons (NO filter!)
for (Floorplan::FloorOutlinePolygon* poly : polys) {
switch (poly->method) {
case Floorplan::OutlineMethod::REMOVE: tmp.pol->remove(poly->poly); break;
case Floorplan::OutlineMethod::ADD: break;
default: throw 1;
}
}