|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.vpf.DcwRecordFile com.bbn.openmap.layer.vpf.PrimitiveTable com.bbn.openmap.layer.vpf.EdgeTable
public class EdgeTable
Read VPF format edge tables to generate polyline graphics for OpenMap.
Field Summary |
---|
Fields inherited from class com.bbn.openmap.layer.vpf.PrimitiveTable |
---|
covtable, idColumn, tile |
Fields inherited from class com.bbn.openmap.layer.vpf.DcwRecordFile |
---|
byteorder, columnInfo, documentationFileName, filename, ID_COLUMN_NAME, inputFile, MSBFirst, recordLength, tableDescription, tablename, vli |
Constructor Summary | |
---|---|
EdgeTable(CoverageTable cov,
TileDirectory tile)
Construct an EdgeTable object for a tile of a coverage. |
Method Summary | |
---|---|
OMGraphic |
drawFeature(VPFFeatureWarehouse warehouse,
double dpplat,
double dpplon,
LatLonPoint ll1,
LatLonPoint ll2,
java.util.List<java.lang.Object> edge,
java.lang.String featureType,
int primID)
Use the warehouse to create a graphic from the edge feature, if you already have the line from the edgetable. |
void |
drawTile(VPFGraphicWarehouse warehouse,
double dpplat,
double dpplon,
LatLonPoint ll1,
LatLonPoint ll2)
Parse the edge records for this tile, calling warehouse.createEdge once for each record. |
CoordFloatString |
getCoordinates(java.util.List<java.lang.Object> l)
Get the value of the coordinates column |
CoverageTable |
getCoverageTable()
get the coverage table that this edge is in |
int |
getEndNode(java.util.List<java.lang.Object> l)
Get the value of the end_node column |
int |
getID(java.util.List<java.lang.Number> l)
Get the value of the ID column |
TilingAdapter |
getLeftEdgeTilingAdapter()
Get the TilingAdapter for the left_edge column |
TilingAdapter |
getLeftFaceTilingAdapter()
Get the TilingAdapter for the left_face column |
TilingAdapter |
getRightEdgeTilingAdapter()
Get the TilingAdapter for the right_edge column |
TilingAdapter |
getRightFaceTilingAdapter()
Get the TilingAdapter for the right_face column |
int |
getStartNode(java.util.List<java.lang.Object> l)
Get the value of the start_node column |
int |
topologyLevel()
get the topology level of the edge table |
Methods inherited from class com.bbn.openmap.layer.vpf.PrimitiveTable |
---|
getTileDirectory |
Methods inherited from class com.bbn.openmap.layer.vpf.DcwRecordFile |
---|
close, finalize, finishInitialization, getColumnCount, getColumnInfo, getColumnName, getDescription, getDocumentationFilename, getRecordCount, getRecordLength, getRow, getRow, getTableFile, getTableName, getTilingAdapter, getTilingAdapter, getTilingAdapter, lookupSchema, lookupSchema, main, parseAllRowsAndPrintSome, parseRow, parseRow, parseSomeRowsAndPrint, printSchema, reopen, seekToRow, whatColumn |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EdgeTable(CoverageTable cov, TileDirectory tile) throws FormatException
cov
- the coverage table that this tile is part oftile
- the tile to parse
FormatException
- a problem was encountered initializing this tileMethod Detail |
---|
public final int getID(java.util.List<java.lang.Number> l)
getID
in class PrimitiveTable
l
- the list to retrieve the value frompublic final int getStartNode(java.util.List<java.lang.Object> l)
l
- the list to retrieve the value frompublic final int getEndNode(java.util.List<java.lang.Object> l)
l
- the list to retrieve the value frompublic final TilingAdapter getRightFaceTilingAdapter()
public final TilingAdapter getLeftFaceTilingAdapter()
public final TilingAdapter getRightEdgeTilingAdapter()
public final TilingAdapter getLeftEdgeTilingAdapter()
public final CoordFloatString getCoordinates(java.util.List<java.lang.Object> l)
l
- the list to retrieve the value frompublic int topologyLevel()
public CoverageTable getCoverageTable()
getCoverageTable
in class PrimitiveTable
public void drawTile(VPFGraphicWarehouse warehouse, double dpplat, double dpplon, LatLonPoint ll1, LatLonPoint ll2)
drawTile
in class PrimitiveTable
warehouse
- the warehouse used for createEdge calls (must not be
null)dpplat
- threshold for latitude thinning (passed to warehouse)dpplon
- threshold for longitude thinngin (passed to warehouse)ll1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)VPFGraphicWarehouse.createEdge(com.bbn.openmap.layer.vpf.CoverageTable, com.bbn.openmap.layer.vpf.EdgeTable, java.util.List, com.bbn.openmap.proj.coords.LatLonPoint, com.bbn.openmap.proj.coords.LatLonPoint, double, double, com.bbn.openmap.layer.vpf.CoordFloatString)
public OMGraphic drawFeature(VPFFeatureWarehouse warehouse, double dpplat, double dpplon, LatLonPoint ll1, LatLonPoint ll2, java.util.List<java.lang.Object> edge, java.lang.String featureType, int primID)
drawFeature
in class PrimitiveTable
warehouse
- the warehouse used for createEdge calls (must not be
null)dpplat
- threshold for latitude thinning (passed to warehouse)dpplon
- threshold for longitude thinngin (passed to warehouse)ll1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)edge
- list containing the EdgeTable row contents.featureType
- the name of the feature. The warehouse may want to do
some intelligent rendering.primID
- the primitive ID of the feature, in order to gather attributes if
necessary.VPFGraphicWarehouse.createEdge(com.bbn.openmap.layer.vpf.CoverageTable, com.bbn.openmap.layer.vpf.EdgeTable, java.util.List, com.bbn.openmap.proj.coords.LatLonPoint, com.bbn.openmap.proj.coords.LatLonPoint, double, double, com.bbn.openmap.layer.vpf.CoordFloatString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |