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

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

public class AveragingRadialSampler
extends AbstractRadialSampler

This Sampler samples along each line from the center to each vertex and computes an average data value along that line. That average value is then stored as the data value for that particular vertex.

Author:
Peter

Constructor Summary
AveragingRadialSampler()
           
 
Method Summary
 String getName()
          Returns the name of this Sampler.
protected  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.AbstractRadialSampler
computeValues
 
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
 

Constructor Detail

AveragingRadialSampler

public AveragingRadialSampler()
Method Detail

getName

public String getName()
Description copied from interface: VolumeDataViewSampler
Returns the name of this Sampler.

Returns:
the name of this Sampler

traceValue

protected double traceValue(VolumeDataView volDataView,
                            int time,
                            javax.vecmath.Point3f center,
                            javax.vecmath.Point3f destPoint)
Description copied from class: AbstractRadialSampler
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.

Specified by:
traceValue in class AbstractRadialSampler
Returns:


Copyright © 2006 University of Washington. All Rights Reserved.