|
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.BasicArea
gov.nasa.worldwind.symbology.milstd2525.graphics.areas.Encirclement
public class Encirclement
Implementation of the Encirclement graphic (2.X.2.6.2.3).
| Field Summary | |
|---|---|
protected List<Position> |
computedPositions
Positions computed from the original positions. |
static int |
DEFAULT_NUM_WAVES
Default number of wave lengths for a simple shape. |
protected Iterable<? extends Position> |
positions
Original positions specified by the application. |
protected double |
waveLength
Indicates the wavelength of the triangle wave that forms the graphic's border. |
protected SurfacePolygon |
wavePolygon
The polygon with triangle wave. |
| Fields inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.areas.BasicArea |
|---|
identityLabel1, identityLabel2, polygon |
| 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 | |
|---|---|
Encirclement(String sidc)
Create a new graphic. |
|
| Method Summary | |
|---|---|
protected double |
computeDefaultWavelength(Globe globe)
Compute a default tooth size for the polygon. |
protected void |
computeGeometry(DrawContext dc)
|
protected void |
doRenderGraphic(DrawContext dc)
Render the polygon. |
protected void |
generateIntermediatePositions(DrawContext dc,
Iterable<? extends Position> positions)
Generate the positions required to draw the polygon with a triangle wave boundary. |
Iterable<? extends Position> |
getPositions()
Indicates the positions of the control points that place and orient the graphic. |
static List<String> |
getSupportedGraphics()
Indicates the graphics supported by this class. |
double |
getWaveLength()
Indicates the wavelength of the triangle wave that forms the graphic's boundary. |
void |
moveTo(Position position)
Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to North. |
void |
preRender(DrawContext dc)
|
void |
setPositions(Iterable<? extends Position> positions)
Specifies the positions of the control points that place and orient the graphic. |
void |
setWaveLength(double waveLength)
Specifies the wavelength of the triangle wave that forms the graphic's boundary. |
| Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.areas.BasicArea |
|---|
applyDelegateOwner, createLabels, createLabelText, createPolygon, determineIdentityLabelPositions, determineLabelPositions, determineMainLabelPosition, getGraphicLabel, getLabelAlignment, getPositionCount, getReferencePosition, makeShapes |
| 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 |
| 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 |
|---|
protected List<Position> computedPositions
public static final int DEFAULT_NUM_WAVES
protected Iterable<? extends Position> positions
protected double waveLength
protected SurfacePolygon wavePolygon
| Constructor Detail |
|---|
public Encirclement(String sidc)
sidc - MIL-STD-2525C identifier code.| Method Detail |
|---|
protected double computeDefaultWavelength(Globe globe)
globe - Globe on which the area will be rendered.
protected void computeGeometry(DrawContext dc)
computeGeometry in class AbstractTacticalGraphicprotected void doRenderGraphic(DrawContext dc)
BasicArea
doRenderGraphic in class BasicAreadc - Current draw context.AbstractTacticalGraphic.doRenderTextModifiers(gov.nasa.worldwind.render.DrawContext),
AbstractTacticalGraphic.doRenderGraphicModifiers(gov.nasa.worldwind.render.DrawContext)
protected void generateIntermediatePositions(DrawContext dc,
Iterable<? extends Position> positions)
dc - Current draw context.positions - Positions that define the polygon boundary.public Iterable<? extends Position> getPositions()
getPositions in interface TacticalGraphicgetPositions in class BasicAreapublic static List<String> getSupportedGraphics()
public double getWaveLength()
__/\__/\__ ^ ^ Wavelength
public void moveTo(Position position)
moveTo in interface MovablemoveTo in class AbstractTacticalGraphicposition - the new position of the shape's reference position.public void preRender(DrawContext dc)
preRender in interface PreRenderablepreRender in class BasicAreapublic void setPositions(Iterable<? extends Position> positions)
setPositions in interface TacticalGraphicsetPositions in class BasicAreapositions - Positions that orient the graphic. How many positions are returned depends on the type of
graphic. Some graphics require only a single position, others require many. The positions must
be specified in the same order as the control points defined by the symbology set's template for
this type of graphic.public void setWaveLength(double waveLength)
getWaveLength() for
more information on how this distance is interpreted.
waveLength - The wavelength, in meters.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||