|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.symbology.milstd2525.MilStd2525Util
public class MilStd2525Util
| Nested Class Summary | |
|---|---|
static class |
MilStd2525Util.SymbolInfo
|
| Constructor Summary | |
|---|---|
MilStd2525Util()
|
|
| Method Summary | |
|---|---|
static List<? extends Point2D> |
computeCenterHeadingIndicatorPoints(DrawContext dc,
Vec4 symbolPoint,
Angle heading,
double length)
Compute screen points required to draw a leader line on a tactical symbol. |
protected static Vec4 |
computeDirectionOfMovement(DrawContext dc,
Vec4 symbolPoint,
Angle heading,
double length)
Compute a vector in the direction that a symbol is moving. |
static List<? extends Point2D> |
computeGroundHeadingIndicatorPoints(DrawContext dc,
Vec4 symbolPoint,
Angle heading,
double length,
double frameHeight)
Compute screen points required to draw a leader line on a tactical ground symbol. |
static MilStd2525Util.SymbolInfo |
computeTacticalSymbolInfo(String symbolId)
|
static Material |
getDefaultGraphicMaterial(SymbolCode symbolCode)
Determines a default color to apply to a symbol. |
protected static boolean |
isObstacle(SymbolCode symbolCode)
Indicates whether or not a symbol code identifiers an Obstacle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Offset ARCH_DOWN_OFFSET
protected static final Size ARCH_DOWN_SIZE
protected static final Offset ARCH_UP_OFFSET
protected static final Size ARCH_UP_SIZE
protected static final Offset CIRCLE_OFFSET
protected static final Size CIRCLE_SIZE
protected static final Offset CLOVER_C2_HQ_OFFSET
protected static final Offset CLOVER_DOWN_OFFSET
protected static final Size CLOVER_DOWN_SIZE
protected static final Offset CLOVER_OFFSET
protected static final Size CLOVER_SIZE
protected static final Offset CLOVER_UP_OFFSET
protected static final Size CLOVER_UP_SIZE
protected static final Offset DIAMOND_C2_HQ_OFFSET
protected static final Offset DIAMOND_OFFSET
protected static final Size DIAMOND_SIZE
protected static final Offset HAT_DOWN_OFFSET
protected static final Size HAT_DOWN_SIZE
protected static final Offset HAT_UP_OFFSET
protected static final Size HAT_UP_SIZE
protected static final Offset RECTANGLE_C2_HQ_OFFSET
protected static final Offset RECTANGLE_OFFSET
protected static final Size RECTANGLE_SIZE
protected static final Offset SQUARE_C2_HQ_OFFSET
protected static final Offset SQUARE_OFFSET
protected static final Size SQUARE_SIZE
protected static final Offset TENT_DOWN_OFFSET
protected static final Size TENT_DOWN_SIZE
protected static final Offset TENT_UP_OFFSET
protected static final Size TENT_UP_SIZE
| Constructor Detail |
|---|
public MilStd2525Util()
| Method Detail |
|---|
public static List<? extends Point2D> computeCenterHeadingIndicatorPoints(DrawContext dc,
Vec4 symbolPoint,
Angle heading,
double length)
dc - Current draw context.symbolPoint - Symbol position in model coordinates.heading - Direction of movement, as a bearing clockwise from North.length - Length of the indicator line, in pixels.
protected static Vec4 computeDirectionOfMovement(DrawContext dc,
Vec4 symbolPoint,
Angle heading,
double length)
dc - Current draw context.symbolPoint - Symbol position in model coordinates.heading - Heading as a bearing clockwise from North.length - Length of the leader line, in pixels. The computed vector will have magnitude equal to this
distance in pixels multiplied by the size of a pixel (in meters) at the position of the symbol
relative to the current view.
public static List<? extends Point2D> computeGroundHeadingIndicatorPoints(DrawContext dc,
Vec4 symbolPoint,
Angle heading,
double length,
double frameHeight)
dc - Current draw context.symbolPoint - Symbol position in model coordinates.heading - Direction of movement, as a bearing clockwise from North.length - Length of the indicator line, in pixels.frameHeight - Height of the symbol's bounding rectangle, in pixels.
public static MilStd2525Util.SymbolInfo computeTacticalSymbolInfo(String symbolId)
public static Material getDefaultGraphicMaterial(SymbolCode symbolCode)
symbolCode - Symbol for which to determine color.
protected static boolean isObstacle(SymbolCode symbolCode)
symbolCode - Symbol code to test.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||