|
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.lines.DirectionOfAttack
gov.nasa.worldwind.symbology.milstd2525.graphics.lines.DirectionOfAttackForFeint
public class DirectionOfAttackForFeint
Implementation of the Direction of Attack for Feint graphic (2.X.2.3.3).
| Field Summary | |
|---|---|
protected double |
curvature
Factor that controls the curve of the line. |
protected static double |
DASHED_LINE_DISTANCE
Factor used to compute the distance between the solid and dashed lines in the arrow head. |
protected ShapeAttributes |
dashedAttributes
Shape attributes for the dashed part of the graphic. |
static Angle |
DEFAULT_ARROWHEAD_ANGLE
Default angle of the arrowhead. |
static double |
DEFAULT_CURVATURE
Default factor that determines the curvature of the line. |
static int |
DEFAULT_NUM_INTERVALS
Default number of intervals used to draw the curve. |
protected int |
intervals
Number of intervals used to draw the curve. |
protected static Offset |
LABEL_OFFSET
Offset applied to the label. |
protected Position |
labelOrientationPosition
Orientation position for the label. |
protected Position |
labelPosition
Position of the label along the curve. |
| Fields inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.lines.DirectionOfAttack |
|---|
arrowAngle, arrowLength, DEFAULT_ARROWHEAD_LENGTH, DEFAULT_ARROWHEAD_OUTLINE_WIDTH, endPosition, outlineWidth, paths, startPosition |
| 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 | |
|---|---|
DirectionOfAttackForFeint(String sidc)
Create a new arrow graphic. |
|
| Method Summary | |
|---|---|
protected Vec4[] |
computeBezierControlPoints(DrawContext dc,
Vec4 start,
Vec4 end,
double curvature)
Compute the position of control points that will generate a Bezier curve that looks like the Direction of Attack for Feint graphic in MIL-STD-2525C (pg. |
protected void |
createLabels()
|
protected void |
createShapes(DrawContext dc)
Create the list of positions that describe the arrow. |
protected void |
determineActiveAttributes()
Determine active attributes for this frame. |
protected void |
determineLabelPositions(DrawContext dc)
Determine positions for the start and end labels. |
double |
getCurvature()
Indicates a factor that determines the curvature of the line. |
protected Offset |
getDefaultLabelOffset()
Indicates the default offset applied to the graphic's main label. |
int |
getIntervals()
Indicates the number of intervals used to draw the curve in this graphic. |
static List<String> |
getSupportedGraphics()
Indicates the graphics supported by this class. |
protected void |
onShapeChanged()
|
void |
setCurvature(double factor)
Specifies a factor that determines the curvature of the line. |
void |
setIntervals(int intervals)
Specifies the number of intervals used to draw the curve in this graphic. |
| Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.graphics.lines.DirectionOfAttack |
|---|
applyDelegateOwner, computeArrowheadPositions, computeGeometry, createPath, doRenderGraphic, getArrowAngle, getArrowLength, getOutlineWidth, getPositions, getReferencePosition, isDrawOutlined, setArrowAngle, setArrowLength, setOutlineWidth, setPositions |
| 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 |
|---|
protected double curvature
protected static final double DASHED_LINE_DISTANCE
protected ShapeAttributes dashedAttributes
public static final Angle DEFAULT_ARROWHEAD_ANGLE
public static final double DEFAULT_CURVATURE
public static final int DEFAULT_NUM_INTERVALS
protected int intervals
protected static final Offset LABEL_OFFSET
protected Position labelOrientationPosition
labelPosition.
protected Position labelPosition
| Constructor Detail |
|---|
public DirectionOfAttackForFeint(String sidc)
sidc - Symbol code the identifies the graphic.| Method Detail |
|---|
protected Vec4[] computeBezierControlPoints(DrawContext dc,
Vec4 start,
Vec4 end,
double curvature)
dc - Current draw context.start - Beginning of the infiltration lane control line.end - End of the infiltration lane control line.curvature - Factor that controls the curvature of the line. Valid values are between zero and one. A higher
value results in a more pronounced curve.
start, and the last point
is equal to end.protected void createLabels()
createLabels in class AbstractTacticalGraphicprotected void createShapes(DrawContext dc)
createShapes in class DirectionOfAttackdc - Current draw context.protected void determineActiveAttributes()
determineActiveAttributes in class AbstractTacticalGraphicprotected void determineLabelPositions(DrawContext dc)
AbstractTacticalGraphic
determineLabelPositions in class AbstractTacticalGraphicdc - Current draw context.public double getCurvature()
protected Offset getDefaultLabelOffset()
getDefaultLabelOffset in class AbstractTacticalGraphicpublic int getIntervals()
public static List<String> getSupportedGraphics()
protected void onShapeChanged()
public void setCurvature(double factor)
factor - The factor that determines the curvature of the line.public void setIntervals(int intervals)
intervals - Number of intervals for drawing the curve. Must at least three.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||