gov.nasa.worldwind.render.airspaces
Class Box
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.airspaces.AbstractAirspace
gov.nasa.worldwind.render.airspaces.Box
- All Implemented Interfaces:
- AVList, Movable, Airspace, Renderable, Restorable
public class Box
- extends AbstractAirspace
| 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 |
| 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 |
A_LOW_LEFT
protected static final int A_LOW_LEFT
- See Also:
- Constant Field Values
A_LOW_RIGHT
protected static final int A_LOW_RIGHT
- See Also:
- Constant Field Values
A_UPR_LEFT
protected static final int A_UPR_LEFT
- See Also:
- Constant Field Values
A_UPR_RIGHT
protected static final int A_UPR_RIGHT
- See Also:
- Constant Field Values
B_LOW_LEFT
protected static final int B_LOW_LEFT
- See Also:
- Constant Field Values
B_LOW_RIGHT
protected static final int B_LOW_RIGHT
- See Also:
- Constant Field Values
B_UPR_LEFT
protected static final int B_UPR_LEFT
- See Also:
- Constant Field Values
B_UPR_RIGHT
protected static final int B_UPR_RIGHT
- See Also:
- Constant Field Values
DEFAULT_HEIGHT_STACKS
protected static final int DEFAULT_HEIGHT_STACKS
- See Also:
- Constant Field Values
DEFAULT_PILLARS
protected static final int DEFAULT_PILLARS
- See Also:
- Constant Field Values
DEFAULT_STACKS
protected static final int DEFAULT_STACKS
- See Also:
- Constant Field Values
FACE_BACK
public static final int FACE_BACK
- See Also:
- Constant Field Values
FACE_BOTTOM
public static final int FACE_BOTTOM
- See Also:
- Constant Field Values
FACE_FRONT
public static final int FACE_FRONT
- See Also:
- Constant Field Values
FACE_LEFT
public static final int FACE_LEFT
- See Also:
- Constant Field Values
FACE_RIGHT
public static final int FACE_RIGHT
- See Also:
- Constant Field Values
FACE_TOP
public static final int FACE_TOP
- See Also:
- Constant Field Values
LOW_FACE
protected static final int LOW_FACE
- See Also:
- Constant Field Values
SIDE_FACE
protected static final int SIDE_FACE
- See Also:
- Constant Field Values
UPR_FACE
protected static final int UPR_FACE
- See Also:
- Constant Field Values
Box
public Box()
Box
public Box(AirspaceAttributes attributes)
Box
public Box(LatLon location1,
LatLon location2,
double leftWidth,
double rightWidth)
computeReferenceCenter
protected Vec4 computeReferenceCenter(DrawContext dc)
computeStandardVertices
public static Vec4[] computeStandardVertices(DrawContext dc,
Box box)
doComputeExtent
protected Extent doComputeExtent(DrawContext dc)
- Specified by:
doComputeExtent in class AbstractAirspace
doGetRestorableState
protected void doGetRestorableState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Overrides:
doGetRestorableState in class AbstractAirspace
doMoveTo
protected void doMoveTo(Position oldRef,
Position newRef)
- Overrides:
doMoveTo in class AbstractAirspace
doRenderGeometry
protected void doRenderGeometry(DrawContext dc,
String drawStyle)
- Specified by:
doRenderGeometry in class AbstractAirspace
doRestoreState
protected void doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context)
- Overrides:
doRestoreState in class AbstractAirspace
getHeightStacks
protected int getHeightStacks()
getLocations
public LatLon[] getLocations()
getPillars
protected int getPillars()
getReferencePosition
public Position getReferencePosition()
getStacks
protected int getStacks()
getVertices
public Vec4[] getVertices()
getWidths
public double[] getWidths()
isEnableCaps
public boolean[] isEnableCaps()
isForceCullFace
protected boolean isForceCullFace()
setEnableCaps
public void setEnableCaps(boolean enable)
setEnableCaps
public void setEnableCaps(boolean enableStartCap,
boolean enableEndCap)
setEnableEndCap
public void setEnableEndCap(boolean enable)
setEnableStartCap
public void setEnableStartCap(boolean enable)
setForceCullFace
protected void setForceCullFace(boolean forceCullFace)
setLocations
public void setLocations(LatLon location1,
LatLon location2)
- Sets the leg's locations, in geographic coordinates.
- Parameters:
location1 - geographic coordinates(latitude and longitude) specifying the center of the begining edge.location2 - geographic coordinates(latitude and longitude) specifying the center of the ending edge.
- Throws:
IllegalArgumentException - if location1 or location2 is null
setPillars
protected void setPillars(int pillars)
setStacks
protected void setStacks(int stacks)
setVertices
public void setVertices(Vec4[] vertices)
setWidths
public void setWidths(double leftWidth,
double rightWidth)