public boolean containsPreset(PresetWindowLevel preset) { if (preset != null) { List<PresetWindowLevel> collection = getPresetList(false); if (collection != null) { return collection.contains(preset); } } return false; }
/** * @return default as first element of preset List <br> * Note : null should never be returned since auto is at least one preset */ public PresetWindowLevel getDefaultPreset(boolean pixelPadding) { List<PresetWindowLevel> presetList = getPresetList(pixelPadding); return (presetList != null && !presetList.isEmpty()) ? presetList.get(0) : null; }
public Collection<LutShape> getLutShapeCollection(boolean pixelPadding) { if (lutShapeCollection != null) { return lutShapeCollection; } lutShapeCollection = new LinkedHashSet<>(); List<PresetWindowLevel> presetList = getPresetList(pixelPadding); if (presetList != null) { for (PresetWindowLevel preset : presetList) { lutShapeCollection.add(preset.getLutShape()); } } lutShapeCollection.addAll(LutShape.DEFAULT_FACTORY_FUNCTIONS); return lutShapeCollection; }
List<PresetWindowLevel> presetList = image.getPresetList(pixelPadding); if (prReader != null) { List<PresetWindowLevel> prPresets =
if (node != null) { List<PresetWindowLevel> presetList = img.getPresetList(LangUtil.getNULLtoTrue((Boolean) node.getParam(ActionW.IMAGE_PIX_PADDING.cmd()))); PresetWindowLevel autoPR = getAutoLevelPreset(presets); if (autoPR != null) {
.getParamValue(WindowOp.OP_NAME, ActionW.IMAGE_PIX_PADDING.cmd())); List<PresetWindowLevel> newPresetList = image.getPresetList(pixelPadding);