public class ImportProcess extends Object implements 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 Location |
idLoc |
protected String |
idName |
private ImageReader |
imageReader |
private List<StatusListener> |
listeners |
protected IMetadata |
meta |
private ImporterMetadata |
metadata |
private MinMaxCalculator |
minMaxCalculator |
private String |
omeXML |
private ImporterOptions |
options
Associated importer options.
|
private ImageProcessorReader |
reader |
private 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(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 . |
Region |
getCropRegion(int s)
Valid only after
ImportStep.STACK . |
int |
getCStep(int s) |
String |
getCurrentFile()
Valid only after
ImportStep.STACK . |
DimensionSwapper |
getDimensionSwapper()
Valid only after
ImportStep.STACK . |
FileStitcher |
getFileStitcher()
Valid only after
ImportStep.STACK . |
Location |
getIdLocation()
Valid only after
ImportStep.READER . |
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 . |
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 . |
String |
getSeriesLabel(int s)
Valid only after
ImportStep.STACK . |
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(StatusEvent e) |
void |
removeStatusListener(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(String seriesList) |
private void |
step(ImportStep step) |
boolean |
wasCanceled()
Gets whether the import process was canceled.
|
private List<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 String idName
protected Location idLoc
protected IMetadata meta
private String omeXML
private ImporterMetadata metadata
private String[] seriesLabels
public ImportProcess() throws IOException
IOException
public ImportProcess(ImporterOptions options)
public boolean execute() throws FormatException, IOException
FormatException
IOException
public void cancel()
public boolean wasCanceled()
public ImporterOptions getOptions()
public boolean isWindowless()
public void setSeriesList(String seriesList)
public IFormatReader getBaseReader()
ImportStep.READER
.public ImageReader getImageReader()
ImportStep.READER
.public String getIdName()
ImportStep.READER
.public Location getIdLocation()
ImportStep.READER
.public IMetadata getOMEMetadata()
ImportStep.READER
.public 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 String getCurrentFile()
ImportStep.STACK
.public int getSeriesCount()
ImportStep.STACK
.public String getSeriesLabel(int s)
ImportStep.STACK
.public 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 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(StatusListener l)
addStatusListener
in interface StatusReporter
public void removeStatusListener(StatusListener l)
removeStatusListener
in interface StatusReporter
public void notifyListeners(StatusEvent e)
notifyListeners
in interface StatusReporter
private void initializeReader() throws FormatException, IOException
FormatException
IOException
private void initializeFile() throws FormatException, IOException
FormatException
IOException
private void initializeStack() throws FormatException, IOException
FormatException
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, IOException
IFormatReader
according to the current configuration.FormatException
IOException
private void saveDefaults()
private void setId() throws FormatException, IOException
private void computeSeriesLabels(IFormatReader r)
private void step(ImportStep step)
private void assertStep(ImportStep importStep)
Copyright © 2016 Open Microscopy Environment