skyview.geometry.sampler
Class SplineSampler
java.lang.Object
skyview.geometry.Sampler
skyview.geometry.sampler.SplineSampler
- All Implemented Interfaces:
- java.io.Serializable, Component
public class SplineSampler
- extends Sampler
- See Also:
- Serialized Form
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SplineSampler
public SplineSampler()
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.