Class MultiPointHandler

java.lang.Object
sec.web.renderer.MultiPointHandler

public class MultiPointHandler extends Object
  • Field Details

    • Symbology_2525Bch2_USAS_13_14

      public static final int Symbology_2525Bch2_USAS_13_14
      2525Bch2 and USAS 13/14 symbology
      See Also:
    • Symbology_2525C

      public static final int Symbology_2525C
      2525C, which includes 2525Bch2 invalid input: '&' USAS 13/14
      See Also:
  • Constructor Details

    • MultiPointHandler

      public MultiPointHandler()
  • Method Details

    • NormalizeGECoordsToGEExtents

      public static void NormalizeGECoordsToGEExtents(double leftLongitude, double rightLongitude, ArrayList<Point2D.Double> pts2d)
      GE has the unusual distinction of being an application with coordinates outside its own extents. It appears to only be a problem when lines cross the IDL
      Parameters:
      pts2d - the client points
    • ShouldClipSymbol

      public static Boolean ShouldClipSymbol(String symbolID)
      Checks if a symbol is one with decorated lines which puts a strain on google earth when rendering like FLOT. These complicated lines should be clipped when possible.
      Parameters:
      symbolID -
      Returns:
    • RenderSymbol

      public static String RenderSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, String symbolModifiers, int format)
      Parameters:
      id -
      name -
      description -
      symbolCode -
      controlPoints -
      scale -
      bbox -
      symbolModifiers -
      format -
      Returns:
    • RenderSymbol

      public static String RenderSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, String symbolModifiers, int format, int symStd)
      Deutch updated version
      Parameters:
      id -
      name -
      description -
      symbolCode -
      controlPoints -
      scale -
      bbox -
      symStd - 0=2525Bch2, 1=2525C
      shapes -
    • GenerateImageFillPNGInfo

      public static PNGInfo GenerateImageFillPNGInfo(ArrayList<JavaLineArray.POINT2> tgPoints, String jsonContent, ArmyC2.C2SD.Utilities.MilStdSymbol mSymbol, ArmyC2.C2SD.Utilities.IPointConversion ipc, Boolean normalize)
    • RenderSymbolAsMilStdSymbol

      public static ArmyC2.C2SD.Utilities.MilStdSymbol RenderSymbolAsMilStdSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, String symbolModifiers, int symStd)
      Deutch updated version
      Parameters:
      id -
      name -
      description -
      symbolCode -
      controlPoints -
      scale -
      bbox -
      symStd - 0=2525Bch2, 1=2525C
      shapes -
    • RenderSymbol2D

      public static String RenderSymbol2D(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, String symbolModifiers, int format)
      Multipoint Rendering on flat 2D maps
      Parameters:
      id - A unique ID for the symbol. only used in KML currently
      symbolCode -
      controlPoints -
      pixelWidth - pixel dimensions of the viewable map area
      pixelHeight - pixel dimensions of the viewable map area
      bbox - The viewable area of the map. Passed in the format of a string "lowerLeftX,lowerLeftY,upperRightX,upperRightY." example: "-50.4,23.6,-42.2,24.2"
      symbolModifiers - A JSON string representing all the possible symbol modifiers represented in the MIL-STD-2525C. Format of the string will be {"modifiers": {"attributeName":"value"[,"attributeNamen":"valuen"]...}} The quotes are literal in the above notation. Example: {"modifiers": {"quantity":"4","speed":"300","azimuth":[100,200]}}
      format - An enumeration: 0 for KML, 1 for JSON.
      Returns:
      A JSON or KML string representation of the graphic.
    • RenderSymbol2D

      public static String RenderSymbol2D(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, String symbolModifiers, int format, int symStd)
      Multipoint Rendering on flat 2D maps
      Parameters:
      id - A unique ID for the symbol. only used in KML currently
      symbolCode -
      controlPoints -
      pixelWidth - pixel dimensions of the viewable map area
      pixelHeight - pixel dimensions of the viewable map area
      bbox - The viewable area of the map. Passed in the format of a string "lowerLeftX,lowerLeftY,upperRightX,upperRightY." example: "-50.4,23.6,-42.2,24.2"
      symbolModifiers - A JSON string representing all the possible symbol modifiers represented in the MIL-STD-2525C. Format of the string will be {"modifiers": {"attributeName":"value"[,"attributeNamen":"valuen"]...}} The quotes are literal in the above notation. Example: {"modifiers": {"quantity":"4","speed":"300","azimuth":[100,200]}}
      format - An enumeration: 0 for KML, 1 for JSON, 2 for GeoJSON.
      symStd - An enumeration: 0 for 2525Bch2, 1 for 2525C.
      Returns:
      A JSON or KML string representation of the graphic.
    • RenderSymbol2DX

      public static String RenderSymbol2DX(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, String symbolModifiers, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapes, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifiers, int format)
      Deprecated.
      For Mike Deutch testing
      Parameters:
      id -
      name -
      description -
      symbolCode -
      controlPoints -
      pixelWidth -
      pixelHeight -
      bbox -
      symbolModifiers -
      shapes -
      modifiers -
      format -
      Returns:
    • RenderSymbol3DWW

      public static SymbolInfo RenderSymbol3DWW(String symbolID, ArrayList<Point2D.Double> coordinates, Double scale, Point2D.Double bboxTL, Point2D.Double bboxBR, Map<String,String> modifiers, ArrayList<Double> X_Altitude, ArrayList<Double> AM_Distance, ArrayList<Double> AN_Azimuth)
      Deprecated.
      Parameters:
      symbolID -
      coordinates -
      scale -
      bboxTL -
      bboxBR -
      modifiers -
      X_Altitude -
      AM_Distance -
      AN_Azimuth -
      Returns:
    • RenderSymbol3DWW

      public static ArmyC2.C2SD.Utilities.MilStdSymbol RenderSymbol3DWW(ArmyC2.C2SD.Utilities.MilStdSymbol symbol, Double scale, Point2D.Double bboxTL, Point2D.Double bboxBR)
      Deprecated.
      Parameters:
      symbol -
      scale -
      bboxTL -
      bboxBR -
      Returns:
    • RenderSymbol2

      public static ArmyC2.C2SD.Utilities.IPointConversion RenderSymbol2(String symbolCode, String controlPoints, Double scale, String bbox, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapes, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifiers)
      Deprecated.
      to make sure no one else is using it.
      FOR DEUTCH USE ONLY
      Parameters:
      symbolCode -
      controlPoints -
      scale -
      bbox -
      shapes -
    • getModififerKML

      public static String getModififerKML(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, String symbolModifiers, int format, int symStd)
      Basically renders the symbol with the 2d renderer than pulls out just the label placemarks. Altitudes are then added so that will place with the 3d symbol they are being added to.
      Parameters:
      id -
      name -
      description -
      symbolCode -
      controlPoints -
      scale -
      bbox -
      symbolModifiers -
      format -
      symStd -
      Returns:
    • getModifierKML2

      public static String getModifierKML2(String symbolID, JSONObject modifiersJSON, String strPoints)
      Deprecated.
      Parameters:
      symbolID -
      modifiersJSON -
      strPoints -
      Returns: