Class clsRenderer

java.lang.Object
armyc2.c5isr.RenderMultipoints.clsRenderer

public final class clsRenderer extends Object
Rendering class
  • Constructor Details

  • Method Details

    • createMilStdSymboFromTGLight

      Deprecated.
      Create MilStdSymbol from tactical graphic
      Parameters:
      tg - tactical graphic
      converter - geographic to pixels to converter
      Returns:
      MilstdSymbol object
    • createTGLightFromMilStdSymbol

      Build a tactical graphic object from the client MilStdSymbol
      Parameters:
      milStd - MilstdSymbol object
      converter - geographic to pixels converter
      Returns:
      tactical graphic
    • createTGLightFromMilStdSymbol

      public static TGLight createTGLightFromMilStdSymbol(MilStdSymbol milStd, IPointConversion converter, Boolean computeChannelPt)
      Deprecated.
      Parameters:
      milStd -
      converter -
      computeChannelPt -
      Returns:
    • intersectsClipArea

      public static boolean intersectsClipArea(TGLight tg, IPointConversion converter, Object clipArea)
      Added function to handle when coords or display area spans IDL but not both, it prevents the symbol from rendering if the bounding rectangles don't intersect.
      Parameters:
      tg -
      converter -
      clipArea -
      Returns:
    • renderWithPolylines

      public static void renderWithPolylines(MilStdSymbol mss, IPointConversion converter, Object clipArea, Context context)
      Deprecated.
      context not used
      Parameters:
      mss -
      converter -
      clipArea -
      context -
    • renderWithPolylines

      public static void renderWithPolylines(MilStdSymbol mss, IPointConversion converter, Object clipArea)
      GoogleEarth renderer uses polylines for rendering
      Parameters:
      mss - MilStdSymbol object
      converter - the geographic to pixels coordinate converter
      clipArea - the clip bounds
    • render_GE

      public static void render_GE(TGLight tg, ArrayList<ShapeInfo> shapeInfos, ArrayList<ShapeInfo> modifierShapeInfos, IPointConversion converter, Object clipArea, Context context)
      Deprecated.
      context not used
      See render_GE below for comments
      Parameters:
      tg -
      shapeInfos -
      modifierShapeInfos -
      converter -
      clipArea -
      context - test android-gradle
    • render_GE

      public static void render_GE(TGLight tg, ArrayList<ShapeInfo> shapeInfos, ArrayList<ShapeInfo> modifierShapeInfos, IPointConversion converter, Object clipArea)
      Google Earth renderer: Called by mapfragment-demo This is the public interface for Google Earth renderer assumes tg.Pixels is filled assumes the caller instantiated the ShapeInfo arrays
      Parameters:
      tg - tactical graphic
      shapeInfos - symbol ShapeInfo array
      modifierShapeInfos - modifier ShapeInfo array
      converter - geographic to pixels coordinate converter
      clipArea - clipping bounds in pixels
    • render_Shape

      public static void render_Shape(MilStdSymbol milStd, IPointConversion ipc, Object clipArea, int shapeType, Color lineColor, Color fillColor, int hatch)
      creates a shape for known symbols. The intent is to use client points for the shape and is intended for use with ellipse. If hatch > 1 it creates 2 shapes one for the hatch pattern, the second one is for the outline.
      Parameters:
      milStd -
      ipc -
      clipArea -
      shapeType -
      lineColor -
      fillColor -
      hatch -
    • render

      public static void render(MilStdSymbol mss, IPointConversion converter, Object clipBounds)
      public render function transferred from JavaLineArrayCPOF project. Use this function to replicate CPOF renderer functionality.
      Parameters:
      mss - the milStdSymbol object
      converter - the geographic to pixels coordinate converter
      clipBounds - the pixels based clip bounds
    • render

      public static void render(MilStdSymbol mss, IPointConversion converter, ArrayList<ShapeInfo> shapeInfos, ArrayList<ShapeInfo> modifierShapeInfos, Object clipBounds)
      Generic tester button says Tiger or use JavaRendererSample. Generic renderer testers: called by JavaRendererSample and TestJavaLineArray public render function transferred from JavaLineArrayCPOF project. Use this function to replicate CPOF renderer functionality.
      Parameters:
      mss -
      converter - geographic to pixels converter
      shapeInfos - ShapeInfo array
      modifierShapeInfos - modifier ShapeInfo array
      clipBounds - clip bounds
    • getCMLineType

      public static int getCMLineType(int version, int entityCode)