edu.washington.biostr.sig.brainj3d.view3D.samplers
Class AbstractRadialSampler
java.lang.Object
edu.washington.biostr.sig.brainj3d.view3D.samplers.AbstractVolumeDataViewSampler
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
|
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. |
AbstractRadialSampler
public AbstractRadialSampler()
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 sampledtime - the time index to perform the samplingoutValues - 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.