public OutputGeometryFormModel(OutputGeometryFormModel formModel) { init(formModel.sourceProduct, formModel.targetCrs, formModel.fitProductSize, formModel.referencePixelLocation, formModel.getPropertySet()); }
public OutputGeometryForm(OutputGeometryFormModel model) { context = new BindingContext(model.getPropertySet()); createUI(); }
PropertySet container = outputGeometryModel.getPropertySet(); paramMap.put("referencePixelX", container.getValue("referencePixelX")); paramMap.put("referencePixelY", container.getValue("referencePixelY"));
PropertySet container = outputGeometryModel.getPropertySet(); parameterMap.put("referencePixelX", container.getValue("referencePixelX")); parameterMap.put("referencePixelY", container.getValue("referencePixelY"));
private void updateProductSize() { int width = 0; int height = 0; final Product sourceProduct = getSourceProduct(); if (sourceProduct != null && crs != null) { if (!preserveResolutionCheckBox.isSelected() && outputGeometryModel != null) { PropertySet container = outputGeometryModel.getPropertySet(); width = container.getValue("width"); height = container.getValue("height"); } else { ImageGeometry iGeometry; // final Product collocationProduct = collocationCrsUI.getCollocationProduct(); // if (collocationCrsUI.getRadioButton().isSelected() && collocationProduct != null) { // iGeometry = ImageGeometry.createCollocationTargetGeometry(sourceProduct, collocationProduct); // } else { iGeometry = ImageGeometry.createTargetGeometry(sourceProduct, crs, null, null, null, null, null, null, null, null, null); // } Rectangle imageRect = iGeometry.getImageRect(); width = imageRect.width; height = imageRect.height; } } infoForm.setWidth(width); infoForm.setHeight(height); }
private void updateProductSize() { int width = 0; int height = 0; final Product sourceProduct = getSourceProduct(); if (sourceProduct != null && crs != null) { if (!reprojectionModel.preserveResolution && outputGeometryModel != null) { PropertySet container = outputGeometryModel.getPropertySet(); width = container.getValue("width"); height = container.getValue("height"); } else { ImageGeometry iGeometry; final Product collocationProduct = collocationCrsUI.getCollocationProduct(); if (collocationCrsUI.getRadioButton().isSelected() && collocationProduct != null) { iGeometry = ImageGeometry.createCollocationTargetGeometry(sourceProduct, collocationProduct); } else { iGeometry = ImageGeometry.createTargetGeometry(sourceProduct, crs, null, null, null, null, null, null, null, null, null); } Rectangle imageRect = iGeometry.getImageRect(); width = imageRect.width; height = imageRect.height; } } infoForm.setWidth(width); infoForm.setHeight(height); }