Examples of MapArea


Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.MapArea

    add(m_verticalLine);
    if(m_sourceTreeComponent.m_flat){
      // TODO: disable instance functions
    }

    m_mapArea=new MapArea(this);
    m_treePanel.add(m_mapArea);
        installFocusKeyBindings();
    start();

        loadStructures(true, new RefreshStructuresCallback() {
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.MapArea

    m_newTargetScrollPane=new TreeScrollPane(this,newTargetTree,m_newTargetJtr,"new TARGET");
    m_newTargetTree=m_newTargetScrollPane.m_tree;

    m_sourceMapArea=new MapArea_Migration(m_newSourceScrollPane, m_oldSourceScrollPane, false);
    m_targetMapArea=new MapArea_Migration(m_oldTargetScrollPane, m_newTargetScrollPane, true);
    m_mapArea=new MapArea(this, m_old);

    m_oldSourceTree.setTables(null, m_mapArea.m_mappedSourceSet);
    m_oldTargetTree.setTables(m_mapArea.m_mappedTargetSet, null);

    m_panel.add(m_newSourceScrollPane);
View Full Code Here

Examples of org.osm2world.core.map_data.data.MapArea

      for (MapOverlap<?,?> overlap : area.getOverlaps()) {
        MapElement other = overlap.getOther(area);
        if (other instanceof MapArea
            && other.getTags().containsKey("building:part")) {
         
          MapArea otherArea = (MapArea)other;
         
          //TODO: check whether the building contains the part (instead of just touching it)
          if (area.getPolygon().contains(
              otherArea.getPolygon().getOuter())) {
            parts.add(new BuildingPart(this, otherArea,
              otherArea.getPolygon(), useBuildingColors,
              drawBuildingWindows));
          }
         
        }
      }
View Full Code Here

Examples of org.osm2world.core.map_data.data.MapArea

    private boolean isContainedWithinRiverbank() {
      boolean containedWithinRiverbank = false;
     
      for (MapOverlap<?,?> overlap : segment.getOverlaps()) {
        if (overlap.getOther(segment) instanceof MapArea) {
          MapArea area = (MapArea)overlap.getOther(segment);
          if (area.getPrimaryRepresentation() instanceof Water &&
              area.getPolygon().contains(segment.getLineSegment())) {
            containedWithinRiverbank = true;
            break;
          }
        }
      }
View Full Code Here

Examples of org.osm2world.core.map_data.data.MapArea

    // first column
    for (int z = endZ - 2; z >= startZ /* start will be added again */; z--) {
      nodes.add(nodeGrid[startX][z]);
    }
   
    return new MapArea(EMPTY_SURFACE_WAY, nodes);
   
  }
View Full Code Here

Examples of org.osm2world.core.map_data.data.MapArea

        }
       
      }
    }
   
    return singleton(new MapArea(tagSource, outerNodes, holes));
   
  }
View Full Code Here

Examples of org.osm2world.core.map_data.data.MapArea

      for (Ring innerRing : innerRings) {
        holes.add(innerRing.closedNodeSequence);
        holesXZ.add(innerRing.getPolygon());
      }
     
      MapArea area = new MapArea(relation, outerRing.getNodeLoop(), holes,
          new PolygonWithHolesXZ(outerRing.getPolygon(), holesXZ));
     
      finishedPolygons.add(area);
     
      rings.remove(outerRing);
View Full Code Here

Examples of org.osm2world.core.map_data.data.MapArea

              nodes.add(nodeMap.get(boundaryOSMNode));
            }
           
            try {
             
              MapArea mapArea = new MapArea((OSMElement)way, nodes);
             
              mapAreas.add(mapArea);
              areaMap.put(way, mapArea);
             
            } catch (InvalidGeometryException e) {
View Full Code Here

Examples of org.osm2world.core.map_data.data.MapArea

   
    assertSame(13, mapData.getMapNodes().size());
    assertSame(0, mapData.getMapWaySegments().size());
    assertSame(1, mapData.getMapAreas().size());
   
    MapArea area = mapData.getMapAreas().iterator().next();

    assertSame(2, area.getHoles().size());
    assertSame(6, area.getOuterPolygon().size());
    assertSame(13, area.getAreaSegments().size());
   
  }
View Full Code Here

Examples of org.osm2world.core.map_data.data.MapArea

          return true;
        }
        return false;
       
      } else { // element instanceof MapArea
        MapArea area = ((MapArea)element);
               
        for (MapNode node : area.getBoundaryNodes()) {
          if (contains(node.getPos())) {
            return true;
          }
        }
       
        if (boundary.intersects(area.getPolygon().getOuter())
            || area.getPolygon().contains(boundary)) {
          //SUGGEST (performance): use that the box is axis-aligned?
          return true;
        }
       
        return false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.