public class Box extends AbstractAirspace
AbstractAirspace.AirspaceInfo
Modifier and Type | Field and Description |
---|---|
protected static double |
DEFAULT_CENTER_LINE_OFFSET |
protected static int |
DEFAULT_CENTER_LINE_STIPPLE_FACTOR |
protected static short |
DEFAULT_CENTER_LINE_STIPPLE_PATTERN |
protected static int |
DEFAULT_PILLARS |
protected static int |
DEFAULT_STACKS |
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 |
---|
Box() |
Box(AirspaceAttributes attributes) |
Box(Box source) |
Box(LatLon beginLocation,
LatLon endLocation,
double leftWidth,
double rightWidth) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyCenterLineState(DrawContext dc) |
protected Box |
computeExtent(Globe globe,
double verticalExaggeration) |
protected List<Vec4> |
computeMinimalGeometry(Globe globe,
double verticalExaggeration) |
protected Vec4 |
computeReferenceCenter(DrawContext dc) |
protected SurfaceShape |
createSurfaceShape()
Returns a
SurfaceShape that corresponds to this Airspace and is used for drawing on 2D globes. |
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,
String drawStyle) |
protected void |
doRestoreState(RestorableSupport rs,
RestorableSupport.StateObject context) |
Angle[] |
getCornerAzimuths()
Indicates the azimuth angles for this box's four corners, relative to geographic north.
|
protected int |
getHeightStacks() |
LatLon[] |
getLocations() |
protected int |
getPillars() |
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position.
|
protected int |
getStacks() |
double[] |
getWidths() |
protected void |
invalidateGeometry() |
boolean[] |
isEnableCaps() |
boolean |
isEnableCenterLine() |
protected boolean |
isForceCullFace() |
protected void |
regenerateSurfaceShape(DrawContext dc,
SurfaceShape shape)
Regenerates surface shape geometry prior to picking and rendering the 2D shape used to represent this Airspace on
2D globes.
|
void |
setCornerAzimuths(Angle beginLeftAzimuth,
Angle beginRightAzimuth,
Angle endLeftAzimuth,
Angle endRightAzimuth)
Specifies the azimuth angles for this box's four corners, relative to geographic north.
|
void |
setEnableCaps(boolean enable) |
void |
setEnableCaps(boolean enableStartCap,
boolean enableEndCap) |
void |
setEnableCenterLine(boolean enable) |
void |
setEnableEndCap(boolean enable) |
void |
setEnableStartCap(boolean enable) |
protected void |
setForceCullFace(boolean forceCullFace) |
void |
setLocations(LatLon beginLocation,
LatLon endLocation)
Sets the leg's locations, in geographic coordinates.
|
protected void |
setPillars(int pillars) |
protected void |
setStacks(int stacks) |
void |
setWidths(double leftWidth,
double rightWidth) |
addDetailLevels, adjustForGroundReference, beginRendering, clearElevationMap, computeDetailLevel, computeElevationAt, computeExtent, computeEyeDistance, computeMinimalGeometry, computePointFromPosition, computeReferencePosition, createPickedObject, 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, isAirspaceVisible, isAlwaysOnTop, isDragEnabled, isDrawSurfaceShape, isEnableBatchPicking, isEnableBatchRendering, isEnableDepthOffset, isEnableLevelOfDetail, isExpired, isHighlighted, isTerrainConforming, isVisible, makeExtremePoints, makeOrderedRenderable, move, moveTo, moveTo, mustDrawInterior, mustDrawOutline, nextExpiryTime, pick, preRender, render, restoreState, setAltitude, setAltitudeDatum, setAltitudes, setAlwaysOnTop, setAttributes, setAttributes, setDelegateOwner, setDetailLevels, setDragEnabled, setDrawSurfaceShape, setEnableBatchPicking, setEnableBatchRendering, setEnableDepthOffset, setEnableLevelOfDetail, setExpiryRange, setExpiryTime, setGeometryBuilder, setGroundReference, setHighlightAttributes, setHighlightAttributes, setHighlighted, setOutlinePickWidth, setTerrainConforming, 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
protected static final double DEFAULT_CENTER_LINE_OFFSET
protected static final int DEFAULT_CENTER_LINE_STIPPLE_FACTOR
protected static final short DEFAULT_CENTER_LINE_STIPPLE_PATTERN
protected static final int DEFAULT_PILLARS
protected static final int DEFAULT_STACKS
public Box()
public Box(AirspaceAttributes attributes)
public Box(Box source)
protected void applyCenterLineState(DrawContext dc)
protected Box computeExtent(Globe globe, double verticalExaggeration)
computeExtent
in class AbstractAirspace
protected List<Vec4> computeMinimalGeometry(Globe globe, double verticalExaggeration)
computeMinimalGeometry
in class AbstractAirspace
protected Vec4 computeReferenceCenter(DrawContext dc)
protected SurfaceShape createSurfaceShape()
AbstractAirspace
SurfaceShape
that corresponds to this Airspace and is used for drawing on 2D globes.createSurfaceShape
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, String drawStyle)
doRenderGeometry
in class AbstractAirspace
protected void doRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)
doRestoreState
in class AbstractAirspace
public Angle[] getCornerAzimuths()
protected int getHeightStacks()
public LatLon[] getLocations()
protected int getPillars()
public Position getReferencePosition()
Movable
protected int getStacks()
public double[] getWidths()
protected void invalidateGeometry()
public boolean[] isEnableCaps()
public boolean isEnableCenterLine()
protected boolean isForceCullFace()
protected void regenerateSurfaceShape(DrawContext dc, SurfaceShape shape)
AbstractAirspace
regenerateSurfaceShape
in class AbstractAirspace
dc
- the current drawing context.shape
- the surface shape to regenerate.public void setCornerAzimuths(Angle beginLeftAzimuth, Angle beginRightAzimuth, Angle endLeftAzimuth, Angle endRightAzimuth)
public void setEnableCaps(boolean enable)
public void setEnableCaps(boolean enableStartCap, boolean enableEndCap)
public void setEnableCenterLine(boolean enable)
public void setEnableEndCap(boolean enable)
public void setEnableStartCap(boolean enable)
protected void setForceCullFace(boolean forceCullFace)
public void setLocations(LatLon beginLocation, LatLon endLocation)
beginLocation
- geographic coordinates(latitude and longitude) specifying the center of the begining edge.endLocation
- geographic coordinates(latitude and longitude) specifying the center of the ending edge.IllegalArgumentException
- if location1 or location2 is nullprotected void setPillars(int pillars)
protected void setStacks(int stacks)
public void setWidths(double leftWidth, double rightWidth)