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

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.WholeBodyScene
                      extended by edu.stanford.rsl.konrad.phantom.xcat.BreathingScene
All Implemented Interfaces:
Citeable, GUIConfigurable, MotionField, java.lang.Iterable<PhysicalObject>, java.util.Collection<PhysicalObject>

public class BreathingScene
extends WholeBodyScene


Field Summary
 
Fields inherited from class edu.stanford.rsl.konrad.rendering.PrioritizableScene
ADD_HIGHEST_PRIORITY, ADD_LOWEST_PRIORITY
 
Constructor Summary
BreathingScene()
           
 
Method Summary
 void configure()
          Configures the object before execution
 PointND getDiaphragmMax()
           
 PointND getDiaphragmMin()
           
 SimpleVector getDiaphragmMotionVector(double initialTime, double time)
          Returns the Motion Vector of the top of the diaphragm from initialTime to time
 double getDiaphragmMovement()
           
 java.lang.String getName()
           
 int getNumberOfBSplineTimePoints()
           
 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)
           
 void setDiaphragmMax(PointND diaphragmMax)
           
 void setDiaphragmMin(PointND diaphragmMin)
           
 void setDiaphragmMovement(double diaphragmMovement)
           
 void setNumberOfBSplineTimePoints(int numberOfBSplineTimePoints)
           
 void setTimeWarper(TimeWarper warper)
           
 
Methods inherited from class edu.stanford.rsl.konrad.phantom.xcat.WholeBodyScene
getBibtexCitation, getCompoundMotion, getMedlineCitation, getSceneMotion, getSplines, readSplines, tessellateScene
 
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

BreathingScene

public BreathingScene()
Method Detail

configure

public void configure()
Description copied from interface: GUIConfigurable
Configures the object before execution

Specified by:
configure in interface GUIConfigurable
Overrides:
configure in class WholeBodyScene

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.

Specified by:
getPosition in interface MotionField
Overrides:
getPosition in class WholeBodyScene
Returns:
the position at the time

getPositions

public java.util.ArrayList<PointND> getPositions(PointND initialPosition,
                                                 double initialTime,
                                                 double... times)
Specified by:
getPositions in interface MotionField
Overrides:
getPositions in class WholeBodyScene

setTimeWarper

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

getDiaphragmMotionVector

public SimpleVector getDiaphragmMotionVector(double initialTime,
                                             double time)
Returns the Motion Vector of the top of the diaphragm from initialTime to time

Parameters:
initialTime - the initial time
time - the time
Returns:
the motion vector

getDiaphragmMovement

public double getDiaphragmMovement()
Returns:
the diaphragmMovement

setDiaphragmMovement

public void setDiaphragmMovement(double diaphragmMovement)
Parameters:
diaphragmMovement - the diaphragmMovement to set

getNumberOfBSplineTimePoints

public int getNumberOfBSplineTimePoints()
Returns:
the numberOfBSplineTimePoints

setNumberOfBSplineTimePoints

public void setNumberOfBSplineTimePoints(int numberOfBSplineTimePoints)
Parameters:
numberOfBSplineTimePoints - the numberOfBSplineTimePoints to set

getDiaphragmMin

public PointND getDiaphragmMin()
Returns:
the diaphragmMin

setDiaphragmMin

public void setDiaphragmMin(PointND diaphragmMin)
Parameters:
diaphragmMin - the diaphragmMin to set

getDiaphragmMax

public PointND getDiaphragmMax()
Returns:
the diaphragmMax

setDiaphragmMax

public void setDiaphragmMax(PointND diaphragmMax)
Parameters:
diaphragmMax - the diaphragmMax to set

getName

public java.lang.String getName()
Overrides:
getName in class WholeBodyScene