Examples of BoundingBox


Examples of aimax.osm.data.BoundingBox

   */
  @Override
  protected void find(boolean findMore) {
    BestMatchFinder bmf = new BestMatchFinder(pattern);
    List<MapEntity> results = getResults();
    BoundingBox bb = new BoundingBox(position, nextRadius);
    if (!results.isEmpty())
      bmf.checkMatchQuality(results.get(0));
    if (mode.equals(Mode.ENTITY) || mode.equals(Mode.NODE)) {
      for (MapNode node : getStorage().getPois(bb)) {
        int match = bmf.checkMatchQuality(node);
View Full Code Here

Examples of ca.carleton.gcrc.geom.BoundingBox

        logger.debug("Computing BBOX");

        // BBOX
        {
          boolean include = false;
          BoundingBox boundingBox = new BoundingBox();
          for(GeoJsonFeature feature : features){
            Geometry geometry = feature.getGeometry();
            if( null != geometry ){
              geometry.extendBoundingBox(boundingBox);
              include = true;
            }
          }
          if( include ){
            JSONArray bbox = new JSONArray();
            bbox.put( boundingBox.getMinX() );
            bbox.put( boundingBox.getMinY() );
            bbox.put( boundingBox.getMaxX() );
            bbox.put( boundingBox.getMaxY() );

            layerDef.put("bbox", bbox);
          }
        }
       
View Full Code Here

Examples of ch.hsr.geohash.BoundingBox

* Created by IntelliJ IDEA. User: kevin Date: Jan 6, 2011 Time: 3:05:43 PM
*/
public class BoundingBoxGeoHashIteratorTest {
  @Test
  public void testIter() {
    BoundingBox box = new BoundingBox(37.7, 37.84, -122.52, -122.35);
    BoundingBoxGeoHashIterator iter = new BoundingBoxGeoHashIterator(
        TwoGeoHashBoundingBox.withBitPrecision(box, 10));
    BoundingBox newBox = iter.getBoundingBox().getBoundingBox();
    List<GeoHash> hashes = new ArrayList<GeoHash>();
    while (iter.hasNext()) {
      hashes.add(iter.next());
    }
    GeoHash prev = null;
    for (GeoHash gh : hashes) {
      if (prev != null) {
        Assert.assertTrue(prev.compareTo(gh) < 0);
      }
      Assert.assertTrue(newBox.contains(gh.getPoint()));
      prev = gh;
    }

  }
View Full Code Here

Examples of com.ardor3d.bounding.BoundingBox

        UIComponent.setUseTransparency(true);

        // Add a spinning 3D box to show behind UI.
        final Box box = new Box("Box", new Vector3(0, 0, 0), 5, 5, 5);
        box.setModelBound(new BoundingBox());
        box.setTranslation(new Vector3(0, 0, -15));
        box.addController(new SpatialController<Box>() {
            private final Matrix3 rotate = new Matrix3();
            private double angle = 0;
            private final Vector3 axis = new Vector3(1, 1, 0.5f).normalizeLocal();
View Full Code Here

Examples of com.badlogic.gdx.math.collision.BoundingBox

    }
  }

  /** Returns the bounding box for all active particles. z axis will always be zero. */
  public BoundingBox getBoundingBox () {
    if (bounds == null) bounds = new BoundingBox();

    BoundingBox bounds = this.bounds;
    bounds.inf();
    for (ParticleEmitter emitter : this.emitters)
      bounds.ext(emitter.getBoundingBox());
    return bounds;
  }
View Full Code Here

Examples of com.bbn.openmap.proj.coords.BoundingBox

        layers.appendChild(e1);
    }

    private void appendSRSBoundingBox(Document doc, Element layers, String crsCode) {
        CoordinateReferenceSystem crs = CoordinateReferenceSystem.getForCode(crsCode);
        BoundingBox bbox = crs.getBoundingBox();
        if (bbox == null) {
            return;
        }
        org.w3c.dom.Element e1 = (org.w3c.dom.Element) node(doc, "BoundingBox");
        e1.setAttribute("SRS", crs.getCode());
        e1.setAttribute("minx", Double.toString(bbox.getMinX()));
        e1.setAttribute("miny", Double.toString(bbox.getMinY()));
        e1.setAttribute("maxx", Double.toString(bbox.getMaxX()));
        e1.setAttribute("maxy", Double.toString(bbox.getMaxY()));
        layers.appendChild(e1);
    }
View Full Code Here

Examples of com.beoui.geocell.model.BoundingBox

    float neLng = Float.parseFloat(req.getParameter("neLng"));
   
    if (log.isDebugEnabled())
      log.debug("Downloading box " + swLat + "," + swLng + " -- " + neLat + "," + neLng);
   
    BoundingBox bb = new BoundingBox(neLat, neLng, swLat, swLng);

    // The cost function causes it to never return
//    List<String> cells = GeocellManager.bestBboxSearchCells(bb, new CostFunction() {
//      @Override
//      public double defaultCostFunction(int numCells, int resolution)
View Full Code Here

Examples of com.deadtroll.model.BoundingBox

        if (GeomUtil.pontoEmPoligono(pontoSelecao, (PoligonoFechado)objeto)) {
          selecionarObjeto(objeto);
          return true;
        }
      } else {
        BoundingBox bbox = objeto.getBoundingBox();
        if (pontoSelecao.getX() > bbox.getMinXY().getX() &&
          pontoSelecao.getX() < bbox.getMaxXY().getX() &&
          pontoSelecao.getY() > bbox.getMinXY().getY() &&
          pontoSelecao.getY() < bbox.getMaxXY().getY()) {
          selecionarObjeto(objeto);
          return true;
        }
      }
    }
View Full Code Here

Examples of com.jme.bounding.BoundingBox

        subNode[0].setRenderState(Tool.createXRayShader());
        triMesh[0] = new Sphere("sphere", new Vector3f(0, 0, 0), 10, 10, 5);
        triMesh[0].setModelBound(new BoundingSphere());
        subNode[1] = new Node("boxes");
        triMesh[1] = new Box("box", new Vector3f(0, 0, 0), 5, 5, 5);
        triMesh[1].setModelBound(new BoundingBox());
        subNode[2] = new Node("toruses");
        triMesh[2] = new Torus("torus", 10, 10, 2, 3);
        triMesh[2].setModelBound(new BoundingBox());
        subNode[3] = new Node("cylinders");
        triMesh[3] = new Cylinder("cylinder", 10, 10, 2, 3, true);
        triMesh[3].setModelBound(new BoundingBox());
        subNode[4] = new Node("pyramids");
        triMesh[4] = new Pyramid("pyramid", 10, 10);
        triMesh[4].setModelBound(new BoundingBox());

        for (int i = 0; i < subNode.length; i++) {
            node.attachChild(subNode[i]);
           
        }
View Full Code Here

Examples of com.jme.bounding.BoundingBox

        public BoundingVolume createBounds() {
            switch(boundsType) {
                case SPHERE :
                    return new BoundingSphere(dimension_x, new Vector3f(center_x, center_y, center_z));
                case BOX :
                    return new BoundingBox(new Vector3f(center_x, center_y, center_z), dimension_x, dimension_y, dimension_z);
                default :
                    throw new RuntimeException("Unsupported bounds type "+boundsType);
            }
        }
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.