org.weasis.core.ui.pref.ZoomSetting.getInterpolation()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(76)

本文整理了Java中org.weasis.core.ui.pref.ZoomSetting.getInterpolation()方法的一些代码示例,展示了ZoomSetting.getInterpolation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoomSetting.getInterpolation()方法的具体详情如下:
包路径:org.weasis.core.ui.pref.ZoomSetting
类名称:ZoomSetting
方法名:getInterpolation

ZoomSetting.getInterpolation介绍

暂无

代码示例

代码示例来源:origin: nroduit/Weasis

protected void initActionWState() {
  E img = getImage();
  actionsInView.put(ActionW.SPATIAL_UNIT.cmd(), img == null ? Unit.PIXEL : img.getPixelSpacingUnit());
  actionsInView.put(ZOOM_TYPE_CMD, ZoomType.BEST_FIT);
  actionsInView.put(ActionW.ZOOM.cmd(), 0.0);
  actionsInView.put(ActionW.DRAWINGS.cmd(), true);
  actionsInView.put(LayerType.CROSSLINES.name(), true);
  actionsInView.put(ActionW.INVERSESTACK.cmd(), false);
  actionsInView.put(ActionW.FILTERED_SERIES.cmd(), null);
  actionsInView.put(ActionW.FLIP.cmd(), false);
  actionsInView.put(ActionW.ROTATION.cmd(), 0);
  OpManager disOp = getDisplayOpManager();
  disOp.setParamValue(WindowOp.OP_NAME, WindowOp.P_APPLY_WL_COLOR,
    eventManager.getOptions().getBooleanProperty(WindowOp.P_APPLY_WL_COLOR, true));
  disOp.setParamValue(AffineTransformOp.OP_NAME, AffineTransformOp.P_INTERPOLATION,
    eventManager.getZoomSetting().getInterpolation());
  disOp.setParamValue(AffineTransformOp.OP_NAME, AffineTransformOp.P_AFFINE_MATRIX, null);
  disOp.setParamValue(FilterOp.OP_NAME, FilterOp.P_KERNEL_DATA, KernelData.NONE);
  disOp.setParamValue(PseudoColorOp.OP_NAME, PseudoColorOp.P_LUT, ByteLut.defaultLUT);
  disOp.setParamValue(PseudoColorOp.OP_NAME, PseudoColorOp.P_LUT_INVERSE, false);
}

代码示例来源:origin: nroduit/Weasis

comboBoxInterpolation.setSelectedIndex(eventManager.getZoomSetting().getInterpolation());
panel1.add(comboBoxInterpolation);

代码示例来源:origin: nroduit/Weasis

public ZoomWin(DefaultView2d<E> view2d) {
  super(null);
  this.view2d = view2d;
  this.setOpaque(false);
  ImageViewerEventManager<E> manager = view2d.getEventManager();
  this.imageLayer = new RenderedImageLayer<>();
  SimpleOpManager operations = imageLayer.getDisplayOpManager();
  operations.addImageOperationAction(new AffineTransformOp());
  ActionState zoomAction = manager.getAction(ActionW.LENSZOOM);
  if (zoomAction instanceof SliderChangeListener) {
    actionsInView.put(ActionW.ZOOM.cmd(), ((SliderChangeListener) zoomAction).getRealValue());
  }
  this.popup = new PopUpMenuOnZoom(this);
  this.popup.setInvoker(this);
  this.setCursor(DefaultView2d.MOVE_CURSOR);
  ZoomSetting z = manager.getZoomSetting();
  OpManager disOp = getDisplayOpManager();
  disOp.setParamValue(AffineTransformOp.OP_NAME, AffineTransformOp.P_INTERPOLATION, z.getInterpolation());
  disOp.setParamValue(AffineTransformOp.OP_NAME, AffineTransformOp.P_AFFINE_MATRIX, null);
  actionsInView.put(SYNCH_CMD, z.isLensSynchronize());
  actionsInView.put(ActionW.DRAWINGS.cmd(), z.isLensShowDrawings());
  actionsInView.put(FREEZE_CMD, SyncType.NONE);
  Color bckColor = UIManager.getColor("Panel.background"); //$NON-NLS-1$
  this.setLensDecoration(z.getLensLineWidth(), z.getLensLineColor(), bckColor, z.isLensRound());
  this.setSize(z.getLensWidth(), z.getLensHeight());
  this.setLocation(-1, -1);
  this.imageLayer.addLayerChangeListener(this);
  this.mouseHandler = new MouseHandler();
}

相关文章