|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.rpf.RpfCoverageBox
public class RpfCoverageBox
The RpfCoverageBox describes the coverage provided by a RpfTocEntry within a table of contents file. This should be enough information that lets you tell what you need to ask for the proper subframes to put on a screen.
Field Summary | |
---|---|
java.lang.String |
chartCode
Two letter code for chart type. |
java.awt.Point |
endIndexes
The ending index for coverage subframes. |
int |
entryNumber
The RpfTocEntry index to use to get more information about the frame files to use to get data for a subframe. |
protected java.lang.String |
id
A semi unique string descriptor. |
double |
nw_lat
|
double |
nw_lon
|
float |
percentCoverage
Of the number of subframes that can fit on the screen, the percentage of them that are on the screen. |
float |
scale
The scale of the maps of this coverage rectangle. |
double |
se_lat
|
double |
se_lon
|
java.awt.Point |
startIndexes
The starting index for coverage subframes. |
double |
subframeLatInterval
Lat degrees/subframe; vertInterval*256. |
double |
subframeLonInterval
Lon degrees/subframe; horizInterval*256. |
int |
tocNumber
The TOC number that a frame provider can use to get to the right entry number. |
int |
zone
For the coverage queries, the CADRG zone becomes important. |
Constructor Summary | |
---|---|
RpfCoverageBox()
|
Method Summary | |
---|---|
java.lang.String |
getID()
Modified to make the semi-unique ID more unique. |
float |
getPercentCoverage()
Return the percent coverage of the last queried rectangle. |
int |
horizontalSubframes()
The number of subframes horizontally within this coverage box. |
void |
reset()
Reset the coverage percentage and scale difference. |
int |
setBoundaryHits(double ullat,
double ullon,
double lrlat,
double lrlon)
This is only good for a preliminary check to see of the boundaries are within the range of each other. |
float |
setPercentCoverage(double ullat,
double ullon,
double lrlat,
double lrlon)
The percentage of subframes that actually fill the queried rectangle, compared to the number of subframes that could fit. |
float |
setPercentCoverage(double ullat,
double ullon,
double lrlat,
double lrlon,
java.awt.Point start,
java.awt.Point end)
The percentage of subframes that actually fill the queried rectangle, compared to the number of subframes that could fit. |
java.lang.String |
toString()
|
int |
verticalSubframes()
The number of subframes vertically within this coverage box. |
boolean |
within(float lat,
float lon)
Location within box. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double nw_lat
public double nw_lon
public double se_lat
public double se_lon
public double subframeLatInterval
public double subframeLonInterval
public java.lang.String chartCode
public java.awt.Point startIndexes
public java.awt.Point endIndexes
public int zone
public int tocNumber
public int entryNumber
public float scale
public float percentCoverage
protected java.lang.String id
Constructor Detail |
---|
public RpfCoverageBox()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getID()
public int verticalSubframes()
public int horizontalSubframes()
public int setBoundaryHits(double ullat, double ullon, double lrlat, double lrlon)
public float setPercentCoverage(double ullat, double ullon, double lrlat, double lrlon)
public float setPercentCoverage(double ullat, double ullon, double lrlat, double lrlon, java.awt.Point start, java.awt.Point end)
public float getPercentCoverage()
public boolean within(float lat, float lon)
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |