Package skyview.geometry.sampler
Class Combo
- java.lang.Object
-
- skyview.geometry.Sampler
-
- skyview.geometry.sampler.Combo
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,Component
public class Combo extends Sampler
This class uses two samplers. The default sampler is used but whenever a NaN is returned, the backup sampler is tried. Normally the default sampler will a high order sampler and the backup sampler will be simpler.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Combo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Get the description of this component.java.lang.StringgetName()Get the name of this component.voidsample(int index)Use the primary unless we get a NaNvoidsetBounds(int[] bounds)Set the bounds of the output image that may be asked for.voidsetInput(Image inImage)Set the input image for the samplingvoidsetOutput(Image outImage)Set the output image for the samplingvoidsetTransform(Transformer transform)Set the transformation information.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:ComponentGet the name of this component.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ComponentGet the description of this component.
-
sample
public void sample(int index)
Use the primary unless we get a NaN
-
setInput
public void setInput(Image inImage)
Set the input image for the sampling
-
setBounds
public void setBounds(int[] bounds)
Set the bounds of the output image that may be asked for.
-
setOutput
public void setOutput(Image outImage)
Set the output image for the sampling
-
setTransform
public void setTransform(Transformer transform)
Set the transformation information.- Overrides:
setTransformin classSampler- Parameters:
transform- The transformer object.
-
-