edu.washington.biostr.sig.brainj3d.viewvolume
Class VolumeDataView

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.data.DefaultDataView<VolumeData>
      extended by edu.washington.biostr.sig.brainj3d.viewvolume.VolumeDataView
All Implemented Interfaces:
DataView, View3D, VolumeView
Direct Known Subclasses:
ColorizedVolumeSurface3DView.KernelMaskView

public class VolumeDataView
extends DefaultDataView<VolumeData>
implements VolumeView

Version:
1
Author:
Eider Moore

Field Summary
 
Fields inherited from interface edu.washington.biostr.sig.brainj3d.volume.VolumeView
CORONAL, SAGITTAL, TRANSVERSE, XY_PLANE, XZ_PLANE, YZ_PLANE
 
Constructor Summary
VolumeDataView()
           
 
Method Summary
 javax.vecmath.Point3f fromPercent(javax.vecmath.Point3f p)
          Convert p from percentage space to physical space.
 DataController getController(DataKey dataKey, DoTarget target)
          Get the controller for this DataView.
 BufferedImage getImage(javax.vecmath.Point3f ul, javax.vecmath.Vector3f right, javax.vecmath.Vector3f down, int pixelWidth, int pixelHeight, boolean alpha, int timepoint)
           
 double getIntensity(float x, float y, float z, int timepoint)
           
 double getIntensity(javax.vecmath.Point3f point, int timepoint)
           
 int getInterval()
           
 double[] getLine(javax.vecmath.Point3f p1, javax.vecmath.Point3f p2, int timepoint, double[] line)
           
 ColorLookupTable getLookupTable()
           
 int getMaxTime()
           
 double getMaxValue()
          Get the largest value in the dataset.
 int getMinTime()
           
 double getMinValue()
          Get the minimum value in the dataset.
 void getPercent(javax.vecmath.Point3f percent)
           
 double getScaledIntensity(float x, float y, float z, int timepoint)
           
 double getScaledIntensity(javax.vecmath.Point3f point, int timepoint)
           
 BufferedImage getSliceImage(int slice, javax.vecmath.Point3f point, boolean alpha, int timepoint)
           
 String getSpace()
           
 javax.media.j3d.Transform3D getSpaceTransform()
           
 javax.vecmath.Tuple3f[] getTuplesForImage(int slice, javax.vecmath.Point3f p)
           
 String getUnit()
           
 Object getValue(float x, float y, float z, int time)
           
 Object getValue(javax.vecmath.Point3f p, int time)
           
 String getViewName()
          Get a name that should identify this type of view, but not this individual view.
 void setLookupTable(ColorLookupTable table)
           
 boolean setParameter(String parameter, Object value, Object oldValue, boolean beLazy)
          Set a parameter.
 void setParameters(Map<String,Object> parameters)
          Set the parameters to have the data in parameters, plus any disjoint parameters.
 void setSpaceTransform(String newSpace, javax.media.j3d.Transform3D trans)
           
protected  void setTable()
           
 void setUnit(String newUnit)
           
 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, getKey, getParameter, getParameters, getTarget, hashCode, hasTime, removedFromModel, setData, setDefaultParameters, setParameter, setParameter, setTarget, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.washington.biostr.sig.brainj3d.data.DataView
addedToModel, getData, getDataKey, getKey, getParameters, getTarget, hasTime, removedFromModel, setData, setDefaultParameters, setParameter, setTarget
 

Constructor Detail

VolumeDataView

public VolumeDataView()
Method Detail

getLookupTable

public ColorLookupTable getLookupTable()
Specified by:
getLookupTable in interface VolumeView

setLookupTable

public void setLookupTable(ColorLookupTable table)
Specified by:
setLookupTable in interface VolumeView

getImage

public BufferedImage getImage(javax.vecmath.Point3f ul,
                              javax.vecmath.Vector3f right,
                              javax.vecmath.Vector3f down,
                              int pixelWidth,
                              int pixelHeight,
                              boolean alpha,
                              int timepoint)
Specified by:
getImage in interface VolumeView

getSliceImage

public BufferedImage getSliceImage(int slice,
                                   javax.vecmath.Point3f point,
                                   boolean alpha,
                                   int timepoint)
Specified by:
getSliceImage in interface VolumeView

getPercent

public void getPercent(javax.vecmath.Point3f percent)

getTuplesForImage

public javax.vecmath.Tuple3f[] getTuplesForImage(int slice,
                                                 javax.vecmath.Point3f p)
Specified by:
getTuplesForImage in interface VolumeView

getLine

public double[] getLine(javax.vecmath.Point3f p1,
                        javax.vecmath.Point3f p2,
                        int timepoint,
                        double[] line)
Specified by:
getLine in interface VolumeView

getIntensity

public double getIntensity(float x,
                           float y,
                           float z,
                           int timepoint)
Specified by:
getIntensity in interface VolumeView

getIntensity

public double getIntensity(javax.vecmath.Point3f point,
                           int timepoint)
Specified by:
getIntensity in interface VolumeView

getScaledIntensity

public double getScaledIntensity(float x,
                                 float y,
                                 float z,
                                 int timepoint)
Specified by:
getScaledIntensity in interface VolumeView

getScaledIntensity

public double getScaledIntensity(javax.vecmath.Point3f point,
                                 int timepoint)
Specified by:
getScaledIntensity in interface VolumeView

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

getMaxTime

public int getMaxTime()
Specified by:
getMaxTime in interface DataView
Overrides:
getMaxTime in class DefaultDataView<VolumeData>
Returns:
the maximum time value.

getMinTime

public int getMinTime()
Specified by:
getMinTime in interface DataView
Overrides:
getMinTime in class DefaultDataView<VolumeData>
Returns:
the minimum time value

getInterval

public int getInterval()
Specified by:
getInterval in interface DataView
Overrides:
getInterval in class DefaultDataView<VolumeData>
Returns:
the interval between time points.

getController

public DataController getController(DataKey dataKey,
                                    DoTarget target)
Description copied from interface: DataView
Get the controller for this DataView.

Specified by:
getController in interface DataView
target - The target or null if the target remains unchanged
Returns:

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:

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

getValue

public Object getValue(float x,
                       float y,
                       float z,
                       int time)
Specified by:
getValue in interface VolumeView

getValue

public Object getValue(javax.vecmath.Point3f p,
                       int time)
Specified by:
getValue in interface VolumeView

setParameters

public void setParameters(Map<String,Object> parameters)
Description copied from class: DefaultDataView
Set the parameters to have the data in parameters, plus any disjoint parameters.

Specified by:
setParameters in interface DataView
Overrides:
setParameters in class DefaultDataView<VolumeData>

setTable

protected void setTable()

setParameter

public boolean setParameter(String parameter,
                            Object value,
                            Object oldValue,
                            boolean beLazy)
Description copied from class: DefaultDataView
Set a parameter. When a bulk set is performed, this is called multiple times.
Default implementation just returns false.

Overrides:
setParameter in class DefaultDataView<VolumeData>
Returns:
true if anything changed.

getMaxValue

public double getMaxValue()
Get the largest value in the dataset.

Returns:

getMinValue

public double getMinValue()
Get the minimum value in the dataset.

Returns:

getViewName

public String getViewName()
Description copied from interface: DataView
Get a name that should identify this type of view, but not this individual view.

Specified by:
getViewName in interface DataView
Returns:


Copyright © 2006 University of Washington. All Rights Reserved.