Class clsUtilityGE

java.lang.Object
armyc2.c5isr.RenderMultipoints.clsUtilityGE

public final class clsUtilityGE extends Object
Utilities require for GoogleEarth functionality
  • Constructor Details

  • Method Details

    • setSplineLinetype

      protected static void setSplineLinetype(TGLight tg)
    • SetShapeInfosPolylines

      protected static void SetShapeInfosPolylines(TGLight tg, ArrayList<ShapeInfo> shapeInfos, Object clipBounds)
    • expandPolygon

      protected static ArrayList<Point2D> expandPolygon(ArrayList<Point2D> pts, double expand)
      Assumes a convex polygon for the clipping area. expand the polygon using pixels and a similar algorithm to what flash renderer does for DEPTH AREA
      Parameters:
      pts - clipping area to expand
      expand - pixels expansion
      Returns:
    • expandPolygon2

      protected static ArrayList<Point2D> expandPolygon2(ArrayList<Point2D> pts, double expandX, double expandY)
      use cheap algorithm to expand polygons, works best on regular 4+ sided convex polygons used primarily for expanding the original clipping areas. After clipping a tactical line against the expanded clipping area, the original clipping area can be used to drop the clip lines
      Parameters:
      pts - points to expand, usually a clipping area
      expandX - X expansion factor, e.g 10% growth would be 1.1
      expandY - Y expansion factor
      Returns:
      points for the expanded polygon
    • removeTrailingPoints

      protected static void removeTrailingPoints(TGLight tg, Object clipArea)
      removes leading or trailing segments after the points were clipped
      Parameters:
      tg -
      clipArea -
    • segmentColorsSet

      protected static boolean segmentColorsSet(TGLight tg)
      returns true if segment data set for MSR, ASR, Boundary
      Parameters:
      tg -
      Returns:
    • getZoomFactor

      protected static double getZoomFactor(Rectangle2D rect, ArrayList<Point2D> clipPoints, ArrayList<POINT2> pixels)
      Use clipping rectangle or clip points to build a zoom factor if the client zoomed in after the initial render. Multiply the geo segmenting interval by this factor.
      Parameters:
      rect -
      clipPoints -
      pixels -
      Returns: