|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.dted.DTEDCacheHandler
public class DTEDCacheHandler
The DTEDCacheHandler controls the real cache of DTED frames. It is managed by the DTEDCacheManager, and the manager asks it for frames. The DTEDCacheHandler goes to its cache for the images, but it also manages the configuration of the frames, and figures out what frames are needed, given a projection.
Field Summary | |
---|---|
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 Summary | |
---|---|
DTEDCacheHandler()
|
|
DTEDCacheHandler(java.lang.String[] dataPaths,
int numColors,
int opaque)
|
|
DTEDCacheHandler(java.lang.String[] dataPaths,
int numColors,
int opaqueness,
int subframe_cache_size)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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)
Method Detail |
---|
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |