changed 3D rendering
added pan/zoom gesture
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user