edu.stanford.rsl.konrad.phantom.renderer
Class PhantomRenderer

java.lang.Object
  extended by edu.stanford.rsl.konrad.phantom.renderer.PhantomRenderer
All Implemented Interfaces:
Citeable, GUIConfigurable, ProjectionSource
Direct Known Subclasses:
AnalyticPhantomProjector, RampProjectionPhantomRenderer, VolumePhantomRenderer

public abstract class PhantomRenderer
extends java.lang.Object
implements ProjectionSource, Citeable, GUIConfigurable

Abstract class to describe a numerical phantom.

Author:
akmaier

Constructor Summary
PhantomRenderer()
           
 
Method Summary
static ij.ImagePlus createEmptyVolume(java.lang.String title, int dimx, int dimy, int dimz)
          Creates an empty volume which can be used to render the phantom into.
abstract  ij.ImagePlus createPhantom()
          Method to start the voxelization of the phantom.
 int getCurrentProjectionNumber()
          Returns the current projection number
 void getNextProjection(IndividualImagePipelineFilteringTool tool)
          Writes the next projection into an IndividualImagePipelineFiltering tool, i.e.
static PhantomRenderer[] getPhantoms()
          Returns a list of all known numerical phantoms.
 boolean isConfigured()
          Is true if the object was successfully configured
abstract  java.lang.String toString()
          Returns the name of the phantom
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.stanford.rsl.konrad.pipeline.ProjectionSource
getNextProjection
 
Methods inherited from interface edu.stanford.rsl.apps.gui.Citeable
getBibtexCitation, getMedlineCitation
 
Methods inherited from interface edu.stanford.rsl.apps.gui.GUIConfigurable
configure
 

Constructor Detail

PhantomRenderer

public PhantomRenderer()
Method Detail

toString

public abstract java.lang.String toString()
Returns the name of the phantom

Overrides:
toString in class java.lang.Object

createPhantom

public abstract ij.ImagePlus createPhantom()
Method to start the voxelization of the phantom.

Returns:
the phantom

isConfigured

public boolean isConfigured()
Description copied from interface: GUIConfigurable
Is true if the object was successfully configured

Specified by:
isConfigured in interface GUIConfigurable
Returns:
configured?

getPhantoms

public static PhantomRenderer[] getPhantoms()
Returns a list of all known numerical phantoms.

Returns:
the list.

createEmptyVolume

public static ij.ImagePlus createEmptyVolume(java.lang.String title,
                                             int dimx,
                                             int dimy,
                                             int dimz)
Creates an empty volume which can be used to render the phantom into.

Parameters:
title - the title
dimx - the size in x direction
dimy - the size in y direction
dimz - the size in z direction (slice number)
Returns:
the empty volume

getCurrentProjectionNumber

public int getCurrentProjectionNumber()
Description copied from interface: ProjectionSource
Returns the current projection number

Specified by:
getCurrentProjectionNumber in interface ProjectionSource
Returns:
the number
See Also:
ProjectionSource.getNextProjection(), ProjectionSource.getNextProjection(IndividualImagePipelineFilteringTool tool)

getNextProjection

public void getNextProjection(IndividualImagePipelineFilteringTool tool)
Description copied from interface: ProjectionSource
Writes the next projection into an IndividualImagePipelineFiltering tool, i.e. reads the projection and sets the right projection number in a synchornized manner.

Specified by:
getNextProjection in interface ProjectionSource
Parameters:
tool - the tool to write to