Package JavaLineArray

Class DISMSupport

java.lang.Object
JavaLineArray.DISMSupport

public final class DISMSupport extends Object
A class which imported many of the C++ functions from Trident Systems Dismounted Intelligence Situational Awareness System (DISM) for rendering Mil-Standard-2525 tactical lines. This class does not get instantiated Much of the code is still the original DISM code.
Author:
Michael Deutch
  • Constructor Details

    • DISMSupport

      public DISMSupport()
  • Method Details

    • GetDelayGraphicEtcDouble

      protected static int GetDelayGraphicEtcDouble(POINT2[] points)
      Calculates the points for DELAY, WITHDRAW, WDRAWUP, RETIRE
      Parameters:
      points - OUT - the client points, also used for the returned points.
    • GetDISMCoverDouble

      protected static int GetDISMCoverDouble(POINT2[] points, int linetype)
      Calculates the points for SCREEN, COVER, GUARD, SARA.
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMCoverDoubleRevC

      protected static int GetDISMCoverDoubleRevC(POINT2[] points, int linetype, int vblSaveCounter)
      rev C uses 4
      Parameters:
      points -
      linetype -
      Returns:
    • GetDISMBypassDouble

      protected static int GetDISMBypassDouble(POINT2[] points, int linetype)
      Calculates the points for BYPASS
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMBreachDouble

      protected static int GetDISMBreachDouble(POINT2[] points, int linetype)
      Calculates the points for BREACH.
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMCanalizeDouble

      protected static int GetDISMCanalizeDouble(POINT2[] points, int linetype)
      Calculates the points for CANALIZE
      Parameters:
      points - - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMDeceiveDouble

      protected static void GetDISMDeceiveDouble(POINT2[] points)
      Calculates the points for DECEIVE.
      Parameters:
      points - - OUT - the client points, also used for the returned points.
      linetype - the line type.
      vblCounter - the number of symbol points.
    • GetDISMDisruptDouble

      protected static int GetDISMDisruptDouble(POINT2[] points, int linetype)
      Calculates the points for DISRUPT
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMContainDouble

      protected static int GetDISMContainDouble(POINT2[] points, int linetype)
      Calculates the points for CONTAIN
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMFixDouble

      protected static int GetDISMFixDouble(POINT2[] points, int linetype, Rectangle2D clipBounds)
      Calculates the points for FIX, MNFLDFIX
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMClearDouble

      protected static int GetDISMClearDouble(POINT2[] points, int linetype)
      Calculates the points for CLEAR.
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMSeizeDouble

      protected static int GetDISMSeizeDouble(POINT2[] points, int linetype, double radius)
      Calculates the points for SEIZE
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMRIPDouble

      protected static int GetDISMRIPDouble(POINT2[] points, int linetype)
      Calculates the points for RIP
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type
    • GetDISMByDifDouble

      protected static int GetDISMByDifDouble(POINT2[] points, int linetype, Rectangle2D clipBounds)
      Calculates the points for BYDIF
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMPenetrateDouble

      protected static void GetDISMPenetrateDouble(POINT2[] points, int linetype)
      Calculates the points for PENETRATE
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMByImpDouble

      protected static int GetDISMByImpDouble(POINT2[] points, int linetype)
      Calculates the points for BYIMP
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMSupportByFireDouble

      protected static int GetDISMSupportByFireDouble(POINT2[] points, int linetype)
      Calculates the points for SPTBYFIRE
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMATKBYFIREDouble

      protected static int GetDISMATKBYFIREDouble(POINT2[] points, int linetype)
      Calculates the points for ATKBYFIRE
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMGapDouble

      protected static int GetDISMGapDouble(POINT2[] points, int linetype)
      Calculates the points for GAP
      Parameters:
      points - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMMinefieldDisruptDouble

      protected static int GetDISMMinefieldDisruptDouble(POINT2[] points, int linetype)
      Calculates the points for MNFLDDIS
      Parameters:
      points - - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMLinearTargetDouble

      protected static int GetDISMLinearTargetDouble(POINT2[] points, int linetype, int vblCounter)
      Calculates the points for LINTGT
      Parameters:
      points - - OUT - the client points, also used for the returned points.
      linetype - the line type.
      vblCounter - the number of points required to display the symbol
    • GetDISMBlockDouble2

      protected static void GetDISMBlockDouble2(POINT2[] points, int linetype)
      Calculates the points for BLOCK, MNFLDBLK
      Parameters:
      points - - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • GetDISMPAADouble

      protected static void GetDISMPAADouble(POINT2[] points, int linetype)
      Calculates the points for PAA_RECTANGULAR.
      Parameters:
      points - - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • normalizeAngle

      public static float normalizeAngle(float angle)
      Returns an angle from 0 to 360
      Parameters:
      angle - the angle to normalize
      Returns:
      an angle in range from 0 to 360
    • GetDISMEasyDouble

      protected static int GetDISMEasyDouble(POINT2[] points, int linetype)
      Calculates the points for EASY
      Parameters:
      points - - OUT - the client points, also used for the returned points.
      linetype - the line type.
    • AmbushPointsDouble

      protected static int AmbushPointsDouble(POINT2[] pLinePoints)
      Calculates the points for AMBUSH
      Parameters:
      pLinePoints - - OUT - the client points, also used for the returned points.