setLightPath(new LightPath( (Element) LightPath_nodeList.get(0), model));
setLightPath(new LightPath( (Element) LightPath_nodeList.get(0), model));
/** * Creates a light path. * * @return See above. */ public LightPath createLightPath() { LightPath lp = new LightPath(); if (NUMBER_OF_DICHROICS > 0) { lp.linkDichroic(instrument.getDichroic(0)); } if (NUMBER_OF_FILTERS == 1) { lp.linkEmissionFilter(instrument.getFilter(0)); } else if (NUMBER_OF_FILTERS >= 2) { lp.linkEmissionFilter(instrument.getFilter(0)); lp.linkExcitationFilter(instrument.getFilter(1)); } return lp; }
public void setChannelID(String id, int imageIndex, int channelIndex) { // Parents: {u'Pixels': {u'Image': {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); model.addModelObject(id, o3); o3.setID(id); if (o3.getLightPath() == null) { o3.setLightPath(new LightPath()); } }
public void setChannelID(String id, int imageIndex, int channelIndex) { // Parents: {u'Pixels': {u'Image': {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); model.addModelObject(id, o3); o3.setID(id); if (o3.getLightPath() == null) { o3.setLightPath(new LightPath()); } }
channel.setLightSourceSettings(settings); LightPath lightPath = new LightPath(); lightPath.linkEmissionFilter(instrument.getFilter(0)); lightPath.linkExcitationFilter(instrument.getFilter(1));