|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bbn.openmap.omGraphics.geom.BasicGeometry | +--com.bbn.openmap.omGraphics.geom.PolygonGeometry | +--com.bbn.openmap.omGraphics.geom.PolygonGeometry.LL
Nested Class Summary |
Nested classes inherited from class com.bbn.openmap.omGraphics.geom.PolygonGeometry |
PolygonGeometry.LL, PolygonGeometry.Offset, PolygonGeometry.XY |
Field Summary | |
protected int |
nsegs
Number of segments to draw (used only for LINETYPE_GREATCIRCLE or LINETYPE_RHUMB lines). |
protected float[] |
rawllpts
raw float lats and lons stored internally in radians. |
Fields inherited from class com.bbn.openmap.omGraphics.geom.PolygonGeometry |
doShapes, isPolygon, xpoints, ypoints |
Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible |
Constructor Summary | |
PolygonGeometry.LL(float[] llPoints,
int units,
int lType)
Create an LL PolygonGeometry from a list of float lat/lon pairs. |
|
PolygonGeometry.LL(float[] llPoints,
int units,
int lType,
int nsegs)
Create an OMPoly from a list of float lat/lon pairs. |
Method Summary | |
protected void |
createShape()
Since OMPoly has the option to not create a Shape, this method is here to create it if it is asked for. |
boolean |
generate(Projection proj)
Prepare the geometry for rendering. |
float[] |
getLatLonArray()
Return the rawllpts array. |
int |
getNumSegs()
Get the number of subsegments for each segment in the poly. |
int |
getRenderType()
Return the render type. |
void |
setLocation(float[] llPoints,
int units)
Set an OMPoly from a list of float lat/lon pairs. |
void |
setNumSegs(int nsegs)
Set the number of subsegments for each segment in the poly. |
Methods inherited from class com.bbn.openmap.omGraphics.geom.PolygonGeometry |
distance, getDoShapes, getIsPolygon, getShape, setDoShapes, setIsPolygon |
Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, deselect, distanceToEdge, draw, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getLineType, getNeedToRegenerate, isRenderable, isVisible, putAttribute, regenerate, removeAttribute, replaceAppObjectWithAttributeMap, select, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
clearAttributes, contains, deselect, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, isRenderable, isVisible, putAttribute, regenerate, removeAttribute, select, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
Field Detail |
protected float[] rawllpts
protected int nsegs
Constructor Detail |
public PolygonGeometry.LL(float[] llPoints, int units, int lType, int nsegs)
NOTES:
llPoints
- array of lat/lon points, arranged lat, lon,
lat, lon, etc.units
- radians or decimal degrees. Use
OMGraphic.RADIANS or OMGraphic.DECIMAL_DEGREESlType
- line type, from a list defined in OMGraphic.nsegs
- number of segment points (only for
LINETYPE_GREATCIRCLE or LINETYPE_RHUMB line types,
and if < 1, this value is generated internally)public PolygonGeometry.LL(float[] llPoints, int units, int lType)
NOTES:
llPoints
- array of lat/lon points, arranged lat, lon,
lat, lon, etc.units
- radians or decimal degrees. Use
OMGraphic.RADIANS or OMGraphic.DECIMAL_DEGREESlType
- line type, from a list defined in OMGraphic.Method Detail |
public void setLocation(float[] llPoints, int units)
NOTES:
llPoints
- array of lat/lon points, arranged lat, lon,
lat, lon, etc.units
- radians or decimal degrees. Use
OMGraphic.RADIANS or OMGraphic.DECIMAL_DEGREESpublic float[] getLatLonArray()
public void setNumSegs(int nsegs)
nsegs
- number of segment pointspublic int getNumSegs()
public boolean generate(Projection proj)
OMGeometry
render()
! If a vector graphic has
lat-lon components, then we project these vertices into x-y
space. For raster graphics we prepare in a different fashion.
If the generate is unsuccessful, it's usually because of some
oversight, (for instance if proj
is null), and
if debugging is enabled, a message may be output to the
controlling terminal.
generate
in interface OMGeometry
generate
in class BasicGeometry
proj
- Projection
OMGeometry.regenerate(com.bbn.openmap.proj.Projection)
protected void createShape()
PolygonGeometry
createShape
in class PolygonGeometry
public int getRenderType()
OMGeometry
getRenderType
in interface OMGeometry
getRenderType
in class BasicGeometry
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |