Class clsUtility

java.lang.Object
RenderMultipoints.clsUtility

public final class clsUtility extends Object
Server general utility class
Author:
Michael Deutch
  • Constructor Details

    • clsUtility

      public clsUtility()
  • Method Details

    • POINT2ToPoint

      protected static Point POINT2ToPoint(POINT2 pt2)
    • PointToPOINT2

      protected static POINT2 PointToPOINT2(Point pt)
    • POINT2ToPoint2D

      protected static Point2D.Double POINT2ToPoint2D(POINT2 pt2)
    • Points2DToPOINT2

      protected static ArrayList<POINT2> Points2DToPOINT2(ArrayList<Point2D> pts2d)
    • Point2DToPOINT2

      protected static POINT2 Point2DToPOINT2(Point2D.Double pt2d)
    • addModifiersBeforeClipping

      protected static boolean addModifiersBeforeClipping(TGLight tg)
      Deprecated.
      Parameters:
      tg -
      Returns:
    • FilterPoints

      protected static void FilterPoints(TGLight tg)
    • PixelsToLatLong

      protected static ArrayList<POINT2> PixelsToLatLong(ArrayList<POINT2> pts, ArmyC2.C2SD.Utilities.IPointConversion converter)
    • isAutoshape

      protected static boolean isAutoshape(TGLight tg)
      Parameters:
      tg -
      Returns:
      true if auto-shape
    • LatLongToPixels

      protected static ArrayList<POINT2> LatLongToPixels(ArrayList<POINT2> pts, ArmyC2.C2SD.Utilities.IPointConversion converter)
    • FilterAXADPoints

      protected static void FilterAXADPoints(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter)
    • RemoveDuplicatePoints

      protected static void RemoveDuplicatePoints(TGLight tg)
      Parameters:
      tg -
    • BestFitConverter

      public static ArmyC2.C2SD.Utilities.IPointConversion BestFitConverter(ArrayList<POINT2> latLongs)
      Deprecated.
      The GE renderer needs a way to process geo points in case they are passed for Change 1 symbols. Uses a best fit approach to build a converter. Public so that testers can use it.
      Parameters:
      latLongs - geographic points
      Returns:
      geographic to pixels coordinate converter
    • PointPixelsToLatLong

      protected static POINT2 PointPixelsToLatLong(POINT2 ptPixels, ArmyC2.C2SD.Utilities.IPointConversion converter)
    • ResolveDummyShapes

      protected static void ResolveDummyShapes(TGLight tg, ArrayList<Shape2> shapes)
      resolves properties for shapes that need it because we don't call ResolveModifierShapes as does CPOF
      Parameters:
      tg -
      shapes -
    • getMBR

      protected static Rectangle2D getMBR(ArrayList<Point2D> clipBounds)