edu.washington.biostr.sig.brainj3d.volume
Class AbstractVolumeView<T extends Data>
java.lang.Object
edu.washington.biostr.sig.brainj3d.data.DefaultDataView<T>
edu.washington.biostr.sig.brainj3d.volume.AbstractVolumeView<T>
- All Implemented Interfaces:
- DataView, View3D, VolumeView
- Direct Known Subclasses:
- MapVolumeView
public abstract class AbstractVolumeView<T extends Data>
- extends DefaultDataView<T>
- implements VolumeView
|
Method Summary |
javax.vecmath.Point3f |
fromPercent(javax.vecmath.Point3f p)
Convert p from percentage space to physical space. |
javax.vecmath.Vector3f |
getDown(int slice)
|
double |
getIntensity(float x,
float y,
float z,
int time)
|
double[] |
getLine(javax.vecmath.Point3f p1,
javax.vecmath.Point3f p2,
int time,
double[] line)
|
ColorLookupTable |
getLookupTable()
|
javax.vecmath.Vector3f |
getRight(int slice)
|
double |
getScaledIntensity(float x,
float y,
float z,
int time)
|
BufferedImage |
getSliceImage(int slice,
javax.vecmath.Point3f point,
boolean alpha,
int timepoint)
|
String |
getSpace()
|
javax.media.j3d.Transform3D |
getSpaceTransform()
|
int |
getTime()
|
javax.vecmath.Tuple3f[] |
getTuplesForImage(int slice,
javax.vecmath.Point3f point)
|
javax.vecmath.Point3f |
getUL(int slice,
javax.vecmath.Point3f percent)
|
String |
getUnit()
|
Object |
getValue(float x,
float y,
float z,
int time)
|
void |
setLookupTable(ColorLookupTable table)
|
protected void |
setMax(float x,
float y,
float z)
|
protected void |
setMin(float x,
float y,
float z)
|
void |
setSpaceTransform(String newSpace,
javax.media.j3d.Transform3D trans)
|
void |
setTime(int time)
|
void |
setUnit(String newUnit)
|
protected void |
setXDir(float x,
float y,
float z)
|
protected void |
setYDir(float x,
float y,
float z)
|
protected void |
setZDir(float x,
float y,
float z)
|
javax.vecmath.Point3f |
toPercent(javax.vecmath.Point3f p)
Convert p from physical space to a percentage space based on
this image. |
| Methods inherited from class edu.washington.biostr.sig.brainj3d.data.DefaultDataView |
addedToModel, equals, getCastData, getData, getDataKey, getInterval, getKey, getMaxTime, getMinTime, getParameter, getParameters, getTarget, hashCode, hasTime, removedFromModel, setData, setDefaultParameters, setParameter, setParameter, setParameter, setParameters, setTarget, toString |
| Methods inherited from interface edu.washington.biostr.sig.brainj3d.data.DataView |
addedToModel, getController, getData, getDataKey, getInterval, getKey, getMaxTime, getMinTime, getParameters, getTarget, getViewName, hasTime, removedFromModel, setData, setDefaultParameters, setParameter, setParameters, setTarget |
AbstractVolumeView
public AbstractVolumeView()
AbstractVolumeView
public AbstractVolumeView(Class<? extends Data> type)
setMin
protected void setMin(float x,
float y,
float z)
setMax
protected void setMax(float x,
float y,
float z)
setXDir
protected void setXDir(float x,
float y,
float z)
setYDir
protected void setYDir(float x,
float y,
float z)
setZDir
protected void setZDir(float x,
float y,
float z)
getLookupTable
public ColorLookupTable getLookupTable()
- Specified by:
getLookupTable in interface VolumeView
setLookupTable
public void setLookupTable(ColorLookupTable table)
- Specified by:
setLookupTable in interface VolumeView
getSliceImage
public BufferedImage getSliceImage(int slice,
javax.vecmath.Point3f point,
boolean alpha,
int timepoint)
- Specified by:
getSliceImage in interface VolumeView
getTuplesForImage
public javax.vecmath.Tuple3f[] getTuplesForImage(int slice,
javax.vecmath.Point3f point)
- Specified by:
getTuplesForImage in interface VolumeView
getLine
public double[] getLine(javax.vecmath.Point3f p1,
javax.vecmath.Point3f p2,
int time,
double[] line)
- Specified by:
getLine in interface VolumeView
getIntensity
public double getIntensity(float x,
float y,
float z,
int time)
- Specified by:
getIntensity in interface VolumeView
getScaledIntensity
public double getScaledIntensity(float x,
float y,
float z,
int time)
- Specified by:
getScaledIntensity in interface VolumeView
getValue
public Object getValue(float x,
float y,
float z,
int time)
- Specified by:
getValue in interface VolumeView
setTime
public void setTime(int time)
getTime
public int getTime()
toPercent
public javax.vecmath.Point3f toPercent(javax.vecmath.Point3f p)
- Description copied from interface:
VolumeView
- Convert p from physical space to a percentage space based on
this image.
- Specified by:
toPercent in interface VolumeView
- Returns:
- p
fromPercent
public javax.vecmath.Point3f fromPercent(javax.vecmath.Point3f p)
- Description copied from interface:
VolumeView
- Convert p from percentage space to physical space.
- Specified by:
fromPercent in interface VolumeView
- Returns:
setUnit
public void setUnit(String newUnit)
- Specified by:
setUnit in interface View3D
getUnit
public String getUnit()
- Specified by:
getUnit in interface View3D
getSpace
public String getSpace()
- Specified by:
getSpace in interface View3D
setSpaceTransform
public void setSpaceTransform(String newSpace,
javax.media.j3d.Transform3D trans)
- Specified by:
setSpaceTransform in interface View3D
getSpaceTransform
public javax.media.j3d.Transform3D getSpaceTransform()
- Specified by:
getSpaceTransform in interface View3D
getDown
public javax.vecmath.Vector3f getDown(int slice)
getRight
public javax.vecmath.Vector3f getRight(int slice)
getUL
public javax.vecmath.Point3f getUL(int slice,
javax.vecmath.Point3f percent)
Copyright © 2006 University of Washington. All Rights Reserved.