public class CappedCylinder extends AbstractAirspace
AbstractAirspace.AirspaceInfo| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_LOOPS |
protected static int |
DEFAULT_SLICES |
protected static int |
DEFAULT_STACKS |
protected static int |
MINIMAL_GEOMETRY_LOOPS |
protected static int |
MINIMAL_GEOMETRY_SLICES |
airspaceInfo, 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_EXAGGERATIONDRAW_STYLE_FILL, DRAW_STYLE_OUTLINE| Constructor and Description |
|---|
CappedCylinder() |
CappedCylinder(AirspaceAttributes attributes) |
CappedCylinder(LatLon location,
double radius) |
| Modifier and Type | Method and Description |
|---|---|
protected Extent |
computeExtent(Globe globe,
double verticalExaggeration) |
protected List<Vec4> |
computeMinimalGeometry(Globe globe,
double verticalExaggeration) |
protected Vec4 |
computeReferenceCenter(DrawContext dc) |
protected Matrix |
computeTransform(Globe globe,
double verticalExaggeration) |
protected void |
doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context) |
protected void |
doMoveTo(Position oldRef,
Position newRef) |
protected void |
doRenderGeometry(DrawContext dc,
String drawStyle) |
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context) |
LatLon |
getCenter()
Returns the geographic location of the cylinder's center.
|
protected int |
getLoops() |
double[] |
getRadii()
Returns the cylinder's inner and outer radius, in meters.
|
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position.
|
protected int |
getSlices() |
protected int |
getStacks() |
boolean |
isEnableCaps() |
void |
setCenter(LatLon location)
Sets the cylinder's center.
|
void |
setEnableCaps(boolean enable) |
protected void |
setLoops(int loops) |
void |
setRadii(double innerRadius,
double outerRadius)
Sets the cylinder's inner and outer radius.
|
void |
setRadius(double radius)
Sets the cylinder's radius.
|
protected void |
setSlices(int slices) |
addDetailLevels, adjustForGroundReference, clearElevationMap, computeDetailLevel, computeElevationAt, computeExtent, computeEyeDistance, computeMinimalGeometry, computePointFromPosition, computeReferencePosition, doRender, doRenderExtent, getAirspaceInfo, getAltitudeDatum, getAltitudes, getAltitudes, getAttributes, getDetailLevels, getExpiryRange, getExpiryTime, getExtent, getExtent, getGeometryBuilder, getGeometryCache, getGroundReference, getRenderer, getRestorableState, isAirspaceCollapsed, isAirspaceVisible, isEnableLevelOfDetail, isExpired, isTerrainConforming, isVisible, makeExtremePoints, makeOrderedRenderable, move, moveTo, nextExpiryTime, render, renderExtent, renderGeometry, restoreState, setAltitude, setAltitudeDatum, setAltitudes, setAttributes, setDetailLevels, setEnableLevelOfDetail, setExpiryRange, setExpiryTime, setExtentOutOfDate, setGeometryBuilder, setGroundReference, setRenderer, setTerrainConforming, setTerrainConforming, setVisible, updateExpiryCriteriaaddPropertyChangeListener, 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, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected static final int DEFAULT_LOOPS
protected static final int DEFAULT_SLICES
protected static final int DEFAULT_STACKS
protected static final int MINIMAL_GEOMETRY_LOOPS
protected static final int MINIMAL_GEOMETRY_SLICES
public CappedCylinder()
public CappedCylinder(AirspaceAttributes attributes)
public CappedCylinder(LatLon location, double radius)
protected Extent computeExtent(Globe globe, double verticalExaggeration)
computeExtent in class AbstractAirspaceprotected List<Vec4> computeMinimalGeometry(Globe globe, double verticalExaggeration)
computeMinimalGeometry in class AbstractAirspaceprotected Vec4 computeReferenceCenter(DrawContext dc)
protected void doGetRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)
doGetRestorableState in class AbstractAirspaceprotected void doMoveTo(Position oldRef, Position newRef)
doMoveTo in class AbstractAirspaceprotected void doRenderGeometry(DrawContext dc, String drawStyle)
doRenderGeometry in class AbstractAirspaceprotected void doRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)
doRestoreState in class AbstractAirspacepublic LatLon getCenter()
protected int getLoops()
public double[] getRadii()
public Position getReferencePosition()
Movableprotected int getSlices()
protected int getStacks()
public boolean isEnableCaps()
public void setCenter(LatLon location)
location - the geographic position (latitude and longitude) of the cylinder's center.IllegalArgumentException - if the location is null.public void setEnableCaps(boolean enable)
protected void setLoops(int loops)
public void setRadii(double innerRadius,
double outerRadius)
innerRadius - the cylinder's inner radius, in meters.outerRadius - the cylinder's inner radius, in meters.IllegalArgumentException - if either radius is less than zero.public void setRadius(double radius)
radius - the cylinder's radius, in meters.IllegalArgumentException - if the radius is less than zero.protected void setSlices(int slices)