Class RoiStatsProcessor
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.detector.nexusprocessor.DatasetProcessorBase
gda.device.detector.nexusprocessor.roistats.RoiStatsProcessor
- All Implemented Interfaces:
DatasetProcessor,Configurable,Findable
Receive dataset from processing Nexus Detector Retrieve rois from gui.
For each roi, create a dataset for it and pass into a DatasetStats processor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String> protected Collection<String> voidvoidvoidDefault 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.Processes the given dataset, returning aGDANexusDetectorDatacontaining theINexusTrees nodes describing the datasets to be added to the nexus tree.voidsetDetectorName(String detectorName) voidsetPlotName(String plotName) voidsetRois(List<RegionOfInterest> rois) voidsetStatsProcessor(DatasetStats statsProcessor) voidsetUseSingleDataGroupPerRoi(boolean useSingleDataGroupPerRoi) voidMethods inherited from class gda.device.detector.nexusprocessor.DatasetProcessorBase
getExtraNames, getOutputFormat, isEnabled, setEnableMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.device.detector.nexusprocessor.DatasetProcessor
getName, stop
-
Constructor Details
-
RoiStatsProcessor
public RoiStatsProcessor()
-
-
Method Details
-
process
public GDANexusDetectorData process(String detectorName, String dataName, org.eclipse.january.dataset.Dataset dataset) throws Exception Description copied from interface:DatasetProcessorProcesses the given dataset, returning aGDANexusDetectorDatacontaining theINexusTrees nodes describing the datasets to be added to the nexus tree.- Parameters:
detectorName- name of detectordataName- name of dataset to processdataset- dataset to process- Returns:
- a
GDANexusDetectorDatawith t - Throws:
Exception
-
getPlotName
-
setPlotName
-
_getExtraNames
- Specified by:
_getExtraNamesin classDatasetProcessorBase
-
_getOutputFormat
- Specified by:
_getOutputFormatin classDatasetProcessorBase
-
updateNames
public void updateNames() -
setRois
-
setUseSingleDataGroupPerRoi
public void setUseSingleDataGroupPerRoi(boolean useSingleDataGroupPerRoi) -
atScanStart
public void atScanStart() -
atScanEnd
public void atScanEnd() -
getStatsProcessor
-
setStatsProcessor
-
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- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
getRoiList
-
getDetectorName
-
setDetectorName
-