public class LineOfContact extends ForwardLineOfOwnTroops
ForwardLineOfOwnTroops.PositionIterator
Modifier and Type | Field and Description |
---|---|
protected Path |
path2
Line of Contact is drawn with two paths.
|
computedPositions, DEFAULT_NUM_INTERVALS, DEFAULT_NUM_WAVES, intervals, positions, waveLength
path, PLD_OUTLINE_STIPPLE_FACTOR
maskedSymbolCode, OUTLINE_STIPPLE_FACTOR_ANTICIPATED, OUTLINE_STIPPLE_FACTOR_PRESENT, OUTLINE_STIPPLE_PATTERN, symbolCode
activeOverrides, activeShapeAttributes, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_LABEL_INTERIOR_OPACITY, delegateOwner, dragEnabled, draggableSupport, frameTimestamp, highlightAttributes, highlighted, labelOffset, labels, modifiers, mustCreateLabels, normalAttributes, showGraphicModifiers, showHostileIndicator, showLocation, showTextModifiers, text, unitsFormat, visible
Constructor and Description |
---|
LineOfContact(java.lang.String sidc)
Create a new graphic.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doRenderGraphic(DrawContext dc)
Render this graphic, without modifiers.
|
protected void |
generateIntermediatePositions(DrawContext dc,
java.lang.Iterable<? extends Position> positions)
Generate the positions required to draw the line.
|
void |
generateParallelLines(java.util.Iterator<? extends Position> iterator,
java.util.List<Position> leftPositions,
java.util.List<Position> rightPositions,
double halfWidth,
Globe globe)
Create positions that describe lines parallel to a control line.
|
protected void |
generateParallelPoints(Vec4 point,
Vec4 prev,
Vec4 next,
java.util.List<Position> leftPositions,
java.util.List<Position> rightPositions,
double halfWidth,
Globe globe)
Compute points on either side of a line segment.
|
protected java.lang.String |
getGraphicLabel() |
static java.util.List<java.lang.String> |
getSupportedGraphics()
Indicates the graphics supported by this class.
|
void |
moveTo(Position position)
Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to
North.
|
computeDefaultWavelength, computeGeometry, computeGreatCirclePathLength, generateWavePositions, getIntervals, getPositions, getWaveLength, onShapeChanged, setIntervals, setPositions, setWaveLength
applyDefaultAttributes, applyDelegateOwner, createLabels, createPath, determineLabelPositions, getReferencePosition
createSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatus
addLabel, applyLabelAttributes, applyOverrideAttributes, computeLabelInteriorOpacity, determineActiveAttributes, determineDelegateOwner, determinePerFrameAttributes, doDrag, doRenderGraphicModifiers, doRenderTextModifiers, drag, getActiveDelegateOwner, getActiveOverrideAttributes, getActiveShapeAttributes, getAttributes, getDefaultLabelOffset, getDelegateOwner, getHighlightAttributes, getLabelMaterial, getLabelOffset, getUnitsFormat, isDragEnabled, isHighlighted, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, move, onModifierChanged, render, setAttributes, setDelegateOwner, setDragEnabled, setHighlightAttributes, setHighlighted, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
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
getAttributes, getDelegateOwner, getHighlightAttributes, getLabelOffset, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
render
isHighlighted, setHighlighted
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected Path path2
public LineOfContact(java.lang.String sidc)
sidc
- MIL-STD-2525C identifier code.protected void doRenderGraphic(DrawContext dc)
PhaseLine
doRenderGraphic
in class PhaseLine
dc
- Current draw context.AbstractTacticalGraphic.doRenderTextModifiers(gov.nasa.worldwind.render.DrawContext)
,
AbstractTacticalGraphic.doRenderGraphicModifiers(gov.nasa.worldwind.render.DrawContext)
protected void generateIntermediatePositions(DrawContext dc, java.lang.Iterable<? extends Position> positions)
generateIntermediatePositions
in class ForwardLineOfOwnTroops
dc
- Current draw context.positions
- Positions that define the polygon boundary.public void generateParallelLines(java.util.Iterator<? extends Position> iterator, java.util.List<Position> leftPositions, java.util.List<Position> rightPositions, double halfWidth, Globe globe)
iterator
- Iterator of control line positions.leftPositions
- List to collect positions on the left line.rightPositions
- List to collect positions on the right line.halfWidth
- Distance from the center line to the left or right lines.globe
- Current globe.protected void generateParallelPoints(Vec4 point, Vec4 prev, Vec4 next, java.util.List<Position> leftPositions, java.util.List<Position> rightPositions, double halfWidth, Globe globe)
point
- Center point about which to compute side points.prev
- Previous point on the line. May be null if next
is non-null.next
- Next point on the line. May be null if prev
is non-null.leftPositions
- Left position will be added to this list.rightPositions
- Right position will be added to this list.halfWidth
- Distance from the center line to the left or right lines.globe
- Current globe.protected java.lang.String getGraphicLabel()
getGraphicLabel
in class ForwardLineOfOwnTroops
public static java.util.List<java.lang.String> getSupportedGraphics()
public void moveTo(Position position)
moveTo
in interface Movable
moveTo
in class ForwardLineOfOwnTroops
position
- the new position of the shape's reference position.