Class SurfaceBox
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.render.AbstractSurfaceObject
-
- gov.nasa.worldwind.render.AbstractSurfaceShape
-
- gov.nasa.worldwind.render.airspaces.SurfaceBox
-
- All Implemented Interfaces:
AVList,Draggable,MessageListener,ExtentHolder,MeasurableArea,MeasurableLength,Movable,Movable2,Attributable,Highlightable,OrderedRenderable,PreRenderable,Renderable,SurfaceObject,SurfaceRenderable,SurfaceShape,Restorable,Combinable,WWObject,java.beans.PropertyChangeListener,java.util.EventListener
public class SurfaceBox extends AbstractSurfaceShape
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
AbstractSurfaceShape.GeometryKey, AbstractSurfaceShape.SurfaceShapeStateKey
-
Nested classes/interfaces inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
AbstractSurfaceObject.CacheEntry, AbstractSurfaceObject.SurfaceObjectStateKey
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.util.List<LatLon>>activeCenterLineGeometryprotected booleanenableCenterLineprotected booleanenableEndCapprotected booleanenableStartCapprotected intlengthSegmentsprotected java.util.List<LatLon>locationsprotected intwidthSegments-
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
activeAttrs, activeGeometry, activeOutlineGeometry, areaMeasurer, areaMeasurerLastModifiedTime, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_INTERIOR_MATERIAL, DEFAULT_MAX_EDGE_INTERVALS, DEFAULT_MIN_EDGE_INTERVALS, DEFAULT_OUTLINE_MATERIAL, DEFAULT_PATH_TYPE, DEFAULT_TEXELS_PER_EDGE_INTERVAL, defaultAttrs, dragEnabled, draggableSupport, geometryCache, highlightAttrs, highlighted, maxEdgeIntervals, minEdgeIntervals, normalAttrs, pathType, sectorCache, stackHandler, texelsPerEdgeInterval, texture, vertexBuffer
-
Fields inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
delegateOwner, drawBoundingSectors, enableBatchPicking, extentCache, lastModifiedTime, nextUniqueId, pickLayer, pickSupport, pickTileBuilder, uniqueId, visible
-
-
Constructor Summary
Constructors Constructor Description SurfaceBox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyCenterLineState(DrawContext dc, ShapeAttributes attributes)protected java.util.List<java.util.List<LatLon>>createGeometry(Globe globe, double edgeIntervalsPerDegree)protected voiddetermineActiveGeometry(DrawContext dc, SurfaceTileDrawContext sdc)protected voiddoMoveTo(Position oldReferencePosition, Position newReferencePosition)protected voiddoMoveTo(Globe globe, Position oldReferencePosition, Position newReferencePosition)protected voiddrawCenterLine(DrawContext dc)protected voiddrawOutline(DrawContext dc, SurfaceTileDrawContext sdc)intgetLengthSegments()java.util.List<LatLon>getLocations()java.lang.Iterable<? extends LatLon>getLocations(Globe globe)Returns the shape's locations as they appear on the specifiedglobe, or null if the shape has no locations.PositiongetReferencePosition()A position associated with the object that indicates its aggregate geographic position.intgetWidthSegments()boolean[]isEnableCaps()booleanisEnableCenterLine()protected java.util.ArrayList<LatLon>makeLocations(int offset, int count, double edgeIntervalsPerDegree)voidsetEnableCaps(boolean enableStartCap, boolean enableEndCap)voidsetEnableCenterLine(boolean enable)voidsetLengthSegments(int lengthSegments)voidsetLocations(java.util.List<LatLon> locations)voidsetWidthSegments(int widthSegments)-
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceShape
addIntermediateLocations, applyInteriorState, applyInteriorTextureState, applyModelviewTransform, applyOutlineState, beginDrawing, canContainPole, clearCaches, combine, combineBounds, combineContours, computeEdgeIntervalsPerDegree, computeEdgeIntervalsPerDegree, computeSectors, computeSectors, containsPole, createActiveAttributes, createGeometry, createGeometryKey, cutAlongDateLine, determineActiveAttributes, doCombineContour, doCombineContours, doDrag, doDrawGeographic, doGetRestorableState, doRestoreState, doTessellateInterior, drag, drawGeographic, drawInterior, drawLineStrip, endDrawing, export, exportAsKML, generateIntermediateLocations, getActiveAttributes, getActiveGeometry, getArea, getArea, getAttributes, getCachedGeometry, getExtent, getHeight, getHighlightAttributes, getInteriorTexture, getLength, getMinAndMaxEdgeIntervals, getPathType, getPerimeter, getRestorableState, getSectors, getStateKey, getTexelsPerEdgeInterval, getWidth, handleUnsuccessfulInteriorTessellation, isDragEnabled, isExportFormatSupported, isHighlighted, isSectorEmpty, legacyRestoreState, makeOrderedPreRenderable, move, moveTo, moveTo, pathTypeFromString, repeatAroundDateline, restoreState, setAttributes, setDragEnabled, setHighlightAttributes, setHighlighted, setMinAndMaxEdgeIntervals, setPathType, setTexelsPerEdgeInterval, setupAreaMeasurer, tessellateInterior, tessellateInteriorVertices
-
Methods inherited from class gov.nasa.worldwind.render.AbstractSurfaceObject
buildPickRepresentation, computeExtent, computeExtent, createPickedObject, createPickTileBuilder, drawBoundingSectors, drawOrderedRenderable, drawPickRepresentation, getDelegateOwner, getDistanceFromEye, getExtent, getUniqueId, intersectsFrustum, intersectsPickFrustum, intersectsVisibleSector, isDrawBoundingSectors, isEnableBatchPicking, isVisible, makeOrderedRenderable, nextUniqueId, onShapeChanged, pick, pickBatched, pickOrderedRenderable, preRender, render, setDelegateOwner, setDrawBoundingSectors, setEnableBatchPicking, setVisible, updateModifiedTime
-
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
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
-
Methods inherited from class java.lang.Object
clone, equals, 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
-
Methods inherited from interface gov.nasa.worldwind.render.Renderable
render
-
Methods inherited from interface gov.nasa.worldwind.render.SurfaceObject
getDelegateOwner, getDistanceFromEye, getExtent, isEnableBatchPicking, isVisible, pick, preRender, setDelegateOwner, setEnableBatchPicking, setVisible
-
-
-
-
Field Detail
-
locations
protected java.util.List<LatLon> locations
-
lengthSegments
protected int lengthSegments
-
widthSegments
protected int widthSegments
-
enableStartCap
protected boolean enableStartCap
-
enableEndCap
protected boolean enableEndCap
-
enableCenterLine
protected boolean enableCenterLine
-
activeCenterLineGeometry
protected java.util.List<java.util.List<LatLon>> activeCenterLineGeometry
-
-
Method Detail
-
getLocations
public java.util.List<LatLon> getLocations()
-
setLocations
public void setLocations(java.util.List<LatLon> locations)
-
getLengthSegments
public int getLengthSegments()
-
setLengthSegments
public void setLengthSegments(int lengthSegments)
-
getWidthSegments
public int getWidthSegments()
-
setWidthSegments
public void setWidthSegments(int widthSegments)
-
isEnableCaps
public boolean[] isEnableCaps()
-
setEnableCaps
public void setEnableCaps(boolean enableStartCap, boolean enableEndCap)
-
isEnableCenterLine
public boolean isEnableCenterLine()
-
setEnableCenterLine
public void setEnableCenterLine(boolean enable)
-
getReferencePosition
public Position getReferencePosition()
Description copied from interface:MovableA position associated with the object that indicates its aggregate geographic position. The chosen position varies among implementers of this interface. For objects defined by a list of positions, the reference position is typically the first position in the list. For symmetric objects the reference position is often the center of the object. In many cases the object's reference position may be explicitly specified by the application.- Specified by:
getReferencePositionin interfaceMovable- Specified by:
getReferencePositionin interfaceMovable2- Specified by:
getReferencePositionin classAbstractSurfaceShape- Returns:
- the object's reference position, or null if no reference position is available.
-
doMoveTo
protected void doMoveTo(Position oldReferencePosition, Position newReferencePosition)
- Specified by:
doMoveToin classAbstractSurfaceShape
-
doMoveTo
protected void doMoveTo(Globe globe, Position oldReferencePosition, Position newReferencePosition)
- Specified by:
doMoveToin classAbstractSurfaceShape
-
createGeometry
protected java.util.List<java.util.List<LatLon>> createGeometry(Globe globe, double edgeIntervalsPerDegree)
- Specified by:
createGeometryin classAbstractSurfaceShape
-
makeLocations
protected java.util.ArrayList<LatLon> makeLocations(int offset, int count, double edgeIntervalsPerDegree)
-
determineActiveGeometry
protected void determineActiveGeometry(DrawContext dc, SurfaceTileDrawContext sdc)
- Overrides:
determineActiveGeometryin classAbstractSurfaceShape
-
drawOutline
protected void drawOutline(DrawContext dc, SurfaceTileDrawContext sdc)
- Overrides:
drawOutlinein classAbstractSurfaceShape
-
drawCenterLine
protected void drawCenterLine(DrawContext dc)
-
applyCenterLineState
protected void applyCenterLineState(DrawContext dc, ShapeAttributes attributes)
-
getLocations
public java.lang.Iterable<? extends LatLon> getLocations(Globe globe)
Description copied from interface:SurfaceShapeReturns the shape's locations as they appear on the specifiedglobe, or null if the shape has no locations.- Parameters:
globe- the globe the shape is related to.- Returns:
- the shapes locations on the globe, or null if the shape has no locations.
-
-