edu.washington.biostr.sig.brainj3d.view3D.samplers
Class AbstractVolumeDataViewSampler
java.lang.Object
edu.washington.biostr.sig.brainj3d.view3D.samplers.AbstractVolumeDataViewSampler
- All Implemented Interfaces:
- VolumeDataViewSampler
- Direct Known Subclasses:
- AbstractRadialSampler, DataPointSampler
public abstract class AbstractVolumeDataViewSampler
- extends Object
- implements VolumeDataViewSampler
This class provides some basic implementation of the VolumeDataViewSampler interface.
- Author:
- Peter
AbstractVolumeDataViewSampler
public AbstractVolumeDataViewSampler()
computeValues
public double[] computeValues(float[] coords,
VolumeDataView volDataView,
int time)
- Description copied from interface:
VolumeDataViewSampler
- Samples the given coordinates and puts returns the resulting array.
- Specified by:
computeValues in interface VolumeDataViewSampler
- 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 sampling
- Returns:
- an array containing the sampled values of size
coords.length / 3; sampled values
are ordered as follows: [s0, s1, ...]
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2006 University of Washington. All Rights Reserved.