NASA World Wind

gov.nasa.worldwind.render
Class SurfaceCircle

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.render.AbstractSurfaceObject
              extended by gov.nasa.worldwind.render.AbstractSurfaceShape
                  extended by gov.nasa.worldwind.render.SurfaceEllipse
                      extended by gov.nasa.worldwind.render.SurfaceCircle
All Implemented Interfaces:
AVList, MessageListener, ExtentHolder, MeasurableArea, MeasurableLength, Movable, Highlightable, OrderedRenderable, PreRenderable, Renderable, SurfaceObject, SurfaceShape, Restorable, WWObject, PropertyChangeListener, 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, 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, pickTiles, uniqueId, visible
 
Constructor Summary
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.
 
Method Summary
 double getRadius()
           
 void setRadius(double radius)
           
 
Methods inherited from class gov.nasa.worldwind.render.SurfaceEllipse
computeLocations, computeNumEdgeIntervals, computeNumIntervals, createGeometry, doGetRestorableState, 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, computeEdgeIntervalsPerDegree, computeSectors, computeSectors, containsPole, createActiveAttributes, createGeometryKey, cutAlongDateLine, determineActiveAttributes, determineActiveGeometry, doDrawGeographic, doTessellateInterior, drawGeographic, drawInterior, drawOutline, endDrawing, export, exportAsKML, generateIntermediateLocations, getActiveAttributes, getActiveGeometry, getArea, getArea, getAttributes, getCachedGeometry, getExtent, getHeight, getHighlightAttributes, getInteriorTexture, getLength, getMinAndMaxEdgeIntervals, getPathType, getPerimeter, getRestorableState, getSectors, getTexelsPerEdgeInterval, getWidth, handleUnsuccessfulInteriorTessellation, intersectionWithMeridian, isExportFormatSupported, isHighlighted, isSectorEmpty, makeOrderedPreRenderable, move, moveTo, onShapeChanged, pathTypeFromString, repeatAroundDateline, restoreState, setAttributes, 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, 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.render.SurfaceObject
getDelegateOwner, getDistanceFromEye, getExtent, isVisible, pick, preRender, render, setDelegateOwner, setVisible
 
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
 

Constructor Detail

SurfaceCircle

public SurfaceCircle()
Constructs a new surface circle with the default attributes, default center location and default radius.


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:
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:
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)
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(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:
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:
IllegalArgumentException - if the center is null, if the radius is negative, or if the number of intervals is less than 8.
Method Detail

getRadius

public double getRadius()

setRadius

public void setRadius(double radius)

NASA World Wind