/*-
* Copyright 2015 Diamond Light Source Ltd.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package uk.ac.diamond.scisoft.xpdf.operations;
import org.eclipse.dawnsci.analysis.api.processing.model.AbstractOperationModel;
import org.eclipse.dawnsci.analysis.api.processing.model.OperationModelField;
public class XPDFLorchFTModel extends AbstractOperationModel {
// TODO: Change defaults to real defaults, rather than ceria SRM defaults
@OperationModelField(hint="Enter the maximum radius to consider", label="Rmax", unit = "Å")
private double rMax = 50.0;
@OperationModelField(hint="Enter the radius increment", label="Rstep", unit = "Å")
private double rStep = 0.02;
@OperationModelField(hint="Enter the width of the Lorch Fourier filter", label="Lorch width")
private double lorchWidth = 0.2;
@OperationModelField(hint="Enter the maximum Q up to which to take the transform.", label="Maximum Q", unit = "Å⁻¹")
private double maxQ = Double.POSITIVE_INFINITY;
@OperationModelField(hint="Seek the next zero after Qmax?", label="Seek next zero?")
private boolean seekNextZero = false;
@OperationModelField(hint="Seek the next extremum after Qmax?", label="Seek next minimum?")
private boolean seekNextExtremum = true;
public double getrMax() {
return rMax;
}
public void setrMax(double rMax) {
firePropertyChange("rMax", this.rMax, this.rMax = rMax);
}
public double getrStep() {
return rStep;
}
public void setrStep(double rStep) {
firePropertyChange("rStep", this.rStep, this.rStep = rStep);
}
public double getLorchWidth() {
return lorchWidth;
}
public void setLorchWidth(double lorchWidth) {
firePropertyChange("lorchWidth", this.lorchWidth, this.lorchWidth = lorchWidth);
}
public double getMaxQ() {
return maxQ;
}
public void setMaxQ(double maxQ) {
firePropertyChange("maxQ", this.maxQ, this.maxQ = maxQ);
}
public boolean isSeekNextZero() {
return seekNextZero;
}
public void setSeekNextZero(boolean seekNextZero) {
firePropertyChange("seekNextZero", this.seekNextZero, this.seekNextZero = seekNextZero);
}
public boolean isSeekNextExtremum() {
return seekNextExtremum;
}
public void setSeekNextExtremum(boolean seekNextExtremum) {
firePropertyChange("seekNextExtremum", this.seekNextExtremum, this.seekNextExtremum = seekNextExtremum);
}
}