public class Curtain extends AbstractAirspace
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Curtain.CurtainGeometry |
protected static class |
Curtain.SectionRenderInfo |
AbstractAirspace.AirspaceInfo| Modifier and Type | Field and Description |
|---|---|
protected boolean |
applyPositionAltitude |
protected List<LatLon> |
locations |
protected String |
pathType |
protected double |
splitThreshold |
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 |
|---|
Curtain() |
Curtain(AirspaceAttributes attributes) |
Curtain(Iterable<? extends LatLon> locations) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLocations(Iterable<? extends LatLon> newLocations) |
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 |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context) |
protected void |
drawCurtainFill(DrawContext dc,
int count,
LatLon[] locations,
String pathType,
double splitThreshold,
double[] altitudes,
boolean[] terrainConformant,
Vec4 referenceCenter) |
protected void |
drawCurtainOutline(DrawContext dc,
int count,
LatLon[] locations,
String pathType,
double splitThreshold,
double[] altitudes,
boolean[] terrainConformant,
Vec4 referenceCenter) |
protected Curtain.CurtainGeometry |
getCurtainGeometry(DrawContext dc,
int count,
LatLon[] locations,
String pathType,
double splitThreshold,
double[] altitudes,
boolean[] terrainConformant,
Vec4 referenceCenter) |
Iterable<LatLon> |
getLocations()
Returns the curtain's locations.
|
String |
getPathType() |
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position.
|
protected int |
getSectionFillDrawMode() |
protected int |
getSectionFillIndexCount(int pillars) |
protected int |
getSectionOutlineDrawMode() |
protected int |
getSectionOutlineIndexCount(int pillars) |
protected int |
getSectionPillarCount(DrawContext dc,
LatLon begin,
LatLon end,
String pathType,
double splitThreshold) |
protected int |
getSectionVertexCount(int pillars) |
protected double |
getSplitThreshold() |
boolean |
isApplyPositionAltitude() |
protected void |
makeCurtainGeometry(DrawContext dc,
int count,
LatLon[] locations,
String pathType,
double splitThreshold,
double[] altitudes,
boolean[] terrainConformant,
Vec4 referenceCenter,
Curtain.CurtainGeometry dest) |
protected void |
makeDefaultDetailLevels() |
protected void |
makeSectionFillIndices(int pillars,
int vertexPos,
int indexPos,
int[] dest) |
protected void |
makeSectionInfo(DrawContext dc,
int count,
LatLon[] locations,
String pathType,
double splitThreshold,
Curtain.SectionRenderInfo[] ri,
int[] counts) |
protected void |
makeSectionOutlineIndices(int pillars,
int vertexPos,
int indexPos,
int[] dest) |
protected void |
makeSectionVertices(DrawContext dc,
LatLon begin,
LatLon end,
String pathType,
double[] altitude,
boolean[] terrainConformant,
int pillars,
int vertexPos,
float[] dest,
Vec4 referenceCenter) |
protected void |
makeSegment(Globe globe,
LatLon locA,
LatLon locB,
List<LatLon> tessellatedLocations) |
protected void |
makeTessellatedLocations(Globe globe,
List<LatLon> tessellatedLocations) |
void |
setApplyPositionAltitude(boolean applyPositionAltitude) |
void |
setLocations(Iterable<? extends LatLon> locations)
Sets the curtain's locations, in geographic coordinates.
|
void |
setPathType(String pathType) |
protected void |
setSplitThreshold(double splitThreshold) |
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 boolean applyPositionAltitude
protected String pathType
protected double splitThreshold
public Curtain()
public Curtain(AirspaceAttributes attributes)
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 AbstractAirspaceprotected void drawCurtainFill(DrawContext dc, int count, LatLon[] locations, String pathType, double splitThreshold, double[] altitudes, boolean[] terrainConformant, Vec4 referenceCenter)
protected void drawCurtainOutline(DrawContext dc, int count, LatLon[] locations, String pathType, double splitThreshold, double[] altitudes, boolean[] terrainConformant, Vec4 referenceCenter)
protected Curtain.CurtainGeometry getCurtainGeometry(DrawContext dc, int count, LatLon[] locations, String pathType, double splitThreshold, double[] altitudes, boolean[] terrainConformant, Vec4 referenceCenter)
public Iterable<LatLon> getLocations()
public String getPathType()
public Position getReferencePosition()
Movableprotected int getSectionFillDrawMode()
protected int getSectionFillIndexCount(int pillars)
protected int getSectionOutlineDrawMode()
protected int getSectionOutlineIndexCount(int pillars)
protected int getSectionPillarCount(DrawContext dc, LatLon begin, LatLon end, String pathType, double splitThreshold)
protected int getSectionVertexCount(int pillars)
protected double getSplitThreshold()
public boolean isApplyPositionAltitude()
protected void makeCurtainGeometry(DrawContext dc, int count, LatLon[] locations, String pathType, double splitThreshold, double[] altitudes, boolean[] terrainConformant, Vec4 referenceCenter, Curtain.CurtainGeometry dest)
protected void makeDefaultDetailLevels()
protected void makeSectionFillIndices(int pillars,
int vertexPos,
int indexPos,
int[] dest)
protected void makeSectionInfo(DrawContext dc, int count, LatLon[] locations, String pathType, double splitThreshold, Curtain.SectionRenderInfo[] ri, int[] counts)
protected void makeSectionOutlineIndices(int pillars,
int vertexPos,
int indexPos,
int[] dest)
protected void makeSectionVertices(DrawContext dc, LatLon begin, LatLon end, String pathType, double[] altitude, boolean[] terrainConformant, int pillars, int vertexPos, float[] dest, Vec4 referenceCenter)
protected void makeSegment(Globe globe, LatLon locA, LatLon locB, List<LatLon> tessellatedLocations)
protected void makeTessellatedLocations(Globe globe, List<LatLon> tessellatedLocations)
public void setApplyPositionAltitude(boolean applyPositionAltitude)
public void setLocations(Iterable<? extends LatLon> locations)
locations - a list of geographic coordinates (latitude and longitude) specifying the upper edge of the
shape.IllegalArgumentException - if the locations list is null or contains fewer than two points.public void setPathType(String pathType)
protected void setSplitThreshold(double splitThreshold)