|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object skyview.geometry.Sampler skyview.geometry.sampler.ComboSampler
public class ComboSampler
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.
Field Summary | |
---|---|
protected Sampler |
backup
|
protected java.lang.String |
combo
|
protected Sampler |
primary
|
Fields inherited from class skyview.geometry.Sampler |
---|
bounds, inDepth, inHeight, inImage, inWidth, outDepth, outHeight, outImage, outWidth, trans |
Constructor Summary | |
---|---|
ComboSampler()
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Get the description of this component. |
java.lang.String |
getName()
Get the name of this component. |
void |
sample(int index)
Use the primary unless we get a NaN |
void |
setBounds(int[] bounds)
Set the bounds of the output image that may be asked for. |
void |
setInput(Image inImage)
Set the input image for the sampling |
void |
setOutput(Image outImage)
Set the output image for the sampling |
void |
setTransform(Transformer transform)
Set the transformation information. |
Methods inherited from class skyview.geometry.Sampler |
---|
factory, setOrder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Sampler primary
protected Sampler backup
protected java.lang.String combo
Constructor Detail |
---|
public ComboSampler()
Method Detail |
---|
public java.lang.String getName()
Component
public java.lang.String getDescription()
Component
public void sample(int index)
sample
in class Sampler
index
- The index into the output array.public void setInput(Image inImage)
setInput
in class Sampler
public void setBounds(int[] bounds)
setBounds
in class Sampler
public void setOutput(Image outImage)
setOutput
in class Sampler
public void setTransform(Transformer transform)
setTransform
in class Sampler
transform
- The transformer object.pixels
- The pixel array of the data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |