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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatusListener(loci.common.StatusListener l) voidcancel()Cancels the import process.booleanexecute()Performs the import preparation process, notifying status listeners at each step.loci.formats.IFormatReaderValid only afterImportStep.READER.intgetCBegin(int s) intgetCCount(int s) Valid only afterImportStep.SERIES.intgetCEnd(int s) Valid only afterImportStep.STACK.loci.formats.ChannelFillerValid only afterImportStep.STACK.loci.formats.ChannelSeparatorValid only afterImportStep.STACK.loci.common.RegiongetCropRegion(int s) Valid only afterImportStep.STACK.intgetCStep(int s) Valid only afterImportStep.STACK.loci.formats.DimensionSwapperValid only afterImportStep.STACK.loci.formats.FileStitcherValid only afterImportStep.STACK.loci.common.LocationValid only afterImportStep.READER.Valid only afterImportStep.READER.loci.formats.ImageReaderValid only afterImportStep.READER.longGets a projection of required memory in bytes.loci.formats.MinMaxCalculatorValid only afterImportStep.STACK.loci.formats.meta.IMetadataValid 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) booleanvoidnotifyListeners(loci.common.StatusEvent e) voidremoveStatusListener(loci.common.StatusListener l) voidsetSeriesList(String seriesList) booleanGets whether the import process was canceled.
-
Field Details
-
idName
-
idLoc
protected loci.common.Location idLoc -
meta
protected loci.formats.meta.IMetadata meta
-
-
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:
loci.formats.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
public loci.formats.IFormatReader getBaseReader()Valid only afterImportStep.READER. -
getImageReader
public loci.formats.ImageReader getImageReader()Valid only afterImportStep.READER. -
getIdName
Valid only afterImportStep.READER. -
getIdLocation
public loci.common.Location getIdLocation()Valid only afterImportStep.READER. -
getOMEMetadata
public loci.formats.meta.IMetadata getOMEMetadata()Valid only afterImportStep.READER. -
getOMEXML
Valid only afterImportStep.READER. -
getFileStitcher
public loci.formats.FileStitcher getFileStitcher()Valid only afterImportStep.STACK. -
getChannelFiller
public loci.formats.ChannelFiller getChannelFiller()Valid only afterImportStep.STACK. -
getChannelSeparator
public loci.formats.ChannelSeparator getChannelSeparator()Valid only afterImportStep.STACK. -
getDimensionSwapper
public loci.formats.DimensionSwapper getDimensionSwapper()Valid only afterImportStep.STACK. -
getMinMaxCalculator
public loci.formats.MinMaxCalculator 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
-