public class RpfCoverageBox
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
RpfCoverageBox() |
Modifier and Type | Method and Description |
---|---|
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(float ullat,
float ullon,
float lrlat,
float lrlon)
This is only good for a preliminary check to see of the
boundaries are within the range of each other.
|
float |
setPercentCoverage(float ullat,
float ullon,
float lrlat,
float lrlon)
The percentage of subframes that actually fill the queried
rectangle, compared to the number of subframes that could fit.
|
float |
setPercentCoverage(float ullat,
float ullon,
float lrlat,
float 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.
|
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
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(float ullat, float ullon, float lrlat, float lrlon)
public float setPercentCoverage(float ullat, float ullon, float lrlat, float lrlon)
public float setPercentCoverage(float ullat, float ullon, float lrlat, float lrlon, java.awt.Point start, java.awt.Point end)
public float getPercentCoverage()
public boolean within(float lat, float lon)
public void reset()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details