public abstract class PhantomRenderer extends java.lang.Object implements ProjectionSource, Citeable, GUIConfigurable
Constructor and Description |
---|
PhantomRenderer() |
Modifier and Type | Method and Description |
---|---|
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 void |
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.
|
void |
initStream(java.lang.String filename)
Initializes the the ProjectionSource.
|
boolean |
isConfigured()
Is true if the object was successfully configured
|
abstract java.lang.String |
toString()
Returns the name of the phantom
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNextProjection
getBibtexCitation, getMedlineCitation
configure
public void initStream(java.lang.String filename) throws java.io.IOException
ProjectionSource
initStream
in interface ProjectionSource
filename
- the name of the file to readjava.io.IOException
- may happenpublic abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract void createPhantom()
public boolean isConfigured()
GUIConfigurable
isConfigured
in interface GUIConfigurable
public static PhantomRenderer[] getPhantoms()
public static ij.ImagePlus createEmptyVolume(java.lang.String title, int dimx, int dimy, int dimz)
title
- the titledimx
- the size in x directiondimy
- the size in y directiondimz
- the size in z direction (slice number)public int getCurrentProjectionNumber()
ProjectionSource
getCurrentProjectionNumber
in interface ProjectionSource
ProjectionSource.getNextProjection()
,
ProjectionSource.getNextProjection(IndividualImagePipelineFilteringTool tool)
public void getNextProjection(IndividualImagePipelineFilteringTool tool)
ProjectionSource
getNextProjection
in interface ProjectionSource
tool
- the tool to write to