|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.phantom.workers.SliceWorker
public abstract class SliceWorker
Class to model an abstract slice worker.
Constructor Summary | |
---|---|
SliceWorker()
|
Method Summary | |
---|---|
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 [] |
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 |
setImagePlus(ij.ImagePlus 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(ij.process.ImageProcessor image,
int sliceNumber)
Method will voxelize the phantom into the current slice |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.stanford.rsl.konrad.parallel.NamedParallelizableRunnable |
---|
getProcessName |
Methods inherited from interface edu.stanford.rsl.apps.gui.Citeable |
---|
getBibtexCitation, getMedlineCitation |
Constructor Detail |
---|
public SliceWorker()
Method Detail |
---|
public void setLatch(java.util.concurrent.CountDownLatch latch)
setLatch
in interface ParallelizableRunnable
public void run()
run
in interface java.lang.Runnable
public void setImagePlus(ij.ImagePlus image)
image
- the volumepublic void setSliceList(java.util.Iterator<java.lang.Integer> sliceList)
sliceList
- the list of slice as Iterator of slice numberspublic abstract void workOnSlice(ij.process.ImageProcessor image, int sliceNumber)
image
- the volume slicesliceNumber
- 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 String
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |