Package ca.eandb.jmist.framework.color

Examples of ca.eandb.jmist.framework.color.Spectrum


  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.DirectionalTexture3#evaluate(ca.eandb.jmist.math.Vector3)
   */
  public Spectrum evaluate(final Vector3 v) {
    return new Spectrum() {
      private static final long serialVersionUID = 7992544267450760499L;
      public Color sample(WavelengthPacket lambda) {
        return evaluate(v, lambda);
      }
    };
View Full Code Here


      visitMaterial();
      currentMaterialName = name;
    }

    private Painter getPainter(String name) throws IOException {
      Spectrum color = getColor(name);
      if (maps.containsKey(name)) {
        File file = new File(directory, maps.get(name));
        return new ProductPainter(color, new Texture2Painter(new RasterTexture2(file)));
      }
      return new UniformPainter(color);
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.DirectionalTexture3#evaluate(ca.eandb.jmist.math.Vector3)
   */
  public Spectrum evaluate(final Vector3 v) {
    return new Spectrum() {
      private static final long serialVersionUID = -3558496271642281773L;
      public Color sample(WavelengthPacket lambda) {
        return evaluate(v, lambda);
      }
    };
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.color.ColorModel#getGray(double, ca.eandb.jmist.framework.color.WavelengthPacket)
   */
  @Override
  public Color getGray(double value, WavelengthPacket lambda) {
    Spectrum s = new XYZColor(value, value, value, this);
    return s.sample(lambda);
  }
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.color.Spectrum

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.