Package JavaLineArray
Class DISMSupport
java.lang.Object
JavaLineArray.DISMSupport
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static intAmbushPointsDouble(POINT2[] pLinePoints) Calculates the points for AMBUSHprotected static intGetDelayGraphicEtcDouble(POINT2[] points) Calculates the points for DELAY, WITHDRAW, WDRAWUP, RETIREprotected static intGetDISMATKBYFIREDouble(POINT2[] points, int linetype) Calculates the points for ATKBYFIREprotected static voidGetDISMBlockDouble2(POINT2[] points, int linetype) Calculates the points for BLOCK, MNFLDBLKprotected static intGetDISMBreachDouble(POINT2[] points, int linetype) Calculates the points for BREACH.protected static intGetDISMByDifDouble(POINT2[] points, int linetype, Rectangle2D clipBounds) Calculates the points for BYDIFprotected static intGetDISMByImpDouble(POINT2[] points, int linetype) Calculates the points for BYIMPprotected static intGetDISMBypassDouble(POINT2[] points, int linetype) Calculates the points for BYPASSprotected static intGetDISMCanalizeDouble(POINT2[] points, int linetype) Calculates the points for CANALIZEprotected static intGetDISMClearDouble(POINT2[] points, int linetype) Calculates the points for CLEAR.protected static intGetDISMContainDouble(POINT2[] points, int linetype) Calculates the points for CONTAINprotected static intGetDISMCoverDouble(POINT2[] points, int linetype) Calculates the points for SCREEN, COVER, GUARD, SARA.protected static intGetDISMCoverDoubleRevC(POINT2[] points, int linetype, int vblSaveCounter) rev C uses 4protected static voidGetDISMDeceiveDouble(POINT2[] points) Calculates the points for DECEIVE.protected static intGetDISMDisruptDouble(POINT2[] points, int linetype) Calculates the points for DISRUPTprotected static intGetDISMEasyDouble(POINT2[] points, int linetype) Calculates the points for EASYprotected static intGetDISMFixDouble(POINT2[] points, int linetype, Rectangle2D clipBounds) Calculates the points for FIX, MNFLDFIXprotected static intGetDISMGapDouble(POINT2[] points, int linetype) Calculates the points for GAPprotected static intGetDISMLinearTargetDouble(POINT2[] points, int linetype, int vblCounter) Calculates the points for LINTGTprotected static intGetDISMMinefieldDisruptDouble(POINT2[] points, int linetype) Calculates the points for MNFLDDISprotected static voidGetDISMPAADouble(POINT2[] points, int linetype) Calculates the points for PAA_RECTANGULAR.protected static voidGetDISMPenetrateDouble(POINT2[] points, int linetype) Calculates the points for PENETRATEprotected static intGetDISMRIPDouble(POINT2[] points, int linetype) Calculates the points for RIPprotected static intGetDISMSeizeDouble(POINT2[] points, int linetype, double radius) Calculates the points for SEIZEprotected static intGetDISMSupportByFireDouble(POINT2[] points, int linetype) Calculates the points for SPTBYFIREstatic floatnormalizeAngle(float angle) Returns an angle from 0 to 360
-
Constructor Details
-
DISMSupport
public DISMSupport()
-
-
Method Details
-
GetDelayGraphicEtcDouble
Calculates the points for DELAY, WITHDRAW, WDRAWUP, RETIRE- Parameters:
points- OUT - the client points, also used for the returned points.
-
GetDISMCoverDouble
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
rev C uses 4- Parameters:
points-linetype-- Returns:
-
GetDISMBypassDouble
Calculates the points for BYPASS- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMBreachDouble
Calculates the points for BREACH.- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMCanalizeDouble
Calculates the points for CANALIZE- Parameters:
points- - OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMDeceiveDouble
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
Calculates the points for DISRUPT- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMContainDouble
Calculates the points for CONTAIN- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMFixDouble
Calculates the points for FIX, MNFLDFIX- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMClearDouble
Calculates the points for CLEAR.- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMSeizeDouble
Calculates the points for SEIZE- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMRIPDouble
Calculates the points for RIP- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type
-
GetDISMByDifDouble
Calculates the points for BYDIF- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMPenetrateDouble
Calculates the points for PENETRATE- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMByImpDouble
Calculates the points for BYIMP- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMSupportByFireDouble
Calculates the points for SPTBYFIRE- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMATKBYFIREDouble
Calculates the points for ATKBYFIRE- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMGapDouble
Calculates the points for GAP- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMMinefieldDisruptDouble
Calculates the points for MNFLDDIS- Parameters:
points- - OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMLinearTargetDouble
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
Calculates the points for BLOCK, MNFLDBLK- Parameters:
points- - OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMPAADouble
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
Calculates the points for EASY- Parameters:
points- - OUT - the client points, also used for the returned points.linetype- the line type.
-
AmbushPointsDouble
Calculates the points for AMBUSH- Parameters:
pLinePoints- - OUT - the client points, also used for the returned points.
-