Class clsRenderer

java.lang.Object
RenderMultipoints.clsRenderer

public final class clsRenderer extends Object
Rendering class
Author:
Michael Deutch
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static ArmyC2.C2SD.Utilities.MilStdSymbol
    createMilStdSymboFromTGLight(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter)
    Create MilStdSymbol from tactical graphic
    static TGLight
    createTGLightFromMilStdSymbol(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.IPointConversion converter)
    Build a tactical graphic object from the client MilStdSymbol
    static TGLight
    createTGLightFromMilStdSymbol(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.IPointConversion converter, Boolean computeChannelPt)
    Deprecated. 
    static int
    sets tactical graphic line type for rev D and below
    protected static double
    getScale(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipBounds)
    Calculates the scale using the converter and the clipbounds and sets overhead wire type based on the scale
    static boolean
    intersectsClipArea(TGLight tg, ArmyC2.C2SD.Utilities.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.
    static void
    render(ArmyC2.C2SD.Utilities.MilStdSymbol symbol, ArmyC2.C2SD.Utilities.IPointConversion converter)
    Deprecated.
    Render the symbol and set ShapeInfo data in the client symol
    static void
    render(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipBounds)
    public render function transferred from JavaLineArrayCPOF project.
    static void
    render(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos, Object clipBounds)
    Generic tester button says Tiger or use JavaRendererSample.
    static void
    render(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos, Rectangle2D clipBounds)
    Deprecated.
    public render function added primarily for METOCs because at the time cannot instantiate a MilStdSymbol from a METOC symbol code other than that it is identical to the same named function that takes mss as the 1st parameter
    static void
    render_GE(TGLight tg, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipArea)
    Generic Tester says Tiger but use right mouse down.
    static void
    render_Shape(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.IPointConversion ipc, Object clipArea, int shapeType, Color lineColor, Color fillColor, int hatch)
    creates a shape for known symbols.
    static void
    render_TG(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos)
    Deprecated.
    Added this public interface so that TestJavaLineArray can test the general client
    static void
    renderWithPolylines(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipArea)
    GoogleEarth renderer uses polylines for rendering
    static void
    Rev D symbols

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • clsRenderer

      public clsRenderer()
  • Method Details

    • createMilStdSymboFromTGLight

      public static ArmyC2.C2SD.Utilities.MilStdSymbol createMilStdSymboFromTGLight(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter)
      Create MilStdSymbol from tactical graphic
      Parameters:
      tg - tactical graphic
      converter - geographic to pixels to converter
      Returns:
      MilstdSymbol object
    • getRevDLinetype

      public static int getRevDLinetype(TGLight tg)
      sets tactical graphic line type for rev D and below
      Parameters:
      tg -
    • createTGLightFromMilStdSymbol

      public static TGLight createTGLightFromMilStdSymbol(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.IPointConversion converter)
      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(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.IPointConversion converter, Boolean computeChannelPt)
      Deprecated.
      Parameters:
      milStd -
      converter -
      computeChannelPt -
      Returns:
    • render

      public static void render(ArmyC2.C2SD.Utilities.MilStdSymbol symbol, ArmyC2.C2SD.Utilities.IPointConversion converter)
      Deprecated.
      Render the symbol and set ShapeInfo data in the client symol
      Parameters:
      symbol -
      converter -
    • render_TG

      public static void render_TG(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos)
      Deprecated.
      Added this public interface so that TestJavaLineArray can test the general client
      Parameters:
      tg - tactical graphic
      converter - geographic to pixels converter
    • intersectsClipArea

      public static boolean intersectsClipArea(TGLight tg, ArmyC2.C2SD.Utilities.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(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.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<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipArea)
      Generic Tester says Tiger but use right mouse down. Refresh button says SECRenderer or GE. Google Earth renderer tester: Called by TestJavaLineArray thru SECRenderer 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
    • render_Shape

      public static void render_Shape(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.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 -
    • getScale

      protected static double getScale(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipBounds)
      Calculates the scale using the converter and the clipbounds and sets overhead wire type based on the scale
      Parameters:
      tg -
      converter -
      clipBounds -
      Returns:
    • render

      public static void render(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.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(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.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:
      tg - tactical graphic
      converter - geographic to pixels converter
      shapeInfos - ShapeInfo array
      modifierShapeInfos - modifier ShapeInfo array
      clipBounds - clip bounds
    • render

      public static void render(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos, Rectangle2D clipBounds)
      Deprecated.
      public render function added primarily for METOCs because at the time cannot instantiate a MilStdSymbol from a METOC symbol code other than that it is identical to the same named function that takes mss as the 1st parameter
      Parameters:
      tg -
      converter -
      shapeInfos -
      modifierShapeInfos -
      clipBounds -
    • setTGProperties

      public static void setTGProperties(TGLight tg)
      Rev D symbols
      Parameters:
      tg -
      setA -
      setB -