Examples of FloatAttribute


Examples of ca.eandb.jmist.framework.loader.openexr.attribute.FloatAttribute

    attributes.put("channels", new ChannelList());
    attributes.put("compression", CompressionMethod.NONE);
    attributes.put("dataWindow", dataWindow);
    attributes.put("displayWindow", displayWindow);
    attributes.put("lineOrder", LineOrder.INCREASING_Y);
    attributes.put("pixelAspectRatio", new FloatAttribute(1.0f));
    attributes.put("screenWindowCenter", new V2f(0.0f, 0.0f));
    attributes.put("screenWindowWidth", new FloatAttribute(1.0f));
  }
View Full Code Here

Examples of ca.eandb.jmist.framework.loader.openexr.attribute.FloatAttribute

  public float getPixelAspectRatio() {
    return ((FloatAttribute) attributes.get("pixelAspectRatio")).getValue();
  }

  public void setPixelAspectRatio(float value) {
    attributes.put("pixelAspectRatio", new FloatAttribute(value));
  }
View Full Code Here

Examples of ca.eandb.jmist.framework.loader.openexr.attribute.FloatAttribute

  public float getScreenWindowWidth() {
    return ((FloatAttribute) attributes.get("screenWindowWidth")).getValue();
  }

  public void setScreenWindowWidth(float value) {
    attributes.put("screenWindowWidth", new FloatAttribute(value));
  }
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.attributes.FloatAttribute

    for (int i = 0; i < n; i++) {
      final VertexAttribute attr = renderable.mesh.getVertexAttributes().get(i);
      if (attr.usage == Usage.BoneWeight) w |= (1 << attr.unit);
    }
    weights = w;
    alphaTestAttribute = new FloatAttribute(FloatAttribute.AlphaTest, config.defaultAlphaTest);
  }
View Full Code Here

Examples of de.ailis.jollada.model.FloatAttribute

    {
        final double value = Double.parseDouble(this.stringBuilder.toString()
                .trim());
        this.stringBuilder = null;
        this.floatValue.setValue(value);
        this.floatAttrib = new FloatAttribute(this.floatValue);
        this.floatValue = null;
        leaveElement();
    }
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.FloatAttribute

        break;
      case LONG:
        result = new LongAttribute((Long) value);
        break;
      case FLOAT:
        result = new FloatAttribute((Float) value);
        break;
      case DOUBLE:
        result = new DoubleAttribute((Double) value);
        break;
      case CURRENCY:
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.FloatAttribute

    Map<String, Attribute<?>> attributes = new HashMap<String, Attribute<?>>();
    FeatureBean bean = new FeatureBean();
    attributes.put("stringAttr", new StringAttribute("s1"));
    attributes.put("doubleAttr", new DoubleAttribute(1.23));
    attributes.put("longAttr", new LongAttribute(12L));
    attributes.put("floatAttr", new FloatAttribute(1.67F));
    attributes.put("shortAttr", new ShortAttribute((short) 6));
    attributes.put("urlAttr", new UrlAttribute("http://haha"));
    service.setAttributes(bean, layerBeans.getLayerInfo().getFeatureInfo(), new DummyMapper(), attributes);
    Assert.assertEquals("s1", bean.getStringAttr());
    Assert.assertEquals(1.23, bean.getDoubleAttr(), 0.0001);
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.FloatAttribute

      case INTEGER:
        return new IntegerAttribute((Integer) convertToClass(value, Integer.class));
      case LONG:
        return new LongAttribute((Long) convertToClass(value, Long.class));
      case FLOAT:
        return new FloatAttribute((Float) convertToClass(value, Float.class));
      case DOUBLE:
        return new DoubleAttribute((Double) convertToClass(value, Double.class));
      case CURRENCY:
        return new CurrencyAttribute((String) convertToClass(value, String.class));
      case STRING:
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.FloatAttribute

    }
    Map<String, PrimitiveAttribute<?>> attributes = new HashMap<String, PrimitiveAttribute<?>>();
    attributes.put(PARAM_TEXT_ATTR, new StringAttribute("manyToOne-1"));
    attributes.put(PARAM_BOOLEAN_ATTR, new BooleanAttribute(true));
    attributes.put(PARAM_INT_ATTR, new IntegerAttribute(100));
    attributes.put(PARAM_FLOAT_ATTR, new FloatAttribute(100.0f));
    attributes.put(PARAM_DOUBLE_ATTR, new DoubleAttribute(100.0));
    attributes.put(PARAM_DATE_ATTR, new DateAttribute(date));

    return new ManyToOneAttribute(new AssociationValue(new LongAttribute(id), attributes));
  }
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.FloatAttribute

  public void setAttributes() throws Exception {
    Date date = new Date();
    Map<String, Attribute> attributes = new HashMap<String, Attribute>();
    attributes.put(PARAM_TEXT_ATTR, new StringAttribute("new name"));
    attributes.put(PARAM_INT_ATTR, new IntegerAttribute(5));
    attributes.put(PARAM_FLOAT_ATTR, new FloatAttribute(5.0f));
    attributes.put(PARAM_DOUBLE_ATTR, new DoubleAttribute(5.0));
    attributes.put(PARAM_BOOLEAN_ATTR, new BooleanAttribute(false));
    attributes.put(PARAM_DATE_ATTR, new DateAttribute(date));
    featureModel.setAttributes(feature1, attributes);
    Assert.assertEquals("new name", featureModel.getAttribute(feature1, PARAM_TEXT_ATTR).getValue());
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.