Package loci.plugins.in
Class ImportProcess
java.lang.Object
loci.plugins.in.ImportProcess
- All Implemented Interfaces:
loci.common.StatusReporter
Manages the import preparation process.
After calling
execute(), the process will be ready to feed to
an ImagePlusReader to read in the actual ImagePlus
objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IFormatReaderprivate booleanWhether the process has been canceled.private ChannelFillerprivate ChannelSeparatorprivate DimensionSwapperprivate FileStitcherprotected loci.common.Locationprotected Stringprivate ImageReaderprivate List<loci.common.StatusListener> protected IMetadataprivate ImporterMetadataprivate MinMaxCalculatorprivate Stringprivate ImporterOptionsAssociated importer options.private ImageProcessorReaderprivate String[]A descriptive label for each series.private ImportStepCurrent step in the import preparation process.private TileStitcherprivate VirtualReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatusListener(loci.common.StatusListener l) private voidassertStep(ImportStep importStep) voidcancel()Cancels the import process.private voidInitializes the idName and idLoc derived values.private voidprivate voidInitializes anIFormatReaderaccording to the current configuration.booleanexecute()Performs the import preparation process, notifying status listeners at each step.Valid only afterImportStep.READER.intgetCBegin(int s) intgetCCount(int s) Valid only afterImportStep.SERIES.intgetCEnd(int s) Valid only afterImportStep.STACK.Valid only afterImportStep.STACK.Valid only afterImportStep.STACK.loci.common.RegiongetCropRegion(int s) Valid only afterImportStep.STACK.intgetCStep(int s) Valid only afterImportStep.STACK.Valid only afterImportStep.STACK.Valid only afterImportStep.STACK.loci.common.LocationValid only afterImportStep.READER.Valid only afterImportStep.READER.Valid only afterImportStep.READER.longGets a projection of required memory in bytes.Valid only afterImportStep.STACK.Valid only afterImportStep.READER.Valid only afterImportStep.READER.Valid only afterImportStep.METADATA.Valid only afterImportStep.STACK.intValid only afterImportStep.STACK.getSeriesLabel(int s) Valid only afterImportStep.STACK.Valid only afterImportStep.STACK.intgetTBegin(int s) intgetTCount(int s) Valid only afterImportStep.SERIES.intgetTEnd(int s) Valid only afterImportStep.STACK.intgetTStep(int s) Valid only afterImportStep.STACK.intgetZBegin(int s) intgetZCount(int s) Valid only afterImportStep.SERIES.intgetZEnd(int s) Valid only afterImportStep.STACK.intgetZStep(int s) private voidPerformed following ImportStep.COLORS notification.private voidPerformed following ImportStep.CROP notification.private voidPerformed following ImportStep.DIM_ORDER notification.private voidPerformed following ImportStep.FILE notification.private voidPerformed following ImportStep.METADATA notification.private voidPerformed following ImportStep.RANGE notification.private voidPerformed following ImportStep.READER notification.private voidPerformed following ImportStep.SERIES notification.private voidPerformed following ImportStep.STACK notification.booleanvoidnotifyListeners(loci.common.StatusEvent e) voidremoveStatusListener(loci.common.StatusListener l) private voidPerformed following ImportStep.FILE notification.voidsetSeriesList(String seriesList) private voidstep(ImportStep step) booleanGets whether the import process was canceled.
-
Field Details
-
listeners
-
options
Associated importer options. -
step
Current step in the import preparation process. -
baseReader
-
imageReader
-
fileStitcher
-
channelFiller
-
channelSeparator
-
dimensionSwapper
-
minMaxCalculator
-
tileStitcher
-
virtualReader
-
reader
-
cancel
private boolean cancelWhether the process has been canceled. -
idName
-
idLoc
protected loci.common.Location idLoc -
meta
-
omeXML
-
metadata
-
seriesLabels
A descriptive label for each series.
-
-
Constructor Details
-
ImportProcess
- Throws:
IOException
-
ImportProcess
-
-
Method Details
-
execute
Performs the import preparation process, notifying status listeners at each step.- Returns:
- true if the preparation process completed successfully.
- Throws:
FormatExceptionIOException
-
cancel
public void cancel()Cancels the import process. -
wasCanceled
public boolean wasCanceled()Gets whether the import process was canceled. -
getOptions
-
isWindowless
public boolean isWindowless() -
setSeriesList
-
getBaseReader
Valid only afterImportStep.READER. -
getImageReader
Valid only afterImportStep.READER. -
getIdName
Valid only afterImportStep.READER. -
getIdLocation
public loci.common.Location getIdLocation()Valid only afterImportStep.READER. -
getOMEMetadata
Valid only afterImportStep.READER. -
getOMEXML
Valid only afterImportStep.READER. -
getFileStitcher
Valid only afterImportStep.STACK. -
getChannelFiller
Valid only afterImportStep.STACK. -
getChannelSeparator
Valid only afterImportStep.STACK. -
getDimensionSwapper
Valid only afterImportStep.STACK. -
getMinMaxCalculator
Valid only afterImportStep.STACK. -
getVirtualReader
Valid only afterImportStep.STACK. -
getReader
Valid only afterImportStep.STACK. -
getCurrentFile
Valid only afterImportStep.STACK. -
getSeriesCount
public int getSeriesCount()Valid only afterImportStep.STACK. -
getSeriesLabel
Valid only afterImportStep.STACK. -
getStackOrder
Valid only afterImportStep.STACK. -
getCBegin
public int getCBegin(int s) -
getCEnd
public int getCEnd(int s) Valid only afterImportStep.STACK. -
getCStep
public int getCStep(int s) -
getZBegin
public int getZBegin(int s) -
getZEnd
public int getZEnd(int s) Valid only afterImportStep.STACK. -
getZStep
public int getZStep(int s) -
getTBegin
public int getTBegin(int s) -
getTEnd
public int getTEnd(int s) Valid only afterImportStep.STACK. -
getTStep
public int getTStep(int s) -
getCropRegion
public loci.common.Region getCropRegion(int s) Valid only afterImportStep.STACK. -
getCCount
public int getCCount(int s) Valid only afterImportStep.SERIES. -
getZCount
public int getZCount(int s) Valid only afterImportStep.SERIES. -
getTCount
public int getTCount(int s) Valid only afterImportStep.SERIES. -
getMemoryUsage
public long getMemoryUsage()Gets a projection of required memory in bytes. Valid only afterImportStep.SERIES. -
getOriginalMetadata
Valid only afterImportStep.METADATA. -
addStatusListener
public void addStatusListener(loci.common.StatusListener l) - Specified by:
addStatusListenerin interfaceloci.common.StatusReporter
-
removeStatusListener
public void removeStatusListener(loci.common.StatusListener l) - Specified by:
removeStatusListenerin interfaceloci.common.StatusReporter
-
notifyListeners
public void notifyListeners(loci.common.StatusEvent e) - Specified by:
notifyListenersin interfaceloci.common.StatusReporter
-
initializeReader
Performed following ImportStep.READER notification.- Throws:
FormatExceptionIOException
-
initializeFile
Performed following ImportStep.FILE notification.- Throws:
FormatExceptionIOException
-
initializeStack
Performed following ImportStep.STACK notification.- Throws:
FormatExceptionIOException
-
initializeSeries
private void initializeSeries()Performed following ImportStep.SERIES notification. -
initializeDimOrder
private void initializeDimOrder()Performed following ImportStep.DIM_ORDER notification. -
initializeRange
private void initializeRange()Performed following ImportStep.RANGE notification. -
initializeCrop
private void initializeCrop()Performed following ImportStep.CROP notification. -
initializeColors
private void initializeColors()Performed following ImportStep.COLORS notification. -
initializeMetadata
private void initializeMetadata()Performed following ImportStep.METADATA notification. -
computeNameAndLocation
private void computeNameAndLocation()Initializes the idName and idLoc derived values. -
createBaseReader
Initializes anIFormatReaderaccording to the current configuration.- Throws:
FormatExceptionIOException
-
saveDefaults
private void saveDefaults()Performed following ImportStep.FILE notification. -
computeSeriesLabels
-
step
-
assertStep
-