|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.dataAccess.dted.DTEDFrame com.bbn.openmap.layer.dted.DTEDSubframedFrame
public class DTEDSubframedFrame
The DTEDSubframedFrame is the representation of the DTED (Digital Terrain Elevation Data) data from a single dted data file. It keeps track of all the attribute information of it's data, and also maintains an array of images (DTEDFrameSubframe) that represent views of the elevation posts.
Nested Class Summary | |
---|---|
protected static class |
DTEDSubframedFrame.ImageData
|
Field Summary | |
---|---|
DTEDFrameColorTable |
colorTable
The colortable used to create the images. |
int |
number_horiz_subframes
The frame image is divided into 200x200 pixel subframes, with a leftover frame at the end. |
int |
number_vert_subframes
The frame image is divided into 200x200 pixel subframes, with a leftover frame at the end. |
DTEDFrameSubframeInfo |
subframeInfo
The subframe presentation attributes. |
DTEDFrameSubframe[][] |
subframes
The image array for the subframes. |
Fields inherited from class com.bbn.openmap.dataAccess.dted.DTEDFrame |
---|
acc, ACC_SIZE, ACC_SR_SIZE, binFile, dsi, DSI_SIZE, elevations, frame_is_valid, path, uhl, UHL_SIZE |
Constructor Summary | |
---|---|
DTEDSubframedFrame(java.lang.String filePath)
Simplest constructor. |
|
DTEDSubframedFrame(java.lang.String filePath,
boolean readWholeFile)
Constructor with colortable and presentation information. |
|
DTEDSubframedFrame(java.lang.String filePath,
DTEDFrameColorTable cTable,
DTEDFrameSubframeInfo info)
Constructor with colortable and presentation information. |
|
DTEDSubframedFrame(java.lang.String filePath,
DTEDFrameColorTable cTable,
DTEDFrameSubframeInfo info,
boolean readWholeFile)
Constructor with colortable and presentation information. |
Method Summary | |
---|---|
DTEDFrameColorTable |
getColorTable()
|
OMGraphic |
getImage(DTEDFrameSubframeInfo dfsi,
DTEDFrameColorTable colortable,
Projection proj)
If you just want to get an image for the DTEDFrame, then call this. |
OMGraphic |
getImage(Projection proj)
If you just want to get an image for the DTEDFrame, then call this. |
OMGraphic |
getSubframeImage(DTEDFrameSubframeInfo dfsi,
DTEDFrameColorTable colortable,
Projection proj)
Return the subframe image as described in the DTEDFrameSubframeInfo. |
void |
initSubframes(int numHorizSubframes,
int numVertSubframes)
Sets the subframe array. |
static void |
main(java.lang.String[] args)
|
void |
setColorTable(DTEDFrameColorTable c_Table)
|
Methods inherited from class com.bbn.openmap.dataAccess.dted.DTEDFrame |
---|
close, dispose, elevationAt, getElevations, getElevations, getIndexesFromLatLons, getOMGrid, interpElevationAt, read, readDataRecord, readDataRecords, reopen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public DTEDFrameColorTable colorTable
public DTEDFrameSubframeInfo subframeInfo
public int number_horiz_subframes
public int number_vert_subframes
public DTEDFrameSubframe[][] subframes
Constructor Detail |
---|
public DTEDSubframedFrame(java.lang.String filePath)
filePath
- complete path to the DTED frame.public DTEDSubframedFrame(java.lang.String filePath, DTEDFrameColorTable cTable, DTEDFrameSubframeInfo info)
filePath
- complete path to the DTED frame.cTable
- the colortable to use for the images.info
- presentation parameters.public DTEDSubframedFrame(java.lang.String filePath, boolean readWholeFile)
filePath
- complete path to the DTED frame.readWholeFile
- If true, all of the elevation data will be read at
load time. If false, elevation post data will be read in per
longitude column depending on the need. False is recommended for
DTEd level 1 and 2.public DTEDSubframedFrame(java.lang.String filePath, DTEDFrameColorTable cTable, DTEDFrameSubframeInfo info, boolean readWholeFile)
filePath
- complete path to the DTED frame.cTable
- the colortable to use for the images.info
- presentation parameters.readWholeFile
- If true, all of the elevation data will be read at
load time. If false, elevation post data will be read in per
longitude column depending on the need. False is recommended for
DTED level 1 and 2.Method Detail |
---|
public void setColorTable(DTEDFrameColorTable c_Table)
public DTEDFrameColorTable getColorTable()
public void initSubframes(int numHorizSubframes, int numVertSubframes)
public OMGraphic getImage(Projection proj)
getImage
in class DTEDFrame
proj
- EqualArc projection to use to create image.
public OMGraphic getImage(DTEDFrameSubframeInfo dfsi, DTEDFrameColorTable colortable, Projection proj)
dfsi
- the DTEDFrameSubframeInfo describing the subframe.colortable
- the colortable to use when building the image.proj
- EqualArc projection to use to create image.
public OMGraphic getSubframeImage(DTEDFrameSubframeInfo dfsi, DTEDFrameColorTable colortable, Projection proj)
dfsi
- the DTEDFrameSubframeInfo describing the subframe.colortable
- the colortable to use when building the image.
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |