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

java.lang.Object
  extended by 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

Constructor Summary
AbstractVolumeDataViewSampler()
           
 
Method Summary
 double[] computeValues(float[] coords, VolumeDataView volDataView, int time)
          Samples the given coordinates and puts returns the resulting array.
 String 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
computeValues, getName
 

Constructor Detail

AbstractVolumeDataViewSampler

public AbstractVolumeDataViewSampler()
Method Detail

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 sampled
time - 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.