NASA World Wind

gov.nasa.worldwind.util
Class ImageInterpolator

java.lang.Object
  extended by gov.nasa.worldwind.util.ImageInterpolator
Direct Known Subclasses:
GeographicImageInterpolator

public class ImageInterpolator
extends Object

Provides searching and interpolation of a grid of scalars.


Nested Class Summary
protected static class ImageInterpolator.Cell
           
static class ImageInterpolator.ContainingCell
           
 
Field Summary
protected  int cellSize
           
protected  Dimension gridSize
           
protected  BasicMemoryCache kidCache
           
protected  ImageInterpolator.Cell root
           
protected  float[] xs
           
protected  float[] ys
           
 
Constructor Summary
ImageInterpolator(Dimension gridSize, float[] xs, float[] ys, int depth, int cellSize)
           
 
Method Summary
protected  ImageInterpolator.ContainingCell checkContainment(float x, float y, ImageInterpolator.Cell cell)
           
protected  double[] computeBilinearCoordinates(float x, float y, ImageInterpolator.Cell cell)
           
 ImageInterpolator.ContainingCell findContainingCell(float x, float y)
           
protected  ImageInterpolator.ContainingCell findContainingCell(ImageInterpolator.Cell cell, float x, float y)
           
protected  int[] getFieldIndices(ImageInterpolator.Cell cell)
           
protected  ImageInterpolator.Cell makeRootCell(int m0, int m1, int n0, int n1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cellSize

protected final int cellSize

gridSize

protected final Dimension gridSize

kidCache

protected final BasicMemoryCache kidCache

root

protected final ImageInterpolator.Cell root

xs

protected final float[] xs

ys

protected final float[] ys
Constructor Detail

ImageInterpolator

public ImageInterpolator(Dimension gridSize,
                         float[] xs,
                         float[] ys,
                         int depth,
                         int cellSize)
Method Detail

checkContainment

protected ImageInterpolator.ContainingCell checkContainment(float x,
                                                            float y,
                                                            ImageInterpolator.Cell cell)

computeBilinearCoordinates

protected double[] computeBilinearCoordinates(float x,
                                              float y,
                                              ImageInterpolator.Cell cell)

findContainingCell

public ImageInterpolator.ContainingCell findContainingCell(float x,
                                                           float y)

findContainingCell

protected ImageInterpolator.ContainingCell findContainingCell(ImageInterpolator.Cell cell,
                                                              float x,
                                                              float y)

getFieldIndices

protected int[] getFieldIndices(ImageInterpolator.Cell cell)

makeRootCell

protected ImageInterpolator.Cell makeRootCell(int m0,
                                              int m1,
                                              int n0,
                                              int n1)

NASA World Wind