|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.omGraphics.geom.BasicGeometry
com.bbn.openmap.omGraphics.geom.PolygonGeometry
com.bbn.openmap.omGraphics.geom.PolygonGeometry.XY
com.bbn.openmap.omGraphics.geom.PolygonGeometry.Offset
Nested Class Summary |
Nested classes inherited from class com.bbn.openmap.omGraphics.geom.PolygonGeometry |
PolygonGeometry.LL, PolygonGeometry.Offset, PolygonGeometry.XY |
Field Summary | |
protected int |
coordMode
Type of offset. |
static int |
COORDMODE_ORIGIN
Translation offsets. |
static int |
COORDMODE_PREVIOUS
Delta offsets. |
protected float |
lat
The latitude of the starting point of the poly. |
protected float |
lon
The longitude of the starting point of the poly. |
Fields inherited from class com.bbn.openmap.omGraphics.geom.PolygonGeometry.XY |
xs, ys |
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.Offset(float latPoint,
float lonPoint,
int[] xypoints,
int cMode)
Create an x/y OMPoly at an offset from lat/lon. |
|
PolygonGeometry.Offset(float latPoint,
float lonPoint,
int[] xPoints,
int[] yPoints,
int cMode)
Create an x/y OMPoly at an offset from lat/lon. |
Method Summary | |
boolean |
generate(Projection proj)
Prepare the geometry for rendering. |
int |
getCoordMode()
Type of offset. |
float |
getLat()
Get the latitude of the offset point, in decimal degrees. |
float |
getLon()
Get the longitude of the offset point, in decimal degrees. |
int |
getRenderType()
Return the render type. |
void |
setCoordMode(int coordMode)
Type of offset. |
void |
setLat(float lat)
Set the latitude of the offset point, in decimal degrees. |
void |
setLocation(float latPoint,
float lonPoint,
int units,
int[] xypoints)
Set the location based on a latitude, longitude, and some xy points. |
void |
setLocation(float latPoint,
float lonPoint,
int units,
int[] xPoints,
int[] yPoints)
Set the location based on a latitude, longitude, and some xy points. |
void |
setLon(float lon)
Set the longitude of the offset point, in decimal degrees. |
Methods inherited from class com.bbn.openmap.omGraphics.geom.PolygonGeometry.XY |
createShape, getXs, getYs, setLocation, setLocation, setXs, setYs |
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 |
public static final int COORDMODE_ORIGIN
public static final int COORDMODE_PREVIOUS
protected float lat
protected float lon
protected int coordMode
COORDMODE_ORIGIN
,
COORDMODE_PREVIOUS
Constructor Detail |
public PolygonGeometry.Offset(float latPoint, float lonPoint, int[] xypoints, int cMode)
latPoint
- latitude in decimal degreeslonPoint
- longitude in decimal degreesxypoints
- int[] of x,y pairscMode
- offset coordinate modepublic PolygonGeometry.Offset(float latPoint, float lonPoint, int[] xPoints, int[] yPoints, int cMode)
latPoint
- latitude in decimal degreeslonPoint
- longitude in decimal degreesxPoints
- int[] of x coordinatesyPoints
- int[] of y coordinatescMode
- offset coordinate modeMethod Detail |
public void setLocation(float latPoint, float lonPoint, int units, int[] xypoints)
latPoint
- latitude in decimal degrees.lonPoint
- longitude in decimal degrees.units
- radians or decimal degrees. Use
OMGraphic.RADIANS or OMGraphic.DECIMAL_DEGREESxypoints
- array of x/y points, arranged x, y, x, y,
etc.public void setLocation(float latPoint, float lonPoint, int units, int[] xPoints, int[] yPoints)
latPoint
- latitude in decimal degreeslonPoint
- longitude in decimal degreesunits
- radians or decimal degrees. Use
OMGraphic.RADIANS or OMGraphic.DECIMAL_DEGREESxPoints
- int[] of x coordinatesyPoints
- int[] of y coordinatespublic void setCoordMode(int coordMode)
COORDMODE_ORIGIN
,
COORDMODE_PREVIOUS
public int getCoordMode()
COORDMODE_ORIGIN
,
COORDMODE_PREVIOUS
public void setLat(float lat)
public float getLat()
public void setLon(float lon)
public float getLon()
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 PolygonGeometry.XY
public int getRenderType()
OMGeometry
getRenderType
in interface OMGeometry
getRenderType
in class PolygonGeometry.XY
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |