skyview.geometry.sampler
Class SplineSampler

java.lang.Object
  extended by skyview.geometry.Sampler
      extended by skyview.geometry.sampler.SplineSampler
All Implemented Interfaces:
java.io.Serializable, Component

public class SplineSampler
extends Sampler

See Also:
Serialized Form

Field Summary
 
Fields inherited from class skyview.geometry.Sampler
bounds, inDepth, inHeight, inImage, inWidth, outDepth, outHeight, outImage, outWidth, trans
 
Constructor Summary
SplineSampler()
           
 
Method Summary
 java.lang.String getDescription()
          Get the description of this component.
 java.lang.String getName()
          Get the name of this component.
 double interpolatedValue(double x, double y)
           
 void sample(int pix)
          Find the value in the input data to put in the output data.
 void setInput(Image inImage)
          Construct a sample of a given degree.
 void setOrder(int order)
          Set the order
 
Methods inherited from class skyview.geometry.Sampler
factory, setBounds, setOutput, setTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplineSampler

public SplineSampler()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Component
Get the name of this component.


getDescription

public java.lang.String getDescription()
Description copied from interface: Component
Get the description of this component.


setOrder

public void setOrder(int order)
Set the order

Overrides:
setOrder in class Sampler

setInput

public void setInput(Image inImage)
Construct a sample of a given degree. Probably should override the setImage functions and such since we don't handle 3-D images yet.

Overrides:
setInput in class Sampler

interpolatedValue

public double interpolatedValue(double x,
                                double y)

sample

public void sample(int pix)
Description copied from class: Sampler
Find the value in the input data to put in the output data. The output array defined in a previous setOutput call is updated.

Specified by:
sample in class Sampler
Parameters:
pix - The index into the output array.