gov.nasa.worldwind.render
Class ConformingCircularPolygon
java.lang.Object
gov.nasa.worldwind.render.ConformingShape
gov.nasa.worldwind.render.ConformingPolygon
gov.nasa.worldwind.render.ConformingEllipticalPolygon
gov.nasa.worldwind.render.ConformingCircularPolygon
- All Implemented Interfaces:
- Disposable, MeasurableArea, MeasurableLength, Movable, Renderable, Restorable
public class ConformingCircularPolygon
- extends ConformingEllipticalPolygon
This class provides a convenient way to create a polygon inscribed in a circle. Its
interface is based on the SurfaceCircle class. The
constructor takes the geometric parameters of a circle along with the desired number
of polygon edges. Using a suficiently large number of edges results in a very good
approximation to a circle, BUT this is not recommended. If a true circle is actually
desired, you should use ConformingCircle which is
optimized for defining and manipulating circles. While arbitrarily large values
for number of polygon edges (i.e., "int intervals") works with this class, as a general rule of
thumb, you should carefully consider before using more than 10 or 15.
| Methods inherited from class gov.nasa.worldwind.render.ConformingEllipticalPolygon |
doGetRestorableState, doRestoreState, getCenter, getIntervals, getOrientation, getSemiMajorAxisLength, getSemiMinorAxisLength, makePositions, setAxisLengths, setCenter, setIntervals, setOrientation |
| Methods inherited from class gov.nasa.worldwind.render.ConformingPolygon |
getArea, getHeight, getLength, getPerimeter, getReferencePosition, getWidth, invalidateCache, moveTo, renderBoundary, renderInterior, setOriginalVertices |
| Methods inherited from class gov.nasa.worldwind.render.ConformingShape |
dispose, getBorderColor, getBorderWidth, getInteriorColor, getRestorableState, getUniqueSerialNumber, getUseFrustumCull, isAntiAlias, isDrawBorder, isDrawInterior, isExpired, move, render, restoreState, setAntiAlias, setBorderColor, setBorderWidth, setDrawBorder, setDrawInterior, setInteriorColor, setUseFrustumCull, sizeInBytesOf, updateExpiryCriteria |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConformingCircularPolygon
public ConformingCircularPolygon(Globe globe,
LatLon center,
double radius,
int intervals)
ConformingCircularPolygon
public ConformingCircularPolygon(Globe globe,
LatLon center,
double radius,
int intervals,
Color fillColor,
Color borderColor)
getRadius
public double getRadius()
setRadius
public void setRadius(double radius)