|
|||||||||||
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
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 int |
currentFrameCacheSize
|
protected DTEDFrameSubframeInfo |
dfsi
A description of the drawing attributes of the images. |
protected boolean |
firstImageReturned
|
protected DTEDFrame |
frame
|
static int |
FRAME_CACHE_SIZE
Default frame cache size. |
protected DTEDFrameCache |
frameCache
The real frame cache. |
protected int |
frameCacheSize
|
protected double |
frameDown
|
protected double |
frameLat
|
protected double |
frameLeft
|
protected double |
frameLon
|
protected double |
frameRight
|
protected double |
frameUp
|
protected int |
lastSubframeHeight
|
protected int |
lastSubframeWidth
|
protected LatLonPoint |
lrCoords
|
protected boolean |
newframe
|
protected int |
numXSubframes
|
protected int |
numYSubframes
|
protected java.lang.String[] |
paths
The DTED level 0, 1 directory paths. |
protected java.lang.String[] |
paths2
The DTED level 2 directory paths. |
static int |
SF_PIXEL_HW
Subframe pixel height and width. |
protected int |
subx
|
protected int |
suby
|
protected LatLonPoint |
ulCoords
|
protected double |
xPixInterval
|
protected double |
yPixInterval
|
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)
|
|
DTEDCacheHandler(java.lang.String[] dataPaths,
java.lang.String[] data2Paths,
int numColors,
int opaque)
|
|
DTEDCacheHandler(java.lang.String[] dataPaths,
java.lang.String[] data2Paths,
int numColors,
int opaqueness,
int subframe_cache_size)
|
Method Summary | |
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. |
OMRaster |
getNextImage()
Returns the next OMRaster image. |
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(EqualArc proj,
float lat1,
float lon1,
float lat2,
float 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 java.lang.String[] paths2
protected DTEDFrameCache frameCache
protected int frameCacheSize
protected DTEDFrameColorTable colortable
protected LatLonPoint ulCoords
protected LatLonPoint lrCoords
protected double frameUp
protected double frameDown
protected double frameLeft
protected double frameRight
protected double xPixInterval
protected double yPixInterval
protected int numXSubframes
protected int numYSubframes
protected int lastSubframeWidth
protected int lastSubframeHeight
protected int currentFrameCacheSize
protected boolean firstImageReturned
protected double frameLon
protected double frameLat
protected int subx
protected int suby
protected boolean newframe
protected DTEDFrame frame
protected DTEDFrameSubframeInfo dfsi
Constructor Detail |
public DTEDCacheHandler()
public DTEDCacheHandler(java.lang.String[] dataPaths, int numColors, int opaque)
public DTEDCacheHandler(java.lang.String[] dataPaths, java.lang.String[] data2Paths, int numColors, int opaque)
public DTEDCacheHandler(java.lang.String[] dataPaths, int numColors, int opaqueness, int subframe_cache_size)
public DTEDCacheHandler(java.lang.String[] dataPaths, java.lang.String[] data2Paths, 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(EqualArc proj, float lat1, float lon1, float lat2, float 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 OMRaster getNextImage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |