public class DTEDSubframedFrame extends DTEDFrame
Modifier and Type | Class and Description |
---|---|
protected static class |
DTEDSubframedFrame.ImageData |
Modifier and Type | Field and Description |
---|---|
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.
|
acc, ACC_SIZE, ACC_SR_SIZE, binFile, dsi, DSI_SIZE, elevations, frame_is_valid, path, uhl, UHL_SIZE
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
close, dispose, elevationAt, getElevations, getElevations, getIndexesFromLatLons, getOMGrid, interpElevationAt, read, readDataRecord, readDataRecords, reopen
public DTEDFrameColorTable colorTable
public DTEDFrameSubframeInfo subframeInfo
public int number_horiz_subframes
public int number_vert_subframes
public DTEDFrameSubframe[][] subframes
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.public void setColorTable(DTEDFrameColorTable c_Table)
public DTEDFrameColorTable getColorTable()
public void initSubframes(int numHorizSubframes, int numVertSubframes)
public OMGraphic getImage(Projection proj)
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)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details