Examples of Lens


Examples of ca.eandb.jmist.framework.Lens

      }
    }

    if (newEyeTail == null && m1 > 0) {
      PathInfo pi = x.getPathInfo();
      Lens lens = pi.getScene().getLens();
      Point2 p = RandomUtil.canonical2(rnd);
      newEyeTail = lens.sample(p, pi, rnd.next(), rnd.next(), rnd.next());
      m1--;
    }
    while (m1-- > 0) {
      newEyeTail = newEyeTail.expand(rnd.next(), rnd.next(), rnd.next());
      if (newEyeTail == null || newEyeTail.isAtInfinity()) {
View Full Code Here

Examples of ca.eandb.jmist.framework.Lens

      Color sample    = colorModel.sample(seq);
      seq.mark();

      PathInfo pi      = new PathInfo(scene, sample.getWavelengthPacket());
      Lens lens      = scene.getLens();
      PathNode eyeTail  = strategy.traceEyePath(lens, p,
                    pi, seq);
      seq.mark();

      Light light      = scene.getLight();
View Full Code Here

Examples of ca.eandb.jmist.framework.Lens

      Color sample    = colorModel.sample(seq);
      seq.mark();

      PathInfo pi      = new PathInfo(scene, sample.getWavelengthPacket());
      Lens lens      = scene.getLens();
      PathNode eyeTail  = strategy.traceEyePath(lens, p,
                    pi, seq);
      seq.mark();

      PathNode lightTail  = path.getLightTail();
View Full Code Here

Examples of ca.eandb.jmist.framework.Lens

      Color sample    = colorModel.sample(seq);
      seq.mark();

      seq.mutate(width);
      PathInfo pi      = new PathInfo(scene, sample.getWavelengthPacket());
      Lens lens      = scene.getLens();
      PathNode eyeTail  = strategy.traceEyePath(lens, p,
                    pi, seq);
      seq.mark();

      seq.mutate(width);
View Full Code Here

Examples of ca.eandb.jmist.framework.Lens

      double    h          = height;
      int      numPixels      = width * height;
      int      samplesPerPixel    = passes * lightPathsPerEyePath;
      double    lightImageWeight  = 1.0 / (double) samplesPerPixel;
      Light    light        = scene.getLight();
      Lens    lens        = scene.getLens();
      Animator  animator      = scene.getAnimator();

      initialize();
      raster.get().clear();

View Full Code Here

Examples of ca.eandb.jmist.framework.Lens

    PathInfo pathInfo = new PathInfo(scene, lambda);
    return strategy.traceLightPath(light, pathInfo, rnd);
  }

  private final PathNode generateEyePath(Random rnd, WavelengthPacket lambda) {
    Lens lens = scene.getLens();
    Point2 p = RandomUtil.canonical2(rnd);
    PathInfo pathInfo = new PathInfo(scene, lambda);
    return strategy.traceEyePath(lens, p, pathInfo, rnd);
  }
View Full Code Here

Examples of com.eteks.sweethome3d.model.Camera.Lens

  /**
   * Updates photo height. 
   */
  private void updateRatioComponents() {
    Lens lens = this.controller.getLens();
    boolean fixedProportions = lens == Camera.Lens.FISHEYE
        || lens == Camera.Lens.SPHERICAL;
    this.applyProportionsCheckBox.setEnabled(!fixedProportions);
    this.aspectRatioComboBox.setEnabled(!fixedProportions && applyProportionsCheckBox.isSelected());
  }
View Full Code Here

Examples of edu.mit.simile.backstage.model.ui.lens.Lens

                }
              } finally {
                  connection.close();
              }
               
            Lens lens = _lensRegistry.getLens(typeId);
           
              SailRepositoryConnection connection2 = (SailRepositoryConnection) database.getRepository().getConnection();
              try {
                lens.render(itemURI, result, database, connection2);
              } finally {
                  connection2.close();
              }
          } catch (Exception e) {
              _logger.error("Error generating lens for " + _itemID, e);
View Full Code Here

Examples of edu.mit.simile.fresnel.selection.Lens

      it = conn.getStatements((Resource) null, FresnelCore.classLensDomain, (Value) null, false);
      while (it.hasNext()) {
        try {
          Statement lensResourceStatement = (Statement) it.next();
          Lens lens = new Lens(this._source, lensResourceStatement.getSubject(), this);
          if (!this._all.containsKey(lens.getIdentifier())) addLens(lens);
        } catch (ParsingException e) {
          gather(e);
        } catch (UnresolvableException u) {
          gather(u);
        }
View Full Code Here

Examples of edu.mit.simile.fresnel.selection.Lens

      validStarts = null;
    }

    Iterator<Lens> li = grouping.getLenses().iterator();
    while (li.hasNext()) {
      Lens lens = li.next();
      Iterator<ISelector> di = lens.getDomainSet().iterator();
      while (di.hasNext()) {
        ISelector select = di.next();
        if (select.canSelectResources()) {
          try {
            Iterator<Resource> ri = select.selectResources(in);
            while (ri.hasNext()) {
              Resource res = (Resource) ri.next();
              if (null == validStarts || (null != validStarts && validStarts.contains(res))) {
                if (this._lensMatches.containsKey(res)) {
                  LensMatchSet match = this._lensMatches.getMatch(res);
                  match.add(lens);
                } else {
                  LensMatchSet match = new LensMatchSet(res);
                  match.add(lens);
                  this._lensMatches.putMatch(res, match);
                }
              }
            }
          } catch (InvalidResultSetException e) {
            //
          }
        }
      }
    }

    // exception if no matches
    if (this._lensMatches.size() == 0)
      throw new NoResultsException("No lenses matching the data could be found.");

    Selection answer = new Selection(this);
    answer.setLangPref(langPref);

    Iterator<?> resources = this._lensMatches.keySet().iterator();
    while (resources.hasNext()) {
      Resource subject = (Resource) resources.next();
      LensMatchSet match = this._lensMatches.getMatch(subject);
      Lens best = match.topMatch();
      answer.addPrimary(answer.applyLens(grouping, in, best, subject, 0, MAXIMUM_LENS_DEPTH));
    }

    return answer;
  }
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.