Skip to content
Snippets Groups Projects
Commit f58c7c88 authored by tpylak's avatar tpylak
Browse files

LMS-2502 GUI interface to pass the transformation

SVN: 22907
parent f9c13646
No related branches found
No related tags found
No related merge requests found
......@@ -102,9 +102,11 @@ class ChannelChooser
/** Refreshes the displayed images, but not the rest of the GUI */
public void refresh()
{
// TODO 2011-09-13, Tomasz Pylak: add transformation code for single channel if chosen
String imageTransformationCode = null;
LogicalImageChannelsReference state =
new LogicalImageChannelsReference(basicImage, basicChannelCodes,
selectedOverlayChannels);
imageTransformationCode, selectedOverlayChannels);
Widget view = viewerFactory.create(state);
imageContainer.removeAll();
imageContainer.add(view);
......
......@@ -160,8 +160,11 @@ public class WellContentDialog extends Dialog
String sessionId = getSessionId(viewContext);
final LogicalImageReference wellImages =
new LogicalImageReference(imageDataset, locationOrNull);
// TODO 2011-09-13, Tomasz Pylak: add transformation code for single channel if chosen
String imageTransformationCode = null;
LogicalImageChannelsReference channelReferences =
LogicalImageChannelsReference.createWithoutOverlays(wellImages, channels);
LogicalImageChannelsReference.createWithoutOverlays(wellImages, channels,
imageTransformationCode);
LayoutContainer staticTilesGrid =
LogicalImageViewer.createTilesGrid(channelReferences, sessionId, imageSizePx,
createImageLinks);
......@@ -435,8 +438,7 @@ public class WellContentDialog extends Dialog
// TODO KE: pass analysis procedure from plate layout to material detail view
ch.systemsx.cisd.openbis.plugin.screening.client.web.client.application.ClientPluginFactory
.openImagingMaterialViewer(material, getExperimentCriteria(),
AnalysisProcedureCriteria.createNoProcedures(),
viewContext);
AnalysisProcedureCriteria.createNoProcedures(), viewContext);
}
};
......
......@@ -28,25 +28,29 @@ import java.util.Set;
public class LogicalImageChannelsReference
{
public static LogicalImageChannelsReference createWithoutOverlays(
LogicalImageReference basicImage, List<String> channels)
LogicalImageReference basicImage, List<String> channels,
String imageTransformationCodeOrNull)
{
return new LogicalImageChannelsReference(basicImage, channels,
new HashSet<ImageDatasetChannel>());
imageTransformationCodeOrNull, new HashSet<ImageDatasetChannel>());
}
// ----
private final LogicalImageReference basicImage;
private final List<String> channels;
private final String imageTransformationCodeOrNull;
private final Set<ImageDatasetChannel> overlayChannels;
public LogicalImageChannelsReference(LogicalImageReference basicImage, List<String> channels,
Set<ImageDatasetChannel> overlayChannels)
String imageTransformationCodeOrNull, Set<ImageDatasetChannel> overlayChannels)
{
this.basicImage = basicImage;
this.channels = channels;
this.imageTransformationCodeOrNull = imageTransformationCodeOrNull;
this.overlayChannels = overlayChannels;
}
......@@ -64,4 +68,9 @@ public class LogicalImageChannelsReference
{
return overlayChannels;
}
public String tryGetImageTransformationCode()
{
return imageTransformationCodeOrNull;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment