public abstract class SliceWorker extends java.lang.Object implements NamedParallelizableRunnable, java.lang.Cloneable, GUIConfigurable, Citeable
Constructor and Description |
---|
SliceWorker() |
Modifier and Type | Method and Description |
---|---|
abstract SliceWorker |
clone() |
void |
configure()
Configures the object before execution
|
void |
copyInternalElementsTo(SliceWorker other)
Method to be called in the clones of Subclasses to copy the information of this class into the new clone.
|
static SliceWorker[] |
getAvailableSliceWorkers()
Reports a list of all known subclasses of SliceWorker
|
static java.lang.String[] |
getAvailableWorkersAsString()
Gives a list of the available Workers as String []
|
ImageProcessorBuffer |
getImageProcessorBufferValue() |
static SliceWorker |
getWorkerFromString(java.lang.String name)
Method to select a worker given it's String representation
|
boolean |
isConfigured()
Is true if the object was successfully configured
|
boolean |
isShowStatus() |
void |
run() |
void |
setImageProcessorBuffer(ImageProcessorBuffer image)
Sets the volume to work on.
|
void |
setLatch(java.util.concurrent.CountDownLatch latch) |
void |
setShowStatus(boolean showStatus) |
void |
setSliceList(java.util.Iterator<java.lang.Integer> sliceList)
Sets the sliceList which is being processed
|
java.lang.String |
toString() |
abstract void |
workOnSlice(int sliceNumber)
Method will voxelize the phantom into the current slice
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProcessName
getBibtexCitation, getMedlineCitation
public void setLatch(java.util.concurrent.CountDownLatch latch)
setLatch
in interface ParallelizableRunnable
public void run()
run
in interface java.lang.Runnable
public void setImageProcessorBuffer(ImageProcessorBuffer image)
image
- the image bufferpublic ImageProcessorBuffer getImageProcessorBufferValue()
public void setSliceList(java.util.Iterator<java.lang.Integer> sliceList)
sliceList
- the list of slice as Iterator of slice numberspublic abstract void workOnSlice(int sliceNumber)
sliceNumber
- the slice numberpublic abstract SliceWorker clone()
clone
in class java.lang.Object
public void copyInternalElementsTo(SliceWorker other)
other
- the clone of the subclass.public static SliceWorker[] getAvailableSliceWorkers()
public static java.lang.String[] getAvailableWorkersAsString()
public static SliceWorker getWorkerFromString(java.lang.String name)
name
- the Stringpublic void configure() throws java.lang.Exception
GUIConfigurable
configure
in interface GUIConfigurable
java.lang.Exception
- may happenpublic boolean isConfigured()
GUIConfigurable
isConfigured
in interface GUIConfigurable
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isShowStatus()
public void setShowStatus(boolean showStatus)
showStatus
- the showStatus to set