public class Polygon extends AbstractAirspace
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Polygon.PolygonGeometry |
AbstractAirspace.AirspaceInfo| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_SUBDIVISIONS |
protected static int |
MINIMAL_GEOMETRY_SUBDIVISIONS |
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 |
|---|
Polygon() |
Polygon(AirspaceAttributes attributes) |
Polygon(Iterable<? extends LatLon> locations) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLocations(Iterable<? extends LatLon> newLocations) |
protected void |
adjustForGroundReference(DrawContext dc,
boolean[] terrainConformant,
double[] altitudes) |
protected int |
computeCartesianPolygon(Globe globe,
List<? extends LatLon> locations,
List<Boolean> edgeFlags,
Vec4[] points,
Boolean[] edgeFlagArray,
Matrix[] transform) |
protected Extent |
computeExtent(Globe globe,
double verticalExaggeration) |
protected List<Vec4> |
computeMinimalGeometry(Globe globe,
double verticalExaggeration) |
protected Vec4 |
computeReferenceCenter(DrawContext dc) |
protected void |
doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context) |
protected void |
doMoveTo(Position oldRef,
Position newRef) |
protected void |
doRenderGeometry(DrawContext dc,
String drawStyle) |
protected void |
doRenderGeometry(DrawContext dc,
String drawStyle,
List<LatLon> locations,
List<Boolean> edgeFlags) |
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context) |
protected List<LatLon> |
getLocationList() |
List<LatLon> |
getLocations() |
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position.
|
protected int |
getSubdivisions() |
protected void |
handleUnsuccessfulGeometryCreation() |
boolean |
isEnableCaps() |
protected void |
makeTessellatedLocations(Globe globe,
int subdivisions,
List<LatLon> locations,
List<LatLon> tessellatedLocations) |
void |
setEnableCaps(boolean enable) |
void |
setLocations(Iterable<? extends LatLon> locations) |
protected void |
setSubdivisions(int subdivisions) |
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_SUBDIVISIONS
protected static final int MINIMAL_GEOMETRY_SUBDIVISIONS
public Polygon()
public Polygon(AirspaceAttributes attributes)
protected void adjustForGroundReference(DrawContext dc, boolean[] terrainConformant, double[] altitudes)
protected int computeCartesianPolygon(Globe globe, List<? extends LatLon> locations, List<Boolean> edgeFlags, Vec4[] points, Boolean[] edgeFlagArray, Matrix[] transform)
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 doRenderGeometry(DrawContext dc, String drawStyle, List<LatLon> locations, List<Boolean> edgeFlags)
protected void doRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)
doRestoreState in class AbstractAirspacepublic Position getReferencePosition()
Movableprotected int getSubdivisions()
protected void handleUnsuccessfulGeometryCreation()
public boolean isEnableCaps()
protected void makeTessellatedLocations(Globe globe, int subdivisions, List<LatLon> locations, List<LatLon> tessellatedLocations)
public void setEnableCaps(boolean enable)
protected void setSubdivisions(int subdivisions)