edu.stanford.rsl.konrad.phantom.xcat
Class HeartScene

java.lang.Object
  extended by edu.stanford.rsl.konrad.rendering.AbstractScene
      extended by edu.stanford.rsl.konrad.rendering.PrioritizableScene
          extended by edu.stanford.rsl.konrad.phantom.AnalyticPhantom
              extended by edu.stanford.rsl.konrad.phantom.xcat.XCatScene
                  extended by edu.stanford.rsl.konrad.phantom.xcat.HeartScene
All Implemented Interfaces:
Citeable, GUIConfigurable, MotionField, java.lang.Iterable<PhysicalObject>, java.util.Collection<PhysicalObject>

public class HeartScene
extends XCatScene


Field Summary
 
Fields inherited from class edu.stanford.rsl.konrad.rendering.PrioritizableScene
ADD_HIGHEST_PRIORITY, ADD_LOWEST_PRIORITY
 
Constructor Summary
HeartScene()
           
 
Method Summary
 void configure()
          Configures the object before execution
 void createArteryTree(MotionField referenceMotion)
           
 void createLesions(MotionField referenceMotion)
          Renders lesions into the atrium and the ventricle according to the specified motion field.
 java.lang.String getBibtexCitation()
          Returns the citation in bibTex format
 java.lang.String getMedlineCitation()
          Returns the citation in Medline format
 java.lang.String getName()
           
 PointND getPosition(PointND initialPosition, double initialTime, double time)
          Determines the position at a given initialPosition and a given time where time = 0 is the initial position and time = 1 is the end position.
 java.util.ArrayList<PointND> getPositions(PointND initialPosition, double initialTime, double... times)
           
 java.util.ArrayList<SurfaceBSpline> getSplines()
           
 java.util.ArrayList<SurfaceBSpline> readHeartState(int state)
           
 void setTimeWarper(TimeWarper warper)
           
 PrioritizableScene tessellateScene(double voxelSizeX, double voxelSizeY, double voxelSizeZ, double samplingU, double samplingV, double time)
           
 
Methods inherited from class edu.stanford.rsl.konrad.phantom.xcat.XCatScene
add, generateFromSplineName, getSplineNameMaterialNameLUT, getSplinePriorityLUT, getTimeWarper, main
 
Methods inherited from class edu.stanford.rsl.konrad.phantom.AnalyticPhantom
getAnalyticPhantoms, isConfigured, setConfigured, toString
 
Methods inherited from class edu.stanford.rsl.konrad.rendering.PrioritizableScene
add, add, add, addAll, addAll, clear, contains, containsAll, getHighestPriority, getLowestPriority, getPriority, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class edu.stanford.rsl.konrad.rendering.AbstractScene
getBackgroundMaterial, getMax, getMin, setBackground, setMax, setMin, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

HeartScene

public HeartScene()
Method Detail

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 AnalyticPhantom
Throws:
java.lang.Exception - may happen

readHeartState

public java.util.ArrayList<SurfaceBSpline> readHeartState(int state)

createArteryTree

public void createArteryTree(MotionField referenceMotion)
Parameters:
referenceMotion -

createLesions

public void createLesions(MotionField referenceMotion)
Renders lesions into the atrium and the ventricle according to the specified motion field.

Parameters:
referenceMotion - the motion field to animate the lesions.

tessellateScene

public PrioritizableScene tessellateScene(double voxelSizeX,
                                          double voxelSizeY,
                                          double voxelSizeZ,
                                          double samplingU,
                                          double samplingV,
                                          double time)
Specified by:
tessellateScene in class XCatScene

getSplines

public java.util.ArrayList<SurfaceBSpline> getSplines()
Specified by:
getSplines in class XCatScene

getPosition

public PointND getPosition(PointND initialPosition,
                           double initialTime,
                           double time)
Description copied from interface: MotionField
Determines the position at a given initialPosition and a given time where time = 0 is the initial position and time = 1 is the end position.

Returns:
the position at the time

getPositions

public java.util.ArrayList<PointND> getPositions(PointND initialPosition,
                                                 double initialTime,
                                                 double... times)

setTimeWarper

public void setTimeWarper(TimeWarper warper)
Specified by:
setTimeWarper in interface MotionField
Overrides:
setTimeWarper in class XCatScene

getName

public java.lang.String getName()
Specified by:
getName in class AnalyticPhantom

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