Class clsClipPolygon2

java.lang.Object
armyc2.c5isr.RenderMultipoints.clsClipPolygon2

public final class clsClipPolygon2 extends Object
A class to clip tactical lines and areas
  • Constructor Details

  • Method Details

    • fillDMA

      protected static ArrayList<Shape2> fillDMA(TGLight tg, Rectangle2D clipBounds)
      DMA, DMAF fill must be handled separately because of the feint
      Parameters:
      tg -
      clipBounds -
      Returns:
    • addAbatisFill

      protected static void addAbatisFill(TGLight tg, ArrayList<Shape2> shapes)
      for pre-clipped lines which also require fill but need the processed points to create the fill. This functioni is called after the clip, so the fill does not get clipped.
      Parameters:
      tg -
      shapes -
    • LinesWithFill

      protected static ArrayList<Shape2> LinesWithFill(TGLight tg, Rectangle2D clipBounds)
      for lines with glyphs the fill must be handled (clipped) as a separate shape. this function needs to be called before the clipping is done to the line
      Parameters:
      tg -
      clipBounds -
    • ClipPolygon

      public static ArrayList<Point2D> ClipPolygon(TGLight tg, Rectangle2D clipBounds)
      Works for tactical lines and areas
      Parameters:
      tg -
      clipBounds -
      Returns: