setLightSourceSettings(new LightSourceSettings( (Element) LightSourceSettings_nodeList.get(0), model));
setLightSourceSettings(new LightSourceSettings( (Element) LightSourceSettings_nodeList.get(0), model));
LightSourceSettings settings = new LightSourceSettings(); settings.setID("LightSource:0"); channel.setLightSourceSettings(settings); pixels.addChannel(channel); image.setPixels(pixels);
public void setChannelLightSourceSettingsAttenuation(PercentFraction attenuation, int imageIndex, int channelIndex) { // Parents: {u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}, u'MicrobeamManipulation': {u'Experiment': {u'OME': None}}} // Attenuation is not a reference OME o0 = root; if (o0.sizeOfImageList() == imageIndex) { o0.addImage(new Image()); } Image o1 = o0.getImage(imageIndex); if (o1.getPixels() == null) { o1.setPixels(new Pixels()); } Pixels o2 = o1.getPixels(); if (o2.sizeOfChannelList() == channelIndex) { o2.addChannel(new Channel()); } Channel o3 = o2.getChannel(channelIndex); if (o3.getLightSourceSettings() == null) { o3.setLightSourceSettings(new LightSourceSettings()); } LightSourceSettings o4 = o3.getLightSourceSettings(); o4.setAttenuation(attenuation); }
public void setChannelLightSourceSettingsAttenuation(PercentFraction attenuation, int imageIndex, int channelIndex) { // Parents: {u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}, u'MicrobeamManipulation': {u'Experiment': {u'OME': None}}} // Attenuation is not a reference OME o0 = root; if (o0.sizeOfImageList() == imageIndex) { o0.addImage(new Image()); } Image o1 = o0.getImage(imageIndex); if (o1.getPixels() == null) { o1.setPixels(new Pixels()); } Pixels o2 = o1.getPixels(); if (o2.sizeOfChannelList() == channelIndex) { o2.addChannel(new Channel()); } Channel o3 = o2.getChannel(channelIndex); if (o3.getLightSourceSettings() == null) { o3.setLightSourceSettings(new LightSourceSettings()); } LightSourceSettings o4 = o3.getLightSourceSettings(); o4.setAttenuation(attenuation); }
public void setChannelLightSourceSettingsID(String id, int imageIndex, int channelIndex) { // Parents: {u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}, u'MicrobeamManipulation': {u'Experiment': {u'OME': None}}} // ID is not a reference OME o0 = root; if (o0.sizeOfImageList() == imageIndex) { o0.addImage(new Image()); } Image o1 = o0.getImage(imageIndex); if (o1.getPixels() == null) { o1.setPixels(new Pixels()); } Pixels o2 = o1.getPixels(); if (o2.sizeOfChannelList() == channelIndex) { o2.addChannel(new Channel()); } Channel o3 = o2.getChannel(channelIndex); if (o3.getLightSourceSettings() == null) { o3.setLightSourceSettings(new LightSourceSettings()); } LightSourceSettings o4 = o3.getLightSourceSettings(); model.addModelObject(id, o4); o4.setID(id); }
public void setChannelLightSourceSettingsWavelength(Length wavelength, int imageIndex, int channelIndex) { // Parents: {u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}, u'MicrobeamManipulation': {u'Experiment': {u'OME': None}}} // Wavelength is not a reference OME o0 = root; if (o0.sizeOfImageList() == imageIndex) { o0.addImage(new Image()); } Image o1 = o0.getImage(imageIndex); if (o1.getPixels() == null) { o1.setPixels(new Pixels()); } Pixels o2 = o1.getPixels(); if (o2.sizeOfChannelList() == channelIndex) { o2.addChannel(new Channel()); } Channel o3 = o2.getChannel(channelIndex); if (o3.getLightSourceSettings() == null) { o3.setLightSourceSettings(new LightSourceSettings()); } LightSourceSettings o4 = o3.getLightSourceSettings(); o4.setWavelength(wavelength); }
public void setChannelLightSourceSettingsWavelength(Length wavelength, int imageIndex, int channelIndex) { // Parents: {u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}, u'MicrobeamManipulation': {u'Experiment': {u'OME': None}}} // Wavelength is not a reference OME o0 = root; if (o0.sizeOfImageList() == imageIndex) { o0.addImage(new Image()); } Image o1 = o0.getImage(imageIndex); if (o1.getPixels() == null) { o1.setPixels(new Pixels()); } Pixels o2 = o1.getPixels(); if (o2.sizeOfChannelList() == channelIndex) { o2.addChannel(new Channel()); } Channel o3 = o2.getChannel(channelIndex); if (o3.getLightSourceSettings() == null) { o3.setLightSourceSettings(new LightSourceSettings()); } LightSourceSettings o4 = o3.getLightSourceSettings(); o4.setWavelength(wavelength); }
public void setChannelLightSourceSettingsID(String id, int imageIndex, int channelIndex) { // Parents: {u'Channel': {u'Pixels': {u'Image': {u'OME': None}}}, u'MicrobeamManipulation': {u'Experiment': {u'OME': None}}} // ID is not a reference OME o0 = root; if (o0.sizeOfImageList() == imageIndex) { o0.addImage(new Image()); } Image o1 = o0.getImage(imageIndex); if (o1.getPixels() == null) { o1.setPixels(new Pixels()); } Pixels o2 = o1.getPixels(); if (o2.sizeOfChannelList() == channelIndex) { o2.addChannel(new Channel()); } Channel o3 = o2.getChannel(channelIndex); if (o3.getLightSourceSettings() == null) { o3.setLightSourceSettings(new LightSourceSettings()); } LightSourceSettings o4 = o3.getLightSourceSettings(); model.addModelObject(id, o4); o4.setID(id); }
@BeforeClass public void setUp() throws Exception { Instrument instrument = new Instrument(); instrument.setID("Instrument:0"); // Add a Laser with an Arc pump Laser laser = new Laser(); laser.setID("Laser:0"); Arc pump = new Arc(); pump.setID("Arc:0"); laser.linkPump(pump); instrument.addLightSource(laser); instrument.addLightSource(pump); ome.addInstrument(instrument); // Add an Image/Pixels with a LightSourceSettings reference to the Pump // on one of its channels. Image image = new Image(); image.setID("Image:0"); Pixels pixels = new Pixels(); pixels.setID("Pixels:0"); Channel channel = new Channel(); channel.setID("Channel:0"); LightSourceSettings settings = new LightSourceSettings(); settings.setID("Arc:0"); channel.setLightSourceSettings(settings); pixels.addChannel(channel); image.setPixels(pixels); ome.addImage(image); }
if (metadata) { if (j == n) j = 0; channel.setLightSourceSettings(createLightSourceSettings(j)); channel.setLightPath(createLightPath()); channel.setDetectorSettings(ds);
channel.setLightSourceSettings(settings);