|
||||||||||
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.OMGraphicAdapter
com.bbn.openmap.omGraphics.OMAbstractLine
com.bbn.openmap.omGraphics.OMPoly
com.bbn.openmap.omGraphics.OMSpline
public class 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, rawllpts, units, xs, ys |
Fields inherited from class com.bbn.openmap.omGraphics.OMAbstractLine |
---|
arrowhead, nsegs, xpoints, ypoints |
Fields inherited from class com.bbn.openmap.omGraphics.OMGraphicAdapter |
---|
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
---|
attributes, lineType, needToRegenerate, shape, visible |
Constructor Summary | |
---|---|
OMSpline()
Default constructor. |
|
OMSpline(double[] llPoints,
int units,
int lType)
Create an OMSpline from a list of float lat/lon pairs. |
|
OMSpline(double[] llPoints,
int units,
int lType,
int nsegs)
Create an OMSpline from a list of float lat/lon pairs. |
|
OMSpline(double latPoint,
double lonPoint,
int[] xypoints,
int cMode)
Create an x/y OMSpline at an offset from lat/lon. |
|
OMSpline(double latPoint,
double 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, getIndexOfFirstNodeOfSegIntersect, getLat, getLatLonArray, getLatLonArrayCopy, getLon, getNumSegs, getRawllpts, getShape, getUnits, getXs, getYs, insertRadians, isGeometryClosed, isPolygon, main, render, restore, setCoordMode, setDoShapes, setFillPaint, setIsPolygon, setLat, setLocation, setLocation, setLocation, setLocation, setLocation, setLon, setNumSegs, setXs, setYs, shouldRenderFill |
Methods inherited from class com.bbn.openmap.omGraphics.OMAbstractLine |
---|
addArrowHead, addArrowHead, addArrowHead, addArrowHead, createArrowHeads, getArrowDirectionType, getArrowHead, getArrowLocation, getWingLength, getWingTip, hasArrowHead, restore, setArrowHead |
Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
---|
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, 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, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
Constructor Detail |
---|
public OMSpline()
public OMSpline(double[] 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(double[] 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(double latPoint, double lonPoint, int[] xypoints, int cMode)
latPoint
- latitude in decimal degreeslonPoint
- longitude in decimal degreesxypoints
- int[] of x,y pairscMode
- offset coordinate modepublic OMSpline(double latPoint, double 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 |