public class MilStd2525Util extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
MilStd2525Util.SymbolInfo  | 
| Modifier and Type | Field and Description | 
|---|---|
protected static Offset | 
ARCH_DOWN_OFFSET  | 
protected static Size | 
ARCH_DOWN_SIZE  | 
protected static Offset | 
ARCH_UP_OFFSET  | 
protected static Size | 
ARCH_UP_SIZE  | 
protected static Offset | 
CIRCLE_OFFSET  | 
protected static Size | 
CIRCLE_SIZE  | 
protected static Offset | 
CLOVER_C2_HQ_OFFSET  | 
protected static Offset | 
CLOVER_DOWN_OFFSET  | 
protected static Size | 
CLOVER_DOWN_SIZE  | 
protected static Offset | 
CLOVER_OFFSET  | 
protected static Size | 
CLOVER_SIZE  | 
protected static Offset | 
CLOVER_UP_OFFSET  | 
protected static Size | 
CLOVER_UP_SIZE  | 
protected static Offset | 
DIAMOND_C2_HQ_OFFSET  | 
protected static Offset | 
DIAMOND_OFFSET  | 
protected static Size | 
DIAMOND_SIZE  | 
protected static Offset | 
HAT_DOWN_OFFSET  | 
protected static Size | 
HAT_DOWN_SIZE  | 
protected static Offset | 
HAT_UP_OFFSET  | 
protected static Size | 
HAT_UP_SIZE  | 
protected static Offset | 
RECTANGLE_C2_HQ_OFFSET  | 
protected static Offset | 
RECTANGLE_OFFSET  | 
protected static Size | 
RECTANGLE_SIZE  | 
protected static Offset | 
SQUARE_C2_HQ_OFFSET  | 
protected static Offset | 
SQUARE_OFFSET  | 
protected static Size | 
SQUARE_SIZE  | 
protected static Offset | 
TENT_DOWN_OFFSET  | 
protected static Size | 
TENT_DOWN_SIZE  | 
protected static Offset | 
TENT_UP_OFFSET  | 
protected static Size | 
TENT_UP_SIZE  | 
| Constructor and Description | 
|---|
MilStd2525Util()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
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
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.