Package gov.nasa.worldwind.render
Class SurfaceCircle
- java.lang.Object
-
- All Implemented Interfaces:
AVList
,Draggable
,MessageListener
,ExtentHolder
,MeasurableArea
,MeasurableLength
,Movable
,Movable2
,Attributable
,Highlightable
,OrderedRenderable
,PreRenderable
,Renderable
,SurfaceObject
,SurfaceRenderable
,SurfaceShape
,Restorable
,Combinable
,WWObject
,java.beans.PropertyChangeListener
,java.util.EventListener
public class SurfaceCircle extends SurfaceEllipse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
AbstractSurfaceShape.GeometryKey, AbstractSurfaceShape.SurfaceShapeStateKey
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
AbstractSurfaceObject.CacheEntry, AbstractSurfaceObject.SurfaceObjectStateKey
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.render.SurfaceEllipse
center, DEFAULT_NUM_INTERVALS, heading, majorRadius, MIN_NUM_INTERVALS, minorRadius
-
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
activeAttrs, activeGeometry, activeOutlineGeometry, areaMeasurer, areaMeasurerLastModifiedTime, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_INTERIOR_MATERIAL, DEFAULT_MAX_EDGE_INTERVALS, DEFAULT_MIN_EDGE_INTERVALS, DEFAULT_OUTLINE_MATERIAL, DEFAULT_PATH_TYPE, DEFAULT_TEXELS_PER_EDGE_INTERVAL, defaultAttrs, dragEnabled, draggableSupport, geometryCache, highlightAttrs, highlighted, maxEdgeIntervals, minEdgeIntervals, normalAttrs, pathType, sectorCache, stackHandler, texelsPerEdgeInterval, texture, vertexBuffer
-
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
delegateOwner, drawBoundingSectors, enableBatchPicking, extentCache, lastModifiedTime, nextUniqueId, pickLayer, pickSupport, pickTileBuilder, uniqueId, visible
-
-
Constructor Summary
Constructors Constructor Description SurfaceCircle()
Constructs a new surface circle with the default attributes, default center location and default radius.SurfaceCircle(LatLon center, double radius)
Constructs a new surface circle with the default attributes, the specified center location and radius (in meters).SurfaceCircle(LatLon center, double radius, int intervals)
Constructs a new surface circle with the default attributes, the specified center location, radius (in meters), and initial number of geometry intervals.SurfaceCircle(ShapeAttributes normalAttrs)
Constructs a new surface circle with the specified normal (as opposed to highlight) attributes, default center location, and default radius.SurfaceCircle(ShapeAttributes normalAttrs, LatLon center, double radius)
Constructs a new surface circle with the specified normal (as opposed to highlight) attributes, the specified center location, and radius (in meters).SurfaceCircle(ShapeAttributes normalAttrs, LatLon center, double radius, int intervals)
Constructs a new surface circle with the specified normal (as opposed to highlight) attributes, the specified center location, radius (in meters), and initial number of geometry intervals.SurfaceCircle(SurfaceCircle source)
Creates a shallow copy of the specified source shape.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getRadius()
void
setRadius(double radius)
-
Methods inherited from class gov.nasa.worldwind.render.SurfaceEllipse
computeLocations, computeNumEdgeIntervals, computeNumIntervals, createGeometry, doGetRestorableState, doMoveTo, doMoveTo, doRestoreState, getCenter, getHeading, getIntervals, getLocations, getMajorRadius, getMinorRadius, getReferencePosition, getStateKey, legacyRestoreState, setCenter, setHeading, setIntervals, setMajorRadius, setMinorRadius, setRadii
-
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
addIntermediateLocations, applyInteriorState, applyInteriorTextureState, applyModelviewTransform, applyOutlineState, beginDrawing, canContainPole, clearCaches, combine, combineBounds, combineContours, computeEdgeIntervalsPerDegree, computeEdgeIntervalsPerDegree, computeSectors, computeSectors, containsPole, createActiveAttributes, createGeometry, createGeometryKey, cutAlongDateLine, determineActiveAttributes, determineActiveGeometry, doCombineContour, doCombineContours, doDrag, doDrawGeographic, doTessellateInterior, drag, drawGeographic, drawInterior, drawLineStrip, drawOutline, endDrawing, export, exportAsKML, generateIntermediateLocations, getActiveAttributes, getActiveGeometry, getArea, getArea, getAttributes, getCachedGeometry, getExtent, getHeight, getHighlightAttributes, getInteriorTexture, getLength, getMinAndMaxEdgeIntervals, getPathType, getPerimeter, getRestorableState, getSectors, getTexelsPerEdgeInterval, getWidth, handleUnsuccessfulInteriorTessellation, isDragEnabled, isExportFormatSupported, isHighlighted, isSectorEmpty, makeOrderedPreRenderable, move, moveTo, moveTo, pathTypeFromString, repeatAroundDateline, restoreState, setAttributes, setDragEnabled, setHighlightAttributes, setHighlighted, setMinAndMaxEdgeIntervals, setPathType, setTexelsPerEdgeInterval, setupAreaMeasurer, tessellateInterior, tessellateInteriorVertices
-
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
buildPickRepresentation, computeExtent, computeExtent, createPickedObject, createPickTileBuilder, drawBoundingSectors, drawOrderedRenderable, drawPickRepresentation, getDelegateOwner, getDistanceFromEye, getExtent, getUniqueId, intersectsFrustum, intersectsPickFrustum, intersectsVisibleSector, isDrawBoundingSectors, isEnableBatchPicking, isVisible, makeOrderedRenderable, nextUniqueId, onShapeChanged, pick, pickBatched, pickOrderedRenderable, preRender, render, setDelegateOwner, setDrawBoundingSectors, setEnableBatchPicking, setVisible, updateModifiedTime
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
Methods inherited from interface gov.nasa.worldwind.render.Renderable
render
-
Methods inherited from interface gov.nasa.worldwind.render.SurfaceObject
getDelegateOwner, getDistanceFromEye, getExtent, isEnableBatchPicking, isVisible, pick, preRender, setDelegateOwner, setEnableBatchPicking, setVisible
-
-
-
-
Constructor Detail
-
SurfaceCircle
public SurfaceCircle()
Constructs a new surface circle with the default attributes, default center location and default radius.
-
SurfaceCircle
public SurfaceCircle(SurfaceCircle source)
Creates a shallow copy of the specified source shape.- Parameters:
source
- the shape to copy.
-
SurfaceCircle
public SurfaceCircle(ShapeAttributes normalAttrs)
Constructs a new surface circle with the specified normal (as opposed to highlight) attributes, default center location, and default radius. Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.- Parameters:
normalAttrs
- the normal attributes. May be null, in which case default attributes are used.
-
SurfaceCircle
public SurfaceCircle(LatLon center, double radius)
Constructs a new surface circle with the default attributes, the specified center location and radius (in meters).- Parameters:
center
- the circle's center location.radius
- the circle's radius, in meters.- Throws:
java.lang.IllegalArgumentException
- if the center is null, or if the radius is negative.
-
SurfaceCircle
public SurfaceCircle(LatLon center, double radius, int intervals)
Constructs a new surface circle with the default attributes, the specified center location, radius (in meters), and initial number of geometry intervals.- Parameters:
center
- the circle's center location.radius
- the circle's radius, in meters.intervals
- the initial number of intervals (or slices) defining the circle's geometry.- Throws:
java.lang.IllegalArgumentException
- if the center is null, if the radius is negative, or if the number of intervals is less than 8.
-
SurfaceCircle
public SurfaceCircle(ShapeAttributes normalAttrs, LatLon center, double radius)
Constructs a new surface circle with the specified normal (as opposed to highlight) attributes, the specified center location, and radius (in meters). Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.- Parameters:
normalAttrs
- the normal attributes. May be null, in which case default attributes are used.center
- the circle's center location.radius
- the circle's radius, in meters.- Throws:
java.lang.IllegalArgumentException
- if the center is null, or if the radius is negative.
-
SurfaceCircle
public SurfaceCircle(ShapeAttributes normalAttrs, LatLon center, double radius, int intervals)
Constructs a new surface circle with the specified normal (as opposed to highlight) attributes, the specified center location, radius (in meters), and initial number of geometry intervals. Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.- Parameters:
normalAttrs
- the normal attributes. May be null, in which case default attributes are used.center
- the circle's center location.radius
- the circle's radius, in meters.intervals
- the initial number of intervals (or slices) defining the circle's geometry.- Throws:
java.lang.IllegalArgumentException
- if the center is null, if the radius is negative, or if the number of intervals is less than 8.
-
-