Package gov.nasa.worldwind.util
Class ImageInterpolator.Cell
- java.lang.Object
-
- gov.nasa.worldwind.util.ImageInterpolator.Cell
-
- All Implemented Interfaces:
Cacheable
- Direct Known Subclasses:
GeographicImageInterpolator.GeographicCell
- Enclosing class:
- ImageInterpolator
protected static class ImageInterpolator.Cell extends java.lang.Object implements Cacheable
-
-
Constructor Summary
Constructors Constructor Description Cell(int m0, int m1, int n0, int n1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(int numLevels, int cellSize)
void
computeBounds(java.awt.Dimension dim, float[] xs, float[] ys)
protected void
computeExtremesFromChildren()
protected void
computeExtremesFromLocations(java.awt.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)
-
-
-
Field Detail
-
m0
protected final int m0
-
m1
protected final int m1
-
n0
protected final int n0
-
n1
protected final int n1
-
minx
protected float minx
-
maxx
protected float maxx
-
miny
protected float miny
-
maxy
protected float maxy
-
children
protected ImageInterpolator.Cell[] children
-
-
Method Detail
-
makeChildCell
protected ImageInterpolator.Cell makeChildCell(int m0, int m1, int n0, int n1)
-
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 interfaceCacheable
- Returns:
- this
Cacheable
object's size in bytes
-
build
public void build(int numLevels, int cellSize)
-
split
public ImageInterpolator.Cell[] split(int mm0, int mm1, int nn0, int nn1)
-
intersects
public boolean intersects(float x, float y)
-
computeBounds
public void computeBounds(java.awt.Dimension dim, float[] xs, float[] ys)
-
computeExtremesFromLocations
protected void computeExtremesFromLocations(java.awt.Dimension dim, float[] xs, float[] ys)
-
computeExtremesFromChildren
protected void computeExtremesFromChildren()
-
-