public class Cake extends AbstractAirspace
Modifier and Type | Class and Description |
---|---|
static class |
Cake.Layer
An inner class of
Cake defining the parameters of one of the cake's cylinders. |
AbstractAirspace.AirspaceInfo
activeAttributes, airspaceInfo, alwaysOnTop, ARC_SLICES, attributes, currentInfo, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_INTERIOR_MATERIAL, DEFAULT_OUTLINE_MATERIAL, DEFAULT_OUTLINE_PICK_WIDTH, defaultAttributes, delegateOwner, detailLevels, DISABLE_TERRAIN_CONFORMANCE, dragEnabled, draggableSupport, drawSurfaceShape, elevationMap, enableBatchPicking, enableBatchRendering, enableDepthOffset, enableLevelOfDetail, EXPIRY_TIME, expiryTime, frameTimeStamp, GEOMETRY_CACHE_KEY, GEOMETRY_CACHE_NAME, geometryBuilder, GLOBE_KEY, groundReference, highlightAttributes, highlighted, LENGTH_SLICES, LOOPS, lowerAltitude, lowerAltitudeDatum, lowerTerrainConforming, maxExpiryTime, minExpiryTime, mustRegenerateSurfaceShape, outlinePickWidth, outlineShapeRenderer, pickLayer, pickSupport, PILLARS, rand, SLICES, SPLIT_THRESHOLD, STACKS, SUBDIVISIONS, surfaceShape, upperAltitude, upperAltitudeDatum, upperTerrainConforming, VERTICAL_EXAGGERATION, visible
DRAW_STYLE_FILL, DRAW_STYLE_OUTLINE
Constructor and Description |
---|
Cake() |
Cake(AirspaceAttributes attributes) |
Cake(java.util.Collection<Cake.Layer> layers) |
Modifier and Type | Method and Description |
---|---|
protected void |
addLayers(java.lang.Iterable<Cake.Layer> newLayers) |
protected Extent |
computeExtent(Globe globe,
double verticalExaggeration) |
protected java.util.List<Vec4> |
computeMinimalGeometry(Globe globe,
double verticalExaggeration) |
protected void |
doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context) |
protected void |
doMoveTo(Globe globe,
Position oldRef,
Position newRef) |
protected void |
doMoveTo(Position oldRef,
Position newRef) |
protected void |
doRenderGeometry(DrawContext dc,
java.lang.String drawStyle) |
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context) |
java.util.List<Cake.Layer> |
getLayers()
Returns the partial cylinders comprising the shape.
|
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position.
|
boolean |
isAirspaceVisible(DrawContext dc)
Test if this airspace is visible in the specified draw context.
|
void |
preRender(DrawContext dc) |
void |
render(DrawContext dc)
Causes this
Renderable to render itself using the provided draw context. |
void |
setEnableCaps(boolean enable) |
void |
setEnableDepthOffset(boolean enable)
Specifies whether the filled sides of this shape should be offset towards the viewer to help eliminate artifacts
when two or more faces of this or other filled shapes are coincident.
|
void |
setLayers(java.util.Collection<Cake.Layer> layers)
Set the partial cylinders comprising the shape.
|
void |
setTerrainConforming(boolean lowerTerrainConformant,
boolean upperTerrainConformant)
Sets the altitude datum, which indicates whether airspace altitudes are relative to mean sea level, ground level
or a single ground reference location.
|
addDetailLevels, adjustForGroundReference, beginRendering, clearElevationMap, computeDetailLevel, computeElevationAt, computeExtent, computeEyeDistance, computeMinimalGeometry, computePointFromPosition, computeReferencePosition, createPickedObject, createSurfaceShape, determineActiveAttributes, doDrag, doDrawOrderedRenderable, drag, drawBatched, drawGeometry, drawInterior, drawOrderedRenderable, drawOutline, endRendering, getActiveAttributes, getAirspaceInfo, getAltitudeDatum, getAltitudes, getAltitudes, getAttributes, getDelegateOwner, getDetailLevels, getDistanceFromEye, getExpiryRange, getExpiryTime, getExtent, getExtent, getGeometryBuilder, getGeometryCache, getGroundReference, getHighlightAttributes, getOutlinePickWidth, getRestorableState, invalidateAirspaceData, isAirspaceCollapsed, isAlwaysOnTop, isDragEnabled, isDrawSurfaceShape, isEnableBatchPicking, isEnableBatchRendering, isEnableDepthOffset, isEnableLevelOfDetail, isExpired, isHighlighted, isTerrainConforming, isVisible, makeExtremePoints, makeOrderedRenderable, move, moveTo, moveTo, mustDrawInterior, mustDrawOutline, nextExpiryTime, pick, regenerateSurfaceShape, restoreState, setAltitude, setAltitudeDatum, setAltitudes, setAlwaysOnTop, setAttributes, setAttributes, setDelegateOwner, setDetailLevels, setDragEnabled, setDrawSurfaceShape, setEnableBatchPicking, setEnableBatchRendering, setEnableLevelOfDetail, setExpiryRange, setExpiryTime, setGeometryBuilder, setGroundReference, setHighlightAttributes, setHighlightAttributes, setHighlighted, setOutlinePickWidth, setTerrainConforming, setVisible, updateExpiryCriteria, updateSurfaceShape
onMessage, propertyChange
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
public Cake()
public Cake(AirspaceAttributes attributes)
public Cake(java.util.Collection<Cake.Layer> layers)
protected void addLayers(java.lang.Iterable<Cake.Layer> newLayers)
protected Extent computeExtent(Globe globe, double verticalExaggeration)
computeExtent
in class AbstractAirspace
protected java.util.List<Vec4> computeMinimalGeometry(Globe globe, double verticalExaggeration)
computeMinimalGeometry
in class AbstractAirspace
protected void doGetRestorableState(RestorableSupport rs, RestorableSupport.StateObject context)
doGetRestorableState
in class AbstractAirspace
protected void doMoveTo(Globe globe, Position oldRef, Position newRef)
doMoveTo
in class AbstractAirspace
protected void doMoveTo(Position oldRef, Position newRef)
doMoveTo
in class AbstractAirspace
protected void doRenderGeometry(DrawContext dc, java.lang.String drawStyle)
doRenderGeometry
in class AbstractAirspace
protected void doRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)
doRestoreState
in class AbstractAirspace
public java.util.List<Cake.Layer> getLayers()
public Position getReferencePosition()
Movable
public boolean isAirspaceVisible(DrawContext dc)
AbstractAirspace
isAirspaceVisible
in interface Airspace
isAirspaceVisible
in class AbstractAirspace
dc
- the draw context the airspace is related to.public void preRender(DrawContext dc)
preRender
in interface PreRenderable
preRender
in class AbstractAirspace
public void render(DrawContext dc)
Renderable
Renderable
to render itself using the provided draw context.render
in interface Renderable
render
in class AbstractAirspace
dc
- the DrawContext
to be usedDrawContext
public void setEnableCaps(boolean enable)
public void setEnableDepthOffset(boolean enable)
AbstractAirspace
setEnableDepthOffset
in interface Airspace
setEnableDepthOffset
in class AbstractAirspace
enable
- true if depth offset is applied, otherwise false.public void setLayers(java.util.Collection<Cake.Layer> layers)
layers
- the cylinders comprising the shape. May be an empty list.java.lang.IllegalArgumentException
- if the list reference is null.public void setTerrainConforming(boolean lowerTerrainConformant, boolean upperTerrainConformant)
Airspace
Airspace.setAltitudeDatum(String, String)
,
but this method is provided for backwards compatibility with the means of originally setting the datum. See the
argument descriptions below for the mapping of the boolean values of this method to the altitude-datum values.setTerrainConforming
in interface Airspace
setTerrainConforming
in class AbstractAirspace
lowerTerrainConformant
- the lower altitude datum. A value of true indicates a lower altitude datum of
AVKey.ABOVE_GROUND_LEVEL
(terrain conforming), a value of false indicates a
lower altitude datum of {link AVKey#ABOVE_MEAN_SEA_LEVEL} (not terrain conforming).
the terrain-conforming, a value of false indicates that it's not.upperTerrainConformant
- the upper altitude datum. A value of true indicates an upper altitude datum of
AVKey.ABOVE_GROUND_LEVEL
(terrain conforming), a value of false indicates
an upper altitude datum of {link AVKey#ABOVE_MEAN_SEA_LEVEL} (not terrain
conforming. the terrain-conforming, a value of false indicates that it's not.Airspace.setAltitudeDatum(String, String)