public class ImportProcess
extends java.lang.Object
implements loci.common.StatusReporter
execute()
, the process will be ready to feed to
an ImagePlusReader
to read in the actual ImagePlus
objects.Modifier and Type | Field and Description |
---|---|
private IFormatReader |
baseReader |
private boolean |
cancel
Whether the process has been canceled.
|
private ChannelFiller |
channelFiller |
private ChannelSeparator |
channelSeparator |
private DimensionSwapper |
dimensionSwapper |
private FileStitcher |
fileStitcher |
protected loci.common.Location |
idLoc |
protected java.lang.String |
idName |
private ImageReader |
imageReader |
private java.util.List<loci.common.StatusListener> |
listeners |
protected IMetadata |
meta |
private ImporterMetadata |
metadata |
private MinMaxCalculator |
minMaxCalculator |
private java.lang.String |
omeXML |
private ImporterOptions |
options
Associated importer options.
|
private ImageProcessorReader |
reader |
private java.lang.String[] |
seriesLabels
A descriptive label for each series.
|
private ImportStep |
step
Current step in the import preparation process.
|
private TileStitcher |
tileStitcher |
private VirtualReader |
virtualReader |
Constructor and Description |
---|
ImportProcess() |
ImportProcess(ImporterOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
addStatusListener(loci.common.StatusListener l) |
private void |
assertStep(ImportStep importStep) |
void |
cancel()
Cancels the import process.
|
private void |
computeNameAndLocation()
Initializes the idName and idLoc derived values.
|
private void |
computeSeriesLabels(IFormatReader r) |
private void |
createBaseReader()
Initializes an
IFormatReader
according to the current configuration. |
boolean |
execute()
Performs the import preparation process,
notifying status listeners at each step.
|
IFormatReader |
getBaseReader()
Valid only after
ImportStep.READER . |
int |
getCBegin(int s) |
int |
getCCount(int s)
Valid only after
ImportStep.SERIES . |
int |
getCEnd(int s)
Valid only after
ImportStep.STACK . |
ChannelFiller |
getChannelFiller()
Valid only after
ImportStep.STACK . |
ChannelSeparator |
getChannelSeparator()
Valid only after
ImportStep.STACK . |
loci.common.Region |
getCropRegion(int s)
Valid only after
ImportStep.STACK . |
int |
getCStep(int s) |
java.lang.String |
getCurrentFile()
Valid only after
ImportStep.STACK . |
DimensionSwapper |
getDimensionSwapper()
Valid only after
ImportStep.STACK . |
FileStitcher |
getFileStitcher()
Valid only after
ImportStep.STACK . |
loci.common.Location |
getIdLocation()
Valid only after
ImportStep.READER . |
java.lang.String |
getIdName()
Valid only after
ImportStep.READER . |
ImageReader |
getImageReader()
Valid only after
ImportStep.READER . |
long |
getMemoryUsage()
Gets a projection of required memory in bytes.
|
MinMaxCalculator |
getMinMaxCalculator()
Valid only after
ImportStep.STACK . |
IMetadata |
getOMEMetadata()
Valid only after
ImportStep.READER . |
java.lang.String |
getOMEXML()
Valid only after
ImportStep.READER . |
ImporterOptions |
getOptions() |
ImporterMetadata |
getOriginalMetadata()
Valid only after
ImportStep.METADATA . |
ImageProcessorReader |
getReader()
Valid only after
ImportStep.STACK . |
int |
getSeriesCount()
Valid only after
ImportStep.STACK . |
java.lang.String |
getSeriesLabel(int s)
Valid only after
ImportStep.STACK . |
java.lang.String |
getStackOrder()
Valid only after
ImportStep.STACK . |
int |
getTBegin(int s) |
int |
getTCount(int s)
Valid only after
ImportStep.SERIES . |
int |
getTEnd(int s)
Valid only after
ImportStep.STACK . |
int |
getTStep(int s) |
VirtualReader |
getVirtualReader()
Valid only after
ImportStep.STACK . |
int |
getZBegin(int s) |
int |
getZCount(int s)
Valid only after
ImportStep.SERIES . |
int |
getZEnd(int s)
Valid only after
ImportStep.STACK . |
int |
getZStep(int s) |
private void |
initializeColors()
Performed following ImportStep.COLORS notification.
|
private void |
initializeCrop()
Performed following ImportStep.CROP notification.
|
private void |
initializeDimOrder()
Performed following ImportStep.DIM_ORDER notification.
|
private void |
initializeFile()
Performed following ImportStep.FILE notification.
|
private void |
initializeMetadata()
Performed following ImportStep.METADATA notification.
|
private void |
initializeRange()
Performed following ImportStep.RANGE notification.
|
private void |
initializeReader()
Performed following ImportStep.READER notification.
|
private void |
initializeSeries()
Performed following ImportStep.SERIES notification.
|
private void |
initializeStack()
Performed following ImportStep.STACK notification.
|
boolean |
isWindowless() |
void |
notifyListeners(loci.common.StatusEvent e) |
void |
removeStatusListener(loci.common.StatusListener l) |
private void |
saveDefaults()
Performed following ImportStep.FILE notification.
|
private void |
setId()
HACK: This method mainly exists to prompt the user for a missing
LuraWave license code, in the case of LWF-compressed Flex.
|
void |
setSeriesList(java.lang.String seriesList) |
private void |
step(ImportStep step) |
boolean |
wasCanceled()
Gets whether the import process was canceled.
|
private java.util.List<loci.common.StatusListener> listeners
private ImporterOptions options
private ImportStep step
private IFormatReader baseReader
private ImageReader imageReader
private FileStitcher fileStitcher
private ChannelFiller channelFiller
private ChannelSeparator channelSeparator
private DimensionSwapper dimensionSwapper
private MinMaxCalculator minMaxCalculator
private TileStitcher tileStitcher
private VirtualReader virtualReader
private ImageProcessorReader reader
private boolean cancel
protected java.lang.String idName
protected loci.common.Location idLoc
protected IMetadata meta
private java.lang.String omeXML
private ImporterMetadata metadata
private java.lang.String[] seriesLabels
public ImportProcess() throws java.io.IOException
java.io.IOException
public ImportProcess(ImporterOptions options)
public boolean execute() throws FormatException, java.io.IOException
FormatException
java.io.IOException
public void cancel()
public boolean wasCanceled()
public ImporterOptions getOptions()
public boolean isWindowless()
public void setSeriesList(java.lang.String seriesList)
public IFormatReader getBaseReader()
ImportStep.READER
.public ImageReader getImageReader()
ImportStep.READER
.public java.lang.String getIdName()
ImportStep.READER
.public loci.common.Location getIdLocation()
ImportStep.READER
.public IMetadata getOMEMetadata()
ImportStep.READER
.public java.lang.String getOMEXML()
ImportStep.READER
.public FileStitcher getFileStitcher()
ImportStep.STACK
.public ChannelFiller getChannelFiller()
ImportStep.STACK
.public ChannelSeparator getChannelSeparator()
ImportStep.STACK
.public DimensionSwapper getDimensionSwapper()
ImportStep.STACK
.public MinMaxCalculator getMinMaxCalculator()
ImportStep.STACK
.public VirtualReader getVirtualReader()
ImportStep.STACK
.public ImageProcessorReader getReader()
ImportStep.STACK
.public java.lang.String getCurrentFile()
ImportStep.STACK
.public int getSeriesCount()
ImportStep.STACK
.public java.lang.String getSeriesLabel(int s)
ImportStep.STACK
.public java.lang.String getStackOrder()
ImportStep.STACK
.public int getCBegin(int s)
public int getCEnd(int s)
ImportStep.STACK
.public int getCStep(int s)
public int getZBegin(int s)
public int getZEnd(int s)
ImportStep.STACK
.public int getZStep(int s)
public int getTBegin(int s)
public int getTEnd(int s)
ImportStep.STACK
.public int getTStep(int s)
public loci.common.Region getCropRegion(int s)
ImportStep.STACK
.public int getCCount(int s)
ImportStep.SERIES
.public int getZCount(int s)
ImportStep.SERIES
.public int getTCount(int s)
ImportStep.SERIES
.public long getMemoryUsage()
ImportStep.SERIES
.public ImporterMetadata getOriginalMetadata()
ImportStep.METADATA
.public void addStatusListener(loci.common.StatusListener l)
addStatusListener
in interface loci.common.StatusReporter
public void removeStatusListener(loci.common.StatusListener l)
removeStatusListener
in interface loci.common.StatusReporter
public void notifyListeners(loci.common.StatusEvent e)
notifyListeners
in interface loci.common.StatusReporter
private void initializeReader() throws FormatException, java.io.IOException
FormatException
java.io.IOException
private void initializeFile() throws FormatException, java.io.IOException
FormatException
java.io.IOException
private void initializeStack() throws FormatException, java.io.IOException
FormatException
java.io.IOException
private void initializeSeries()
private void initializeDimOrder()
private void initializeRange()
private void initializeCrop()
private void initializeColors()
private void initializeMetadata()
private void computeNameAndLocation()
private void createBaseReader() throws FormatException, java.io.IOException
IFormatReader
according to the current configuration.FormatException
java.io.IOException
private void saveDefaults()
private void setId() throws FormatException, java.io.IOException
FormatException
java.io.IOException
ImagePlusReader.readProcessors(ImportProcess, int, Region, boolean)
private void computeSeriesLabels(IFormatReader r)
private void step(ImportStep step)
private void assertStep(ImportStep importStep)
Copyright © 2020 Open Microscopy Environment