NASA World Wind

gov.nasa.worldwind.util
Class ImageInterpolator.Cell

java.lang.Object
  extended by gov.nasa.worldwind.util.ImageInterpolator.Cell
All Implemented Interfaces:
Cacheable
Direct Known Subclasses:
GeographicImageInterpolator.GeographicCell
Enclosing class:
ImageInterpolator

protected static class ImageInterpolator.Cell
extends Object
implements Cacheable


Field Summary
protected  ImageInterpolator.Cell[] children
           
protected  int m0
           
protected  int m1
           
protected  float maxx
           
protected  float maxy
           
protected  float minx
           
protected  float miny
           
protected  int n0
           
protected  int n1
           
 
Constructor Summary
ImageInterpolator.Cell(int m0, int m1, int n0, int n1)
           
 
Method Summary
 void build(int numLevels, int cellSize)
           
 void computeBounds(Dimension dim, float[] xs, float[] ys)
           
protected  void computeExtremesFromChildren()
           
protected  void computeExtremesFromLocations(Dimension dim, float[] xs, float[] ys)
           
 long getSizeInBytes()
          Retrieves the approximate size of this object in bytes.
 boolean intersects(float x, float y)
           
protected  ImageInterpolator.Cell makeChildCell(int m0, int m1, int n0, int n1)
           
 ImageInterpolator.Cell[] split(int mm0, int mm1, int nn0, int nn1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected ImageInterpolator.Cell[] children

m0

protected final int m0

m1

protected final int m1

maxx

protected float maxx

maxy

protected float maxy

minx

protected float minx

miny

protected float miny

n0

protected final int n0

n1

protected final int n1
Constructor Detail

ImageInterpolator.Cell

public ImageInterpolator.Cell(int m0,
                              int m1,
                              int n0,
                              int n1)
Method Detail

build

public void build(int numLevels,
                  int cellSize)

computeBounds

public void computeBounds(Dimension dim,
                          float[] xs,
                          float[] ys)

computeExtremesFromChildren

protected void computeExtremesFromChildren()

computeExtremesFromLocations

protected void computeExtremesFromLocations(Dimension dim,
                                            float[] xs,
                                            float[] ys)

getSizeInBytes

public long getSizeInBytes()
Description copied from interface: Cacheable
Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size for smaller objects, but use approximate values for objects that include such large components that the approximation would produce an error so small that the extra computation would be wasteful.

Specified by:
getSizeInBytes in interface Cacheable
Returns:
this Cacheable object's size in bytes

intersects

public boolean intersects(float x,
                          float y)

makeChildCell

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

split

public ImageInterpolator.Cell[] split(int mm0,
                                      int mm1,
                                      int nn0,
                                      int nn1)

NASA World Wind