|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.symbology.AbstractTacticalGraphic
gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
gov.nasa.worldwind.symbology.milstd2525.graphics.areas.MinimumSafeDistanceZones
public class MinimumSafeDistanceZones
Implementation of the Minimum Safe Distance Zone graphic (2.X.3.4.1). This graphic requires four control points. The first point defines the center of the circle, and the other three define the radius of the rings. See the graphic template in MIL-STD-2525C, pg. 613. Note that MIL-STD-2525C numbers the radius points as points one, two, and three, but does not assign a number to the center point. This implementation requires the center point to be the first point in the list.
| Field Summary | |
|---|---|
static Angle |
DEFAULT_LABEL_ANGLE
Default angle used to position the graphic's labels. |
protected Angle |
labelAngle
Position the labels along a line radiating out from the center of the circle at this angle from North. |
protected Iterable<? extends Position> |
positions
Position of the center of the range fan. |
protected List<SurfaceCircle> |
rings
Rings that make up the range fan. |
| Fields inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic |
|---|
maskedSymbolCode, OUTLINE_STIPPLE_FACTOR_ANTICIPATED, OUTLINE_STIPPLE_FACTOR_PRESENT, OUTLINE_STIPPLE_PATTERN, symbolCode |
| Fields inherited from class gov.nasa.worldwind.symbology.AbstractTacticalGraphic |
|---|
activeOverrides, activeShapeAttributes, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_LABEL_INTERIOR_OPACITY, delegateOwner, frameTimestamp, highlightAttributes, highlighted, labelOffset, labels, modifiers, mustCreateLabels, normalAttributes, showGraphicModifiers, showHostileIndicator, showLocation, showTextModifiers, text, unitsFormat, visible |
| Constructor Summary | |
|---|---|
MinimumSafeDistanceZones(String sidc)
Create the graphic. |
|
| Method Summary | |
|---|---|
protected void |
applyDelegateOwner(Object owner)
Invoked each frame to apply to the current delegate owner to all renderable objects used to draw the graphic. |
protected SurfaceCircle |
createCircle()
Create a circle for a range ring. |
protected void |
createLabels()
Create labels for each ring. |
protected void |
createShapes(DrawContext dc)
Create the circles used to draw this graphic. |
protected void |
determineLabelPositions(DrawContext dc)
Determine positions for the start and end labels. |
protected void |
doRenderGraphic(DrawContext dc)
Render the polygon. |
Angle |
getLabelAngle()
Indicates the angle used to position this graphic's labels. |
Position |
getPosition()
Indicates the center position of the range ran. |
Iterable<? extends Position> |
getPositions()
Indicates the positions of the control points that place and orient the graphic. |
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position. |
static List<String> |
getSupportedGraphics()
Indicates the graphics supported by this class. |
void |
preRender(DrawContext dc)
|
void |
setLabelAngle(Angle angle)
Specifies the angle used to position this graphic's labels. |
void |
setPosition(Position position)
Specifies the center position of the range ran. |
void |
setPositions(Iterable<? extends Position> positions)
Specifies the positions of the control points that place and orient the graphic. |
| Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic |
|---|
applyDefaultAttributes, createSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatus |
| 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.symbology.TacticalGraphic |
|---|
getAttributes, getDelegateOwner, getHighlightAttributes, getLabelOffset, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible |
| Methods inherited from interface gov.nasa.worldwind.render.Renderable |
|---|
render |
| Methods inherited from interface gov.nasa.worldwind.render.Highlightable |
|---|
isHighlighted, setHighlighted |
| Methods inherited from interface gov.nasa.worldwind.Movable |
|---|
move, moveTo |
| 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 |
| Field Detail |
|---|
public static final Angle DEFAULT_LABEL_ANGLE
protected Angle labelAngle
protected Iterable<? extends Position> positions
protected List<SurfaceCircle> rings
| Constructor Detail |
|---|
public MinimumSafeDistanceZones(String sidc)
sidc - Symbol code the identifies the graphic.| Method Detail |
|---|
protected void applyDelegateOwner(Object owner)
applyDelegateOwner in class AbstractTacticalGraphicowner - Current delegate owner.protected SurfaceCircle createCircle()
protected void createLabels()
createLabels in class AbstractTacticalGraphicprotected void createShapes(DrawContext dc)
dc - Current draw context.protected void determineLabelPositions(DrawContext dc)
determineLabelPositions in class AbstractTacticalGraphicdc - Current draw context.protected void doRenderGraphic(DrawContext dc)
doRenderGraphic in class AbstractTacticalGraphicdc - Current draw context.AbstractTacticalGraphic.doRenderTextModifiers(gov.nasa.worldwind.render.DrawContext),
AbstractTacticalGraphic.doRenderGraphicModifiers(gov.nasa.worldwind.render.DrawContext)public Angle getLabelAngle()
public Position getPosition()
public Iterable<? extends Position> getPositions()
getPositions in interface TacticalGraphicpublic Position getReferencePosition()
getReferencePosition in interface Movablepublic static List<String> getSupportedGraphics()
public void preRender(DrawContext dc)
preRender in interface PreRenderablepublic void setLabelAngle(Angle angle)
angle - The angle used to position this graphic's labels.public void setPosition(Position position)
position - The new center position.public void setPositions(Iterable<? extends Position> positions)
setPositions in interface TacticalGraphicpositions - Control points. This graphic uses only one control point, which determines the center of the
circle.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||