public class DTEDCacheHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DTEDFrameColorTable |
colortable
The colors used by the frames to create the images.
|
protected DTEDFrameSubframeInfo |
dfsi
A description of the drawing attributes of the images.
|
static int |
FRAME_CACHE_SIZE
Default frame cache size.
|
protected DTEDFrameCache |
frameCache
The real frame cache.
|
protected int |
frameCacheSize |
protected java.lang.String[] |
paths
The DTED level 0, 1 directory paths.
|
static int |
SF_PIXEL_HW
Subframe pixel height and width.
|
Constructor and Description |
---|
DTEDCacheHandler() |
DTEDCacheHandler(java.lang.String[] dataPaths,
int numColors,
int opaque) |
DTEDCacheHandler(java.lang.String[] dataPaths,
int numColors,
int opaqueness,
int subframe_cache_size) |
Modifier and Type | Method and Description |
---|---|
DTEDFrameColorTable |
getColortable()
Get the colortable being used to color the frames.
|
int |
getElevation(float lat,
float lon)
Get an elevation at a point.
|
int |
getFrameCacheSize()
Get the limit imposed on the number of frames used in the cache.
|
OMGraphic |
getNextImage(Projection proj)
Returns the next OMRaster image.
|
void |
setColortable(DTEDFrameColorTable colorT)
Set the DTEDFrameColorTable used by the handler.
|
void |
setFrameCacheSize(int size)
Normally, the cache grows and shrinks as appropriate according to the
number of frames needed to cover the screen.
|
void |
setProjection(EqualArc proj)
The method to call to let the cache handler know what the projection
looks like so it can figure out which frames (and subframes) will be
needed.
|
void |
setProjection(Projection proj,
double lat1,
double lon1,
double lat2,
double lon2)
The method to call to let the cache handler know what the projection
looks like so it can figure out which frames (and subframes) will be
needed.
|
void |
setSubframeInfo(DTEDFrameSubframeInfo new_dfsi)
Setting the subframe attributes.
|
public static final int FRAME_CACHE_SIZE
public static final int SF_PIXEL_HW
protected java.lang.String[] paths
protected DTEDFrameCache frameCache
protected int frameCacheSize
protected DTEDFrameColorTable colortable
protected DTEDFrameSubframeInfo dfsi
public DTEDCacheHandler()
public DTEDCacheHandler(java.lang.String[] dataPaths, int numColors, int opaque)
public DTEDCacheHandler(java.lang.String[] dataPaths, int numColors, int opaqueness, int subframe_cache_size)
public void setFrameCacheSize(int size)
public int getFrameCacheSize()
public int getElevation(float lat, float lon)
public void setSubframeInfo(DTEDFrameSubframeInfo new_dfsi)
public void setProjection(EqualArc proj)
proj
- the EqualArc projection of the screen.public void setProjection(Projection proj, double lat1, double lon1, double lat2, double lon2)
proj
- the EqualArc projection of the screen.lat1
- latitude of the upper left corner of the window, in decimal
degrees.lon1
- longitude of the upper left corner of the window, in decimal
degrees.lat2
- latitude of the lower right corner of the window, in decimal
degrees.lon2
- longitude of the lower right corner of the window, in decimal
degrees.public OMGraphic getNextImage(Projection proj)
proj
- current projection.public DTEDFrameColorTable getColortable()
public void setColortable(DTEDFrameColorTable colorT)
colorT
- Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details