public class ImageDataBoxLoader extends AbstractProcessingTask
Tank
list. This class wraps the IDataModels into an instance of
IqmDataBox and adds this data box to the DefaultListModel in
the TankPanel.SwingWorker.StateValue| Modifier and Type | Field and Description |
|---|---|
private static Class<?> |
caller
The class.
|
private File[] |
files
The file list.
|
private static org.apache.log4j.Logger |
logger
Logger variable.
|
private PropertyChangeSupport |
pcs
The progress publishing
PropertyChangeSupport. |
childTask, duration, headless, operator, operatorGUI, parentTask, startTime, virtual, workPackage| Constructor and Description |
|---|
ImageDataBoxLoader(File[] files,
boolean virtual)
Custom constructor.
|
ImageDataBoxLoader(List<File> files,
boolean virtual)
|
| Modifier and Type | Method and Description |
|---|---|
protected List<IqmDataBox> |
doInBackground()
This method must be implemented by all subclasses.
|
protected void |
done()
This method adds the constructed List of
IqmDataBoxes to the
Tank list. |
List<IqmDataBox> |
getBoxListForHD(File[] fileList)
This method reads each image (stack) from a given list of files and
stores them not in memory but as a file in the temporary directory of
IQM.
|
List<IqmDataBox> |
getBoxListForMemory(File[] fileList)
Adds each image in the specified file list to a list of
IqmDataBox in memory. |
PropertyChangeSupport |
getPcs() |
protected void |
process(List<Object> chunks)
Currently unused.
|
void |
setPcs(PropertyChangeSupport pcs) |
getChildTask, getOperator, getOperatorGUI, getParentTask, getWorkPackage, isHeadless, isVirtual, setChildTask, setHeadless, setOperator, setOperatorGUI, setParentTask, setVirtual, setWorkPackageaddPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgressprivate static Class<?> caller
private static final org.apache.log4j.Logger logger
private PropertyChangeSupport pcs
PropertyChangeSupport.private File[] files
public ImageDataBoxLoader(File[] files, boolean virtual)
files - the file list as File[]virtual - if the files should be processed virtually, i.e. temporarily
be saved to the hard driveprotected List<IqmDataBox> doInBackground() throws Exception
AbstractProcessingTaskdoInBackground in class AbstractProcessingTaskget().ExceptionAbstractProcessingTask.doInBackground()protected void process(List<Object> chunks)
process in class AbstractProcessingTaskchunks - the intermediate resultsprotected void done()
IqmDataBoxes to the
Tank list.done in class AbstractProcessingTaskpublic List<IqmDataBox> getBoxListForMemory(File[] fileList)
IqmDataBox in memory.fileList - the list of filesIqmDataBoxes, holding images in memorypublic List<IqmDataBox> getBoxListForHD(File[] fileList)
The location to that file will be put to a HashMap in
VirtualDataManager and can be queried, if the item needs to be
loaded.
fileList - list of filesVirtualDataBoxespublic PropertyChangeSupport getPcs()
public void setPcs(PropertyChangeSupport pcs)
pcs - the pcs to setCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.