edu.washington.biostr.sig.brainj3d.view3D.samplers
Class AveragingRadialSampler
java.lang.Object
edu.washington.biostr.sig.brainj3d.view3D.samplers.AbstractVolumeDataViewSampler
edu.washington.biostr.sig.brainj3d.view3D.samplers.AbstractRadialSampler
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
|
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. |
AveragingRadialSampler
public AveragingRadialSampler()
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.