NASA World Wind

gov.nasa.worldwind.render.airspaces
Class PartialCappedCylinder

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.render.airspaces.AbstractAirspace
          extended by gov.nasa.worldwind.render.airspaces.CappedCylinder
              extended by gov.nasa.worldwind.render.airspaces.PartialCappedCylinder
All Implemented Interfaces:
AVList, Movable, Airspace, Renderable, Restorable
Direct Known Subclasses:
Cake.Layer

public class PartialCappedCylinder
extends CappedCylinder

A cylinder defined by a geographic position, a radius in meters, and minimum and maximum altitudes.


Field Summary
 
Fields inherited from class gov.nasa.worldwind.render.airspaces.CappedCylinder
DEFAULT_LOOPS, DEFAULT_SLICES, DEFAULT_STACKS
 
Fields inherited from class gov.nasa.worldwind.render.airspaces.AbstractAirspace
ARC_SLICES, DISABLE_TERRAIN_CONFORMANCE, EXPIRY_TIME, GEOMETRY_CACHE_KEY, GEOMETRY_CACHE_NAME, GLOBE_KEY, LENGTH_SLICES, LOOPS, PILLARS, SLICES, SPLIT_THRESHOLD, STACKS, SUBDIVISIONS, VERTICAL_EXAGGERATION
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Fields inherited from interface gov.nasa.worldwind.render.airspaces.Airspace
DRAW_STYLE_FILL, DRAW_STYLE_OUTLINE
 
Constructor Summary
PartialCappedCylinder()
           
PartialCappedCylinder(AirspaceAttributes attributes)
           
PartialCappedCylinder(LatLon location, double radius)
           
PartialCappedCylinder(LatLon location, double radius, Angle leftAzimuth, Angle rightAzimuth)
           
 
Method Summary
protected  double[] computeAngles()
           
protected  Extent doComputeExtent(DrawContext dc)
           
protected  void doGetRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)
           
protected  void doRenderGeometry(DrawContext dc, String drawStyle)
           
protected  void doRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)
           
 Angle[] getAzimuths()
           
protected  Angle normalizedAzimuth(Angle azimuth)
           
 void setAzimuths(Angle leftAzimuth, Angle rightAzimuth)
           
 
Methods inherited from class gov.nasa.worldwind.render.airspaces.CappedCylinder
computeReferenceCenter, computeTransform, doMoveTo, getCenter, getLoops, getRadii, getReferencePosition, getSlices, getStacks, isEnableCaps, setCenter, setEnableCaps, setLoops, setRadii, setRadius, setSlices
 
Methods inherited from class gov.nasa.worldwind.render.airspaces.AbstractAirspace
addDetailLevels, clearElevationMap, computeBoundingCylinder, computeDetailLevel, computeElevationAt, computePointFromPosition, computeReferencePosition, computeSplitSectors, doRender, doRenderExtent, getAltitudes, getAltitudes, getAttributes, getDetailLevels, getExpiryRange, getExpiryTime, getExtent, getGeometryBuilder, getGeometryCache, getRenderer, getRestorableState, isAirspaceCollapsed, isAirspaceVisible, isEnableLevelOfDetail, isExpired, isExtentOutOfDate, isTerrainConforming, isVisible, move, moveTo, nextExpiryTime, render, renderExtent, renderGeometry, restoreState, setAltitude, setAltitudes, setAttributes, setDetailLevels, setEnableLevelOfDetail, setExpiryRange, setExpiryTime, setExtentOutOfDate, setGeometryBuilder, setRenderer, setTerrainConforming, setTerrainConforming, setVisible, updateExpiryCriteria
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, 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.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 

Constructor Detail

PartialCappedCylinder

public PartialCappedCylinder()

PartialCappedCylinder

public PartialCappedCylinder(AirspaceAttributes attributes)

PartialCappedCylinder

public PartialCappedCylinder(LatLon location,
                             double radius)

PartialCappedCylinder

public PartialCappedCylinder(LatLon location,
                             double radius,
                             Angle leftAzimuth,
                             Angle rightAzimuth)
Method Detail

computeAngles

protected double[] computeAngles()

doComputeExtent

protected Extent doComputeExtent(DrawContext dc)
Overrides:
doComputeExtent in class CappedCylinder

doGetRestorableState

protected void doGetRestorableState(RestorableSupport rs,
                                    RestorableSupport.StateObject context)
Overrides:
doGetRestorableState in class CappedCylinder

doRenderGeometry

protected void doRenderGeometry(DrawContext dc,
                                String drawStyle)
Overrides:
doRenderGeometry in class CappedCylinder

doRestoreState

protected void doRestoreState(RestorableSupport rs,
                              RestorableSupport.StateObject context)
Overrides:
doRestoreState in class CappedCylinder

getAzimuths

public Angle[] getAzimuths()

normalizedAzimuth

protected Angle normalizedAzimuth(Angle azimuth)

setAzimuths

public void setAzimuths(Angle leftAzimuth,
                        Angle rightAzimuth)

NASA World Wind