Package ca.eandb.jmist.framework.accel

Examples of ca.eandb.jmist.framework.accel.BoundingIntervalHierarchy$Bound


        .setMaterialRange(20, 1, "green")     // right wall
        .setMaterialRange(21, 1, "red")     // left wall
        .setMaterialRange(22, 5, "white")     // short block
        .setMaterialRange(27, 5, "white");     // tall block

    this.cornellBox = new BoundingIntervalHierarchy(materialMap);
    this.light = cornellBox.createLight();
  }
View Full Code Here


        .setMaterialRange(20, 1, "green")     // right wall
        .setMaterialRange(21, 1, "red")     // left wall
        .setMaterialRange(22, 5, "white")     // short block
        .setMaterialRange(27, 5, "white");     // tall block

    this.cornellBox = new BoundingIntervalHierarchy(materialMap);
    this.light = cornellBox.createLight();
  }
View Full Code Here

      if (dxf.getCurrentElement().getStringValue().equals("EOF")) {
        break;
      }
      rootGroupHandler.parse(state, dxf);
    } while (true);
    return new MaterialSceneElement(new LambertianMaterial(cm.getGray(0.5)), new BoundingIntervalHierarchy(state.root));
  }
View Full Code Here

//      }

      if (block.root == null) {
        int np = block.geometry.getNumPrimitives();
        if (np >= ACCEL_THRESHOLD) {
          block.root = new BoundingIntervalHierarchy(block.geometry);
        } else {
          block.root = block.geometry;
        }
      }
View Full Code Here

   */
  public void setOrigin(OSMData osmData) {
   
    if (osmData.getBounds() != null && !osmData.getBounds().isEmpty()) {
     
      Bound firstBound = osmData.getBounds().iterator().next();
     
      setOrigin(new LatLon(
          (firstBound.getTop() + firstBound.getBottom()) / 2,
          (firstBound.getLeft() + firstBound.getRight()) / 2));
     
    } else {
     
      if (osmData.getNodes().isEmpty()) {
        throw new IllegalArgumentException(
View Full Code Here

   */
  @Test
  public final void testProcess1() {
    BoundWriter bw = new BoundWriter("bound", 2, true);
    bw.setWriter(testBufferedWriter);
    bw.process(new Bound(20.123456, -21.987654, 22.555555, -23.234567, "originstring"));
    try {
      testBufferedWriter.flush();
    } catch (IOException e) {
      e.printStackTrace();
      fail("IOException");
View Full Code Here

   */
  @Test
  public final void testProcess2() {
    BoundWriter bw = new BoundWriter("bound", 2, true);
    bw.setWriter(testBufferedWriter);
    bw.process(new Bound(20.123456, -21.987654, 22.555555, -23.234567, ""));
    try {
      testBufferedWriter.flush();
    } catch (IOException e) {
      e.printStackTrace();
      fail("IOException");
View Full Code Here

      initialize();
    }
   
    // Build the bounds list.
    bounds = new ArrayList<Bound>();
    bounds.add(new Bound("Osmosis " + OsmosisConstants.VERSION));
   
    sources = new ArrayList<ReleasableIterator<EntityContainer>>();
   
    sources.add(new UpcastIterator<EntityContainer, BoundContainer>(
        new BoundContainerIterator(new ReleasableAdaptorForIterator<Bound>(bounds.iterator()))));
View Full Code Here

      initialize();
    }
   
    // Build the bounds list.
    bounds = new ArrayList<Bound>();
    bounds.add(new Bound(right, left, top, bottom, "Osmosis " + OsmosisConstants.VERSION));
   
    // PostgreSQL sometimes incorrectly chooses to perform full table scans, these options
    // prevent this. Note that this is not recommended practice according to documentation
    // but fixing this would require modifying the table statistics gathering
    // configuration to produce better plans.
View Full Code Here

    }
    origin = reader.getAttributeValue(null, ATTRIBUTE_NAME_ORIGIN);
    if (origin == null || origin.equals("")) {
      throw new OsmosisRuntimeException("Origin attribute of bound element is empty or missing.");
    }
    Bound bound = new Bound(right, left, top, bottom, origin);
   
    reader.nextTag();
    reader.nextTag();
   
    return bound;
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.accel.BoundingIntervalHierarchy$Bound

Copyright © 2018 www.massapicom. 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.