|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.render.AbstractSurfaceObject
gov.nasa.worldwind.render.AbstractSurfaceShape
gov.nasa.worldwind.render.SurfaceEllipse
public class 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 | |
|---|---|
protected LatLon |
center
|
protected static int |
DEFAULT_NUM_INTERVALS
|
protected Angle |
heading
|
protected double |
majorRadius
|
protected static int |
MIN_NUM_INTERVALS
|
protected double |
minorRadius
|
| Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject |
|---|
delegateOwner, drawBoundingSectors, enableBatchPicking, extentCache, lastModifiedTime, nextUniqueId, pickLayer, pickSupport, pickTileBuilder, pickTiles, uniqueId, visible |
| Constructor Summary | |
|---|---|
SurfaceEllipse()
Constructs a new surface ellipse with the default attributes, default center location, default radii, and default heading. |
|
SurfaceEllipse(LatLon center,
double majorRadius,
double minorRadius)
Constructs a new surface ellipse with the default attributes, the specified center location and radii (in meters). |
|
SurfaceEllipse(LatLon center,
double majorRadius,
double minorRadius,
Angle heading)
Constructs a new surface ellipse with the default attributes, the specified center location, radii (in meters), and heading clockwise from North. |
|
SurfaceEllipse(LatLon center,
double majorRadius,
double minorRadius,
Angle heading,
int intervals)
Constructs a new surface ellipse with the default attributes, the specified center location, radii (in meters), heading clockwise from North, and initial number of geometry intervals. |
|
SurfaceEllipse(ShapeAttributes normalAttrs)
Constructs a new surface ellipse with the specified normal (as opposed to highlight) attributes, default center location, default radii, and default heading. |
|
SurfaceEllipse(ShapeAttributes normalAttrs,
LatLon center,
double majorRadius,
double minorRadius)
Constructs a new surface ellipse with the specified normal (as opposed to highlight) attributes, the specified center location, and radii (in meters). |
|
SurfaceEllipse(ShapeAttributes normalAttrs,
LatLon center,
double majorRadius,
double minorRadius,
Angle heading)
Constructs a new surface ellipse with the specified normal (as opposed to highlight) attributes, the specified center location, radii (in meters), and heading clockwise from North. |
|
SurfaceEllipse(ShapeAttributes normalAttrs,
LatLon center,
double majorRadius,
double minorRadius,
Angle heading,
int intervals)
Constructs a new surface ellipse with the specified normal (as opposed to highlight) attributes, the specified center location, radii (in meters), heading clockwise from North, and initial number of geometry intervals. |
|
| Method Summary | |
|---|---|
protected List<LatLon> |
computeLocations(Globe globe,
int intervals)
|
protected int |
computeNumEdgeIntervals(Globe globe,
double edgeIntervalsPerDegree)
|
protected int |
computeNumIntervals(Globe globe,
double edgeIntervalsPerDegree)
|
protected List<List<LatLon>> |
createGeometry(Globe globe,
SurfaceTileDrawContext sdc)
|
protected void |
doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
protected void |
doMoveTo(Position oldReferencePosition,
Position newReferencePosition)
|
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
|
LatLon |
getCenter()
|
Angle |
getHeading()
|
int |
getIntervals()
|
Iterable<? extends LatLon> |
getLocations(Globe globe)
Returns the shape's locations as they appear on the specified globe, or null if the shape has no
locations. |
double |
getMajorRadius()
|
double |
getMinorRadius()
|
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position. |
Object |
getStateKey(DrawContext dc)
Returns an object that uniquely identifies the surface object's state on the specified draw context. |
protected void |
legacyRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
Restores state values from previous versions of the SurfaceShape state XML. |
void |
setCenter(LatLon center)
|
void |
setHeading(Angle heading)
|
void |
setIntervals(int intervals)
|
void |
setMajorRadius(double radius)
|
void |
setMinorRadius(double radius)
|
void |
setRadii(double majorRadius,
double minorRadius)
|
| 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 |
| Field Detail |
|---|
protected LatLon center
protected static final int DEFAULT_NUM_INTERVALS
protected Angle heading
protected double majorRadius
protected static final int MIN_NUM_INTERVALS
protected double minorRadius
| Constructor Detail |
|---|
public SurfaceEllipse()
public SurfaceEllipse(LatLon center,
double majorRadius,
double minorRadius)
center - the ellipse's center location.majorRadius - the ellipse's major radius, in meters.minorRadius - the ellipse's minor radius, in meters.
IllegalArgumentException - if the center is null, or if either radii is negative.
public SurfaceEllipse(LatLon center,
double majorRadius,
double minorRadius,
Angle heading)
center - the ellipse's center location.majorRadius - the ellipse's major radius, in meters.minorRadius - the ellipse's minor radius, in meters.heading - the ellipse's heading, clockwise from North.
IllegalArgumentException - if the center or heading are null, or if either radii is negative.
public SurfaceEllipse(LatLon center,
double majorRadius,
double minorRadius,
Angle heading,
int intervals)
center - the ellipse's center location.majorRadius - the ellipse's major radius, in meters.minorRadius - the ellipse's minor radius, in meters.heading - the ellipse's heading, clockwise from North.intervals - the initial number of intervals (or slices) defining the ellipse's geometry.
IllegalArgumentException - if the center or heading are null, if either radii is negative, or if the number
of intervals is less than 8.public SurfaceEllipse(ShapeAttributes normalAttrs)
normalAttrs - the normal attributes. May be null, in which case default attributes are used.
public SurfaceEllipse(ShapeAttributes normalAttrs,
LatLon center,
double majorRadius,
double minorRadius)
normalAttrs - the normal attributes. May be null, in which case default attributes are used.center - the ellipse's center location.majorRadius - the ellipse's major radius, in meters.minorRadius - the ellipse's minor radius, in meters.
IllegalArgumentException - if the center is null, or if either radii is negative.
public SurfaceEllipse(ShapeAttributes normalAttrs,
LatLon center,
double majorRadius,
double minorRadius,
Angle heading)
normalAttrs - the normal attributes. May be null, in which case default attributes are used.center - the ellipse's center location.majorRadius - the ellipse's major radius, in meters.minorRadius - the ellipse's minor radius, in meters.heading - the ellipse's heading, clockwise from North.
IllegalArgumentException - if the center or heading are null, or if either radii is negative.
public SurfaceEllipse(ShapeAttributes normalAttrs,
LatLon center,
double majorRadius,
double minorRadius,
Angle heading,
int intervals)
normalAttrs - the normal attributes. May be null, in which case default attributes are used.center - the ellipse's center location.majorRadius - the ellipse's major radius, in meters.minorRadius - the ellipse's minor radius, in meters.heading - the ellipse's heading, clockwise from North.intervals - the initial number of intervals (or slices) defining the ellipse's geometry.
IllegalArgumentException - if the center or heading are null, if either radii is negative, or if the number
of intervals is less than 8.| Method Detail |
|---|
protected List<LatLon> computeLocations(Globe globe,
int intervals)
protected int computeNumEdgeIntervals(Globe globe,
double edgeIntervalsPerDegree)
protected int computeNumIntervals(Globe globe,
double edgeIntervalsPerDegree)
protected List<List<LatLon>> createGeometry(Globe globe,
SurfaceTileDrawContext sdc)
createGeometry in class AbstractSurfaceShape
protected void doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
doGetRestorableState in class AbstractSurfaceShape
protected void doMoveTo(Position oldReferencePosition,
Position newReferencePosition)
doMoveTo in class AbstractSurfaceShape
protected void doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
doRestoreState in class AbstractSurfaceShapepublic LatLon getCenter()
public Angle getHeading()
public int getIntervals()
public Iterable<? extends LatLon> getLocations(Globe globe)
SurfaceShapeglobe, or null if the shape has no
locations.
globe - the globe the shape is related to.
public double getMajorRadius()
public double getMinorRadius()
public Position getReferencePosition()
Movable
getReferencePosition in interface MovablegetReferencePosition in class AbstractSurfaceShapepublic Object getStateKey(DrawContext dc)
Globe. Subclasses
that depend on the Globe should return a state key that include the globe's state key.
Overridden to include the globe's state key in the returned state key.
getStateKey in interface SurfaceObjectgetStateKey in class AbstractSurfaceShapedc - the draw context the state key relates to.
Globe.getStateKey(DrawContext)
protected void legacyRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
AbstractSurfaceShapeAbstractSurfaceShape.doRestoreState(gov.nasa.worldwind.util.RestorableSupport,
gov.nasa.worldwind.util.RestorableSupport.StateObject).
legacyRestoreState in class AbstractSurfaceShapers - RestorableSupport object which contains the state value properties.context - active context in the RestorableSupport to read state from.public void setCenter(LatLon center)
public void setHeading(Angle heading)
public void setIntervals(int intervals)
public void setMajorRadius(double radius)
public void setMinorRadius(double radius)
public void setRadii(double majorRadius,
double minorRadius)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||