|
|||||||||||
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.OMGraphic | +--com.bbn.openmap.omGraphics.OMPoly | +--com.bbn.openmap.omGraphics.OMSpline
A splined OMPoly. With RENDERTYPE_LATLON mode, spline is computed on geographic locations, and then projected. Very few changes from OMPoly source code, just needed to calculate the spline before projecting in generate(). Look for HACK in source code ...
Field Summary |
Fields inherited from class com.bbn.openmap.omGraphics.OMPoly |
coordMode, COORDMODE_ORIGIN, COORDMODE_PREVIOUS, doShapes, geometryClosed, isPolygon, lat, lon, nsegs, rawllpts, units, xpoints, xs, ypoints, ys |
Fields inherited from class com.bbn.openmap.omGraphics.OMGraphic |
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible |
Constructor Summary | |
OMSpline()
Default constructor. |
|
OMSpline(float[] llPoints,
int units,
int lType)
Create an OMSpline from a list of float lat/lon pairs. |
|
OMSpline(float[] llPoints,
int units,
int lType,
int nsegs)
Create an OMSpline from a list of float lat/lon pairs. |
|
OMSpline(float latPoint,
float lonPoint,
int[] xypoints,
int cMode)
Create an x/y OMSpline at an offset from lat/lon. |
|
OMSpline(float latPoint,
float lonPoint,
int[] xPoints,
int[] yPoints,
int cMode)
Create an x/y OMSpline at an offset from lat/lon. |
|
OMSpline(int[] xypoints)
Create an OMSpline from a list of xy pairs. |
|
OMSpline(int[] xPoints,
int[] yPoints)
Create an x/y OMSpline. |
Method Summary | |
boolean |
generate(Projection proj)
Prepare the spline for rendering. |
Methods inherited from class com.bbn.openmap.omGraphics.OMPoly |
checkPoints, createShape, distance, getCoordMode, getDoShapes, getLat, getLatLonArray, getLon, getNumSegs, getShape, getXs, getYs, isGeometryClosed, isPolygon, render, setCoordMode, setDoShapes, setFillPaint, setIsPolygon, setLat, setLocation, setLocation, setLocation, setLocation, setLocation, setLon, setNumSegs, setXs, setYs, shouldRenderFill |
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, distanceToEdge, draw, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getLineType, getNeedToRegenerate, isRenderable, isVisible, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
clearAttributes, contains, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible |
Constructor Detail |
public OMSpline()
public OMSpline(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.public OMSpline(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 OMSpline(int[] xypoints)
xypoints
- array of x/y points, arranged x, y, x, y, etc.public OMSpline(int[] xPoints, int[] yPoints)
xPoints
- int[] of x coordinatesyPoints
- int[] of y coordinatespublic OMSpline(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 OMSpline(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 boolean generate(Projection proj)
generate
in interface OMGeometry
generate
in class OMPoly
proj
- Projection
OMGeometry.generate(Projection)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |