Package gda.px.util
Class DetDistToBeamXYConverter
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.px.util.DetDistToBeamXYConverter
- All Implemented Interfaces:
Configurable,Findable,IDetDistToBeamXYConverter
@ServiceInterface(IDetDistToBeamXYConverter.class)
public final class DetDistToBeamXYConverter
extends FindableConfigurableBase
implements IDetDistToBeamXYConverter
DetDistToBeamXYConverter Class. Use as follows: a=BCMFinder.getDetectorDistanceToBeamXYConverter();
a.getBeamX(); a.getBeamY();
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.javax.measure.Quantity<javax.measure.quantity.Length> getBeamX(javax.measure.Quantity<javax.measure.quantity.Length> detectorDistance) SimpleConverter<javax.measure.quantity.Length, javax.measure.quantity.Length> doublegetBeamXUsingMM(double detectorDistanceInMM) doublegetBeamXUsingPixels(double detectorDistanceInMM, int imageSizeInPixels, double detectorDimensionInMM) javax.measure.Quantity<javax.measure.quantity.Length> getBeamY(javax.measure.Quantity<javax.measure.quantity.Length> detectorDistance) SimpleConverter<javax.measure.quantity.Length, javax.measure.quantity.Length> doublegetBeamYUsingMM(double detectorDistanceInMM) doublegetBeamYUsingPixels(double detectorDistanceInMM, int imageSizeInPixels, double detectorDimensionInMM) voidsetBeamXConverter(SimpleConverter<javax.measure.quantity.Length, javax.measure.quantity.Length> beamXConverter) voidsetBeamYConverter(SimpleConverter<javax.measure.quantity.Length, javax.measure.quantity.Length> beamYConverter) Methods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
DetDistToBeamXYConverter
public DetDistToBeamXYConverter()
-
-
Method Details
-
configure
public void configure()Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase
-
getBeamXConverter
public SimpleConverter<javax.measure.quantity.Length,javax.measure.quantity.Length> getBeamXConverter() -
setBeamXConverter
public void setBeamXConverter(SimpleConverter<javax.measure.quantity.Length, javax.measure.quantity.Length> beamXConverter) -
getBeamYConverter
public SimpleConverter<javax.measure.quantity.Length,javax.measure.quantity.Length> getBeamYConverter() -
setBeamYConverter
public void setBeamYConverter(SimpleConverter<javax.measure.quantity.Length, javax.measure.quantity.Length> beamYConverter) -
getBeamX
public javax.measure.Quantity<javax.measure.quantity.Length> getBeamX(javax.measure.Quantity<javax.measure.quantity.Length> detectorDistance) throws Exception - Parameters:
detectorDistance-- Returns:
- beam x
- Throws:
Exception
-
getBeamY
public javax.measure.Quantity<javax.measure.quantity.Length> getBeamY(javax.measure.Quantity<javax.measure.quantity.Length> detectorDistance) throws Exception - Parameters:
detectorDistance-- Returns:
- beam y
- Throws:
Exception
-
getBeamXUsingMM
- Specified by:
getBeamXUsingMMin interfaceIDetDistToBeamXYConverter- Parameters:
detectorDistanceInMM-- Returns:
- double beam x
- Throws:
Exception
-
getBeamYUsingMM
- Specified by:
getBeamYUsingMMin interfaceIDetDistToBeamXYConverter- Parameters:
detectorDistanceInMM-- Returns:
- double beam y
- Throws:
Exception
-
getBeamXUsingPixels
public double getBeamXUsingPixels(double detectorDistanceInMM, int imageSizeInPixels, double detectorDimensionInMM) throws Exception - Parameters:
detectorDistanceInMM-imageSizeInPixels-detectorDimensionInMM-- Returns:
- x beam x position in pixels
- Throws:
Exception
-
getBeamYUsingPixels
public double getBeamYUsingPixels(double detectorDistanceInMM, int imageSizeInPixels, double detectorDimensionInMM) throws Exception - Parameters:
detectorDistanceInMM-imageSizeInPixels-detectorDimensionInMM-- Returns:
- y beam y position in pixels
- Throws:
Exception
-