|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.geo.GeoPath.Impl
public static class GeoPath.Impl
An implementation of Path that takes an alternating lat/lon array and (optionally) an array of altitudes.
Nested Class Summary | |
---|---|
protected class |
GeoPath.Impl.PointIt
|
protected class |
GeoPath.Impl.SegIt
|
Nested classes/interfaces inherited from interface com.bbn.openmap.geo.GeoPath |
---|
GeoPath.Impl, GeoPath.PointIterator, GeoPath.SegmentIterator |
Field Summary | |
---|---|
protected BoundingCircle |
bc
|
protected java.lang.Object |
id
|
protected int |
length
|
protected GeoArray |
pts
|
Constructor Summary | |
---|---|
protected |
GeoPath.Impl()
|
|
GeoPath.Impl(double[] lls)
Create a path of LatLon pairs. |
|
GeoPath.Impl(double[] lls,
boolean isDegrees)
Create a path of LatLon pairs. |
|
GeoPath.Impl(Geo[] geos)
Create a path from Geos. |
|
GeoPath.Impl(GeoArray pnts)
Create a path from a GeoArray. |
Method Summary | |
---|---|
BoundingCircle |
getBoundingCircle()
compute a point and radius around the extent. |
java.lang.Object |
getID()
return an object that this extent represents. |
java.lang.Object |
getPathID()
Deprecated. use getID() instead. |
protected java.lang.Object |
getPointID(int i)
Callback for the PointIt to find out how the GeoPath wants the points IDed. |
GeoArray |
getPoints()
Return the points that make up the path as an array of Geo object. |
protected java.lang.Object |
getSegID(int i)
Callback for the SegIt to find out how the GeoPath wants the segment IDed. |
boolean |
isSegmentNear(GeoSegment s,
double epsilon)
Does the segment s come within epsilon (in radians) of us? |
int |
length()
|
GeoPath.PointIterator |
pointIterator()
|
GeoPath.SegmentIterator |
segmentIterator()
|
void |
setID(java.lang.Object id)
|
protected void |
setPoints(Geo[] points)
Method for subclasses to set pts and length of Geos. |
void |
setPoints(GeoArray ga)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GeoArray pts
protected int length
protected java.lang.Object id
protected transient BoundingCircle bc
Constructor Detail |
---|
protected GeoPath.Impl()
public GeoPath.Impl(double[] lls)
lls
- alternating lat/lon in decimal degrees.public GeoPath.Impl(double[] lls, boolean isDegrees)
lls
- alternating lat/lon values.isDegrees
- true if lat/lon are in degrees, false if in radians.public GeoPath.Impl(GeoArray pnts)
pnts
- public GeoPath.Impl(Geo[] geos)
geos
- Method Detail |
---|
public void setPoints(GeoArray ga)
public GeoArray getPoints()
GeoPath
getPoints
in interface GeoPath
protected void setPoints(Geo[] points)
points
- public boolean isSegmentNear(GeoSegment s, double epsilon)
GeoPath
isSegmentNear
in interface GeoPath
public BoundingCircle getBoundingCircle()
GeoExtent
getBoundingCircle
in interface GeoExtent
public int length()
length
in interface GeoPath
public GeoPath.SegmentIterator segmentIterator()
segmentIterator
in interface GeoPath
public GeoPath.PointIterator pointIterator()
pointIterator
in interface GeoPath
protected java.lang.Object getSegID(int i)
i
- The index of the segment in question.
protected java.lang.Object getPointID(int i)
i
- The index of the point in question.
public java.lang.Object getPathID()
public java.lang.Object getID()
GeoExtent
getID
in interface GeoExtent
public void setID(java.lang.Object id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |