edu.washington.biostr.sig.brainj3d.view3D.samplers
Class AbstractRadialSampler

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.view3D.samplers.AbstractVolumeDataViewSampler
      extended by edu.washington.biostr.sig.brainj3d.view3D.samplers.AbstractRadialSampler
All Implemented Interfaces:
VolumeDataViewSampler
Direct Known Subclasses:
AveragingRadialSampler

public abstract class AbstractRadialSampler
extends AbstractVolumeDataViewSampler

This class provides support for peforming samples across the volume from a given center to each vertex. Implementing classes must implement traceValue(...) which is called for each point in the node for the given volume.

Author:
Peter

Constructor Summary
AbstractRadialSampler()
           
 
Method Summary
 void computeValues(float[] coords, VolumeDataView volDataView, int time, double[] outValues)
          Samples the given coordinates and puts the resulting samples in the outValues array.
protected abstract  double traceValue(VolumeDataView volDataView, int time, javax.vecmath.Point3f center, javax.vecmath.Point3f destPoint)
          Traces a line from the center to the destination point at the given time for the given volume data view.
 
Methods inherited from class edu.washington.biostr.sig.brainj3d.view3D.samplers.AbstractVolumeDataViewSampler
computeValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.washington.biostr.sig.brainj3d.view3D.samplers.VolumeDataViewSampler
getName
 

Constructor Detail

AbstractRadialSampler

public AbstractRadialSampler()
Method Detail

computeValues

public void computeValues(float[] coords,
                          VolumeDataView volDataView,
                          int time,
                          double[] outValues)
Description copied from interface: VolumeDataViewSampler
Samples the given coordinates and puts the resulting samples in the outValues array.

Parameters:
coords - an array of input coordinates of the following form: [x0, y0, z0, x1, y1, z1, ...]
volDataView - a view upon a volume data set to be sampled
time - the time index to perform the sampling
outValues - an allocated array of size coords.length / 3, the array does not need to be zero-initialized; samples values are returned through this array in the following form: [s0, s1, ...]

traceValue

protected abstract double traceValue(VolumeDataView volDataView,
                                     int time,
                                     javax.vecmath.Point3f center,
                                     javax.vecmath.Point3f destPoint)
Traces a line from the center to the destination point at the given time for the given volume data view. This method is called using the same center across each volume data view for each destination point in the current cutaway node. Implementers should return a value to represent the value at the destination point.

Parameters:
volDataView -
time -
center -
destPoint -
Returns:


Copyright © 2006 University of Washington. All Rights Reserved.