/** * Transforms a Java type into the corresponding OMERO RType. * * @param value Java concrete type value. * @return RType or <code>null</code> if <code>value</code> is * <code>null</code>. */ public RDouble toRType(PositiveFloat value) { return value == null? null : rdouble(value.getValue()); }
return new ome.units.quantity.Pressure(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Frequency(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Time(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Temperature(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.ElectricPotential(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Power(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Temperature(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Time(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Frequency(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.ElectricPotential(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Length(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Length(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Power(typedValue.getValue(), getBaseUnit(inModelUnit));
return new ome.units.quantity.Pressure(typedValue.getValue(), getBaseUnit(inModelUnit));
/** * Creates a channel. * * @param index The index in the file. * @return See above. */ public Channel createChannel(int index) { Channel channel = new Channel(); channel.setID("Channel:"+index); channel.setAcquisitionMode(AcquisitionMode.FLUORESCENCELIFETIME); int argb = DEFAULT_COLOR.getRGB(); int rgba = (argb << 8) | (argb >>> (32-8)); channel.setColor(new ome.xml.model.primitives.Color(rgba)); channel.setName("Name"); channel.setIlluminationType(IlluminationType.OBLIQUE); channel.setPinholeSize(new Length(0.5, UNITS.MICROMETER)); channel.setContrastMethod(ContrastMethod.BRIGHTFIELD); PositiveFloat emWave = new PositiveFloat(300.3); channel.setEmissionWavelength(new Length(emWave.getValue(), UNITS.NANOMETER)); PositiveFloat exWave = new PositiveFloat(400.3); channel.setExcitationWavelength(new Length(exWave.getValue(), UNITS.NANOMETER)); channel.setFluor("Fluor"); channel.setNDFilter(1.0); channel.setPockelCellSetting(0); return channel; }