edu.stanford.rsl.konrad.geometry.splines
Class SurfaceBSplineVolumePhantom

java.lang.Object
  extended by edu.stanford.rsl.konrad.phantom.workers.SliceWorker
      extended by edu.stanford.rsl.konrad.geometry.splines.SurfaceBSplineVolumePhantom
All Implemented Interfaces:
Citeable, GUIConfigurable, NamedParallelizableRunnable, ParallelizableRunnable, java.lang.Cloneable, java.lang.Runnable

public class SurfaceBSplineVolumePhantom
extends SliceWorker


Constructor Summary
SurfaceBSplineVolumePhantom()
           
 
Method Summary
 SliceWorker clone()
           
 void configure()
          Configures the object before execution
 void generateDefaultScene(double samplingU, double samplingV)
           
 java.lang.String getBibtexCitation()
          Returns the citation in bibTex format
 SimpleVector getBounds()
          Returns an SimpleVector that specifies the bounding box of the BSpline Phantom with six entries:
Minimum X Coordinate Minimum Y Coordinate Minimum Z Coordinate Maximum X Coordinate Maximum Y Coordinate Maximum Z Coordinate
 java.lang.String getMedlineCitation()
          Returns the citation in Medline format
 java.lang.String getProcessName()
           
 void readSplineListFromFile(java.lang.String filename)
           
 void resizeVolumeToMatchBounds(PointND min, PointND max)
           
 void resizeVolumeToMatchSplineSpace()
           
 void setScene(AbstractScene scene)
           
 void setSplineList(java.util.ArrayList<SurfaceBSpline> list)
           
 java.util.ArrayList<AbstractShape> tesselateSplines(double samplingU, double samplingV)
           
 void workOnSlice(ij.process.ImageProcessor slice, int sliceNumber)
          Method will voxelize the phantom into the current slice
 
Methods inherited from class edu.stanford.rsl.konrad.phantom.workers.SliceWorker
copyInternalElementsTo, getAvailableSliceWorkers, getAvailableWorkersAsString, getWorkerFromString, isConfigured, isShowStatus, run, setImagePlus, setLatch, setShowStatus, setSliceList, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SurfaceBSplineVolumePhantom

public SurfaceBSplineVolumePhantom()
Method Detail

workOnSlice

public void workOnSlice(ij.process.ImageProcessor slice,
                        int sliceNumber)
Description copied from class: SliceWorker
Method will voxelize the phantom into the current slice

Specified by:
workOnSlice in class SliceWorker
Parameters:
slice - the volume slice
sliceNumber - the slice number

getProcessName

public java.lang.String getProcessName()

getBibtexCitation

public java.lang.String getBibtexCitation()
Description copied from interface: Citeable
Returns the citation in bibTex format

Returns:
citation as String

getMedlineCitation

public java.lang.String getMedlineCitation()
Description copied from interface: Citeable
Returns the citation in Medline format

Returns:
citation as String

readSplineListFromFile

public void readSplineListFromFile(java.lang.String filename)
                            throws java.io.IOException
Throws:
java.io.IOException

setSplineList

public void setSplineList(java.util.ArrayList<SurfaceBSpline> list)

resizeVolumeToMatchBounds

public void resizeVolumeToMatchBounds(PointND min,
                                      PointND max)

resizeVolumeToMatchSplineSpace

public void resizeVolumeToMatchSplineSpace()

tesselateSplines

public java.util.ArrayList<AbstractShape> tesselateSplines(double samplingU,
                                                           double samplingV)

setScene

public void setScene(AbstractScene scene)

generateDefaultScene

public void generateDefaultScene(double samplingU,
                                 double samplingV)
                          throws java.io.IOException
Throws:
java.io.IOException

configure

public void configure()
               throws java.lang.Exception
Description copied from interface: GUIConfigurable
Configures the object before execution

Specified by:
configure in interface GUIConfigurable
Overrides:
configure in class SliceWorker
Throws:
java.lang.Exception - may happen

clone

public SliceWorker clone()
Specified by:
clone in class SliceWorker

getBounds

public SimpleVector getBounds()
Returns an SimpleVector that specifies the bounding box of the BSpline Phantom with six entries:
  • Minimum X Coordinate
  • Minimum Y Coordinate
  • Minimum Z Coordinate
  • Maximum X Coordinate
  • Maximum Y Coordinate
  • Maximum Z Coordinate
  • Returns:
    the bounding box vector