Examples of FillImpl3D


Examples of org.geoserver.w3ds.styles.FillImpl3D

  public void update(Fill fill_, Feature feature) {

    // Provisory hack to have 3D style (see Styles3D)
    if (fill_.getClass().getName().equalsIgnoreCase(FillImpl3D.class.getName())) {
      FillImpl3D fill = (FillImpl3D) fill_;
      if (fill.getDiffuseColor() != null) {
        String value = getExpressionValue(fill.getDiffuseColor(),
            feature);
        if (value != null) {
          this.diffuseColor.setValue(value);
        }
      }
      if (fill.getTextureUrl() != null) {
        String value = getExpressionValue(fill.getTextureUrl(), feature);
        if (value != null) {
          this.url.setValue(value);
          this.imageTexture.setValid(true);
          this.material.setValid(false);
        }
      }
      if (fill.getEmissiveColor() != null) {
        String value = getExpressionValue(fill.getEmissiveColor(),
            feature);
        if (value != null) {
          this.emissiveColor.setValue(value);
        }
      }
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.